Skip to content

Commit 189fa31

Browse files
Update build.gradle
1 parent ce159a6 commit 189fa31

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎build.gradle‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ java {
113113
targetCompatibility = JavaVersion.VERSION_21
114114
}
115115

116-
jar {
117-
from("LICENSE.md") {
118-
rename { "${it}_${project.base.archivesName.get()}"}
116+
[sourceSets.main.jarTaskName, sourceSets.main.sourcesJarTaskName].each {
117+
tasks.named(it, Jar) {
118+
from("LICENSE.md") {
119+
rename { "${it}_${project.base.archivesName.get()}"}
120+
}
119121
}
120122
}
121123

0 commit comments

Comments
 (0)