Skip to content

Commit

Permalink
Adding LICENSE and NOTICE file to all produced jars (not only the sou…
Browse files Browse the repository at this point in the history
…rces jar).
  • Loading branch information
kelemen committed Feb 17, 2022
1 parent 05ab46a commit 884a3d1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ val compileJavacc = tasks.register<freemarker.build.CompileJavaccTask>("compileJ
}
sourceSets.main.get().java.srcDir(compileJavacc)

tasks.named<Jar>(sourceSets.named(SourceSet.MAIN_SOURCE_SET_NAME).get().sourcesJarTaskName) {
from(compileJavacc.flatMap { it.sourceDirectory })

from(files("LICENSE", "NOTICE")) {
tasks.withType<Jar> {
from(files("src/dist/jar/META-INF")) {
into("META-INF")
}
from(files("NOTICE")) {
into("META-INF")
}
}
Expand Down

0 comments on commit 884a3d1

Please sign in to comment.