We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aceddb4 commit 3b1eb09Copy full SHA for 3b1eb09
build.gradle
@@ -125,15 +125,13 @@ java {
125
}
126
127
// If you plan to use a different file for the license, don't forget to change the file name here!
128
-jar {
129
- from("LICENSE.md") {
130
- rename { "${it}_${archivesBaseName}" }
131
- }
132
-}
+["jar", "sourcesJar"].each {
+ tasks.named(it).configure {
+ inputs.property "archivesName", project.base.archivesName
133
134
-sourcesJar {
135
136
+ from("LICENSE") {
+ rename { "${it}_${task.inputs.properties.archivesName}"}
+ }
137
138
139
0 commit comments