Skip to content

Commit a56f114

Browse files
committed
feat: reproduce another lib to try
1 parent 15dd301 commit a56f114

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

build.gradle.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ plugins {
99
group = "fr.traqueur"
1010
version = property("version") as String
1111

12+
rootProject.extra.properties["sha"]?.let { sha ->
13+
version = sha
14+
}
15+
1216
extra.set("targetFolder", file("target/"))
1317
extra.set("classifier", System.getProperty("archive.classifier"))
1418
extra.set("sha", System.getProperty("github.sha"))
@@ -66,12 +70,7 @@ tasks.build {
6670
}
6771

6872
tasks.shadowJar {
69-
archiveVersion.set("")
70-
rootProject.extra.properties["sha"]?.let { sha ->
71-
archiveClassifier.set("${rootProject.extra.properties["classifier"]}-${sha}")
72-
} ?: run {
73-
archiveClassifier.set(rootProject.extra.properties["classifier"] as String?)
74-
}
73+
archiveClassifier.set("")
7574
destinationDirectory.set(rootProject.extra["targetFolder"] as File)
7675
}
7776

0 commit comments

Comments
 (0)