diff --git a/cavis-native/cavis-native-lib/build.gradle b/cavis-native/cavis-native-lib/build.gradle index 72b325ac8..01694611e 100644 --- a/cavis-native/cavis-native-lib/build.gradle +++ b/cavis-native/cavis-native-lib/build.gradle @@ -384,12 +384,15 @@ chipList.each { String thisChip -> tasks.named("compileJava").configure {enabled false} chipList.each { String thisChip -> + //ensure full build process is running on "build" tasks.named("build").configure { dependsOn "javacpp${thisChip.capitalize()}SupportBuildCompiler" } + //Compiles and links the generated jni code with the underlying native library tasks.named("javacpp${thisChip.capitalize()}SupportBuildCompiler").configure { dependsOn "javacpp${thisChip.capitalize()}SupportBuildParser" } + //Generates the jni interface sources tasks.named("javacpp${thisChip.capitalize()}SupportBuildParser").configure { dependsOn "javacpp${thisChip.capitalize()}SupportBuildCommand" } @@ -397,11 +400,11 @@ chipList.each { String thisChip -> tasks.named("javacpp${thisChip.capitalize()}SupportBuildCommand").configure { } + //Compile the generates jni interface (java portion) tasks.named("compile${thisChip.capitalize()}Java").configure { dependsOn "javacpp${thisChip.capitalize()}SupportBuildParser" } - tasks.named("${thisChip}Jar").configure { dependsOn "javacpp${thisChip.capitalize()}SupportBuildCompiler" }