Skip to content

Commit

Permalink
Refactor build.gradle.kts to configure build task to depend on shadow…
Browse files Browse the repository at this point in the history
… JAR task
  • Loading branch information
remiceres committed Oct 29, 2024
1 parent 9b9d602 commit 66aa89f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ tasks {
}
}

// Configure the build task to depend on the shadow JAR task.
// This ensures that the shadow JAR is built when the project is built.
tasks.build {
dependsOn(tasks.shadowJar)
}

// Configure Jacoco test report task to depend on the test task,
// so reports are generated after tests run successfully.
tasks.jacocoTestReport {
Expand Down

0 comments on commit 66aa89f

Please sign in to comment.