Skip to content

Commit

Permalink
Merge pull request #496 from kennethshackleton/java-copyjni-order
Browse files Browse the repository at this point in the history
Ensure copyJniLibs always runs after buildHostSQLite.
  • Loading branch information
kennethshackleton authored Feb 4, 2024
2 parents 465c4f5 + 3a8177c commit f0c3a07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions selekt-java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ tasks.register<Test>("integrationTest") {
}

tasks.register<Task>("buildHostSQLite") {
dependsOn(":selekt-sqlite3:buildHost")
finalizedBy("copyJniLibs")
dependsOn(":selekt-sqlite3:buildHost", "copyJniLibs")
}

tasks.register<Copy>("copyJniLibs") {
from(fileTree(project(":selekt-sqlite3").layout.buildDirectory.dir("intermediates/libs")))
into(layout.buildDirectory.dir("intermediates/libs/jni"))
mustRunAfter(":selekt-sqlite3:buildHost")
}

tasks.withType<ProcessResources>().configureEach {
dependsOn("buildHostSQLite", "copyJniLibs")
dependsOn("buildHostSQLite")
}

tasks.withType<DokkaTask>().configureEach {
Expand Down

0 comments on commit f0c3a07

Please sign in to comment.