Skip to content

Commit

Permalink
fix: tasks for subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Apr 26, 2024
1 parent 63db309 commit 4b142f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions test-app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1113,3 +1113,11 @@ tasks.configureEach({ DefaultTask currentTask ->
currentTask.finalizedBy(buildMetadata)
}
})

rootProject.subprojects.forEach {
it.tasks.configureEach({ DefaultTask currentTask ->
if (currentTask =~ /.+bundleLibCompileToJar.*/) {
currentTask.finalizedBy(cleanupAllJars)
}
})
}
3 changes: 0 additions & 3 deletions test-app/runtime/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,6 @@ tasks.configureEach { task ->
task.finalizedBy createPackageConfigFileTask(taskName)
}

if (taskName.contains("bundleLibCompileToJarDebug") || taskName.contains("bundleLibCompileToJarRelease")) {
task.dependsOn(":app:cleanupAllJars")
}

if (task =~ /configureCMake.*/) {
task.finalizedBy(":app:buildMetadata")
Expand Down

0 comments on commit 4b142f9

Please sign in to comment.