From 3a8177c4f22f2358b5afb16b93a97cb64c05ec4b Mon Sep 17 00:00:00 2001 From: "Kenneth J. Shackleton" Date: Sun, 4 Feb 2024 12:50:59 +0000 Subject: [PATCH] Ensure copyJniLibs always runs after buildHostSQLite. Signed-off-by: Kenneth J. Shackleton --- selekt-java/build.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {