diff --git a/selekt-java/build.gradle.kts b/selekt-java/build.gradle.kts index 3cc7858acb..2bc1773228 100644 --- a/selekt-java/build.gradle.kts +++ b/selekt-java/build.gradle.kts @@ -83,17 +83,17 @@ tasks.register("integrationTest") { } tasks.register("buildHostSQLite") { - dependsOn(":selekt-sqlite3:buildHost") - finalizedBy("copyJniLibs") + dependsOn(":selekt-sqlite3:buildHost", "copyJniLibs") } tasks.register("copyJniLibs") { from(fileTree(project(":selekt-sqlite3").layout.buildDirectory.dir("intermediates/libs"))) into(layout.buildDirectory.dir("intermediates/libs/jni")) + mustRunAfter(":selekt-sqlite3:buildHost") } tasks.withType().configureEach { - dependsOn("buildHostSQLite", "copyJniLibs") + dependsOn("buildHostSQLite") } tasks.withType().configureEach {