Skip to content

Commit

Permalink
Include license in jar
Browse files Browse the repository at this point in the history
  • Loading branch information
FeldrinH committed Sep 22, 2023
1 parent 2ea6e91 commit 3431c0a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ tasks {
shadowJar {
archiveClassifier.set("") // Set classifier to empty to replace the default JAR
mergeServiceFiles() // Merge service files
exclude("/META-INF/LICENSE") // Exclude any LICENSE files from dependencies to avoid duplicate files
into("/META-INF") {
from(rootProject.file("LICENSE")) // Include dendroloj license
}
from(sourceSets.main.get().allSource) // Include sources for API documentation and source viewing in IDE-s
manifest {
attributes(
"Manifest-Version" to "1.0",
"Implementation-Version" to project.version,
"Manifest-Version" to "1.0",
"Implementation-Title" to "dendroloj",
"Implementation-Version" to project.version,
)
}
}
}

//TODO: targetCompatibility

0 comments on commit 3431c0a

Please sign in to comment.