Skip to content

Commit

Permalink
Fixes archiveBaseName in native builds (#2859)
Browse files Browse the repository at this point in the history
This property is necessary to avoid conflicts in building multiple flavors which
can be observed in the native properties file not matching the jar for some
engine builds.
  • Loading branch information
zachgk authored and frankfliu committed Apr 26, 2024
1 parent eecaa23 commit faa2db7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions engines/mxnet/native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ flavorNames.each { flavor ->
}
from file("${BINARY_ROOT}/${flavor}/${osName}")
archiveClassifier = "${osName}-x86_64"
archiveBaseName = "mxnet-native-${flavor}"

manifest {
attributes("Automatic-Module-Name": "ai.djl.mxnet_native_${flavor}_${osName}")
Expand Down
1 change: 1 addition & 0 deletions engines/paddlepaddle/paddlepaddle-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ flavorNames.each { flavor ->
}
from file("${BINARY_ROOT}/${flavor}/${osName}")
archiveClassifier = "${osName}-x86_64"
archiveBaseName = "paddlepaddle-native-${flavor}"

manifest {
attributes("Automatic-Module-Name": "ai.djl.paddlepaddle_native_${flavor}_${osName}")
Expand Down
1 change: 1 addition & 0 deletions engines/tensorflow/tensorflow-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ flavorNames.each { flavor ->
}
from file("${BINARY_ROOT}/${flavor}/${osName}")
archiveClassifier = "${osName}-x86_64"
archiveBaseName = "tensorflow-native-${flavor}"

manifest {
attributes("Automatic-Module-Name": "ai.djl.tensorflow_native_${flavor}_${osName}")
Expand Down
1 change: 1 addition & 0 deletions engines/tflite/tflite-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ flavorNames.each { flavor ->
from file("src/main/resources")
from file("${project.buildDir}/classes/java/main")
archiveClassifier = "${osName}"
archiveBaseName = "tflite-native-${flavor}"

manifest {
attributes("Automatic-Module-Name": "ai.djl.tflite_native_${flavor}_${osName}")
Expand Down

0 comments on commit faa2db7

Please sign in to comment.