Skip to content

Commit

Permalink
Clean release signatures only *after* resource processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Billing committed Oct 2, 2020
1 parent ff3fd57 commit 54dc5f0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tnoodle-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@ tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = KOTLIN_JVM_TARGET
}

afterEvaluate {
delete(fileTree("src/main/resources/$SIGNATURE_PACKAGE").matching {
include("**/*.$SIGNATURE_SUFFIX")
})
tasks.create("deleteSignatures") {
doLast {
delete(fileTree("src/main/resources/$SIGNATURE_PACKAGE").matching {
include("**/*.$SIGNATURE_SUFFIX")
})
}
}

tasks.withType<ProcessResources> {
finalizedBy("deleteSignatures")
}

0 comments on commit 54dc5f0

Please sign in to comment.