From 27348a6a0555c8e5c4017a07b68ecb5706e51f5e Mon Sep 17 00:00:00 2001 From: Yoann Abbes Date: Thu, 11 Mar 2021 13:40:29 +0100 Subject: [PATCH] Fix bintray artifact names --- build.gradle.kts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a08a6e88..39822e9a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,5 @@ import org.gradle.jvm.tasks.Jar -import java.time.LocalDateTime +import java.util.Date import com.jfrog.bintray.gradle.BintrayPlugin import com.jfrog.bintray.gradle.BintrayExtension import org.gradle.api.publish.maven.MavenPom @@ -90,12 +90,12 @@ application { } tasks.withType { - archiveClassifier.set("without-dependencies") + archiveFileName.set("sdk-jvm-1.2.0-without-dependencies.jar") } tasks { register("fatJar", Jar::class.java) { - archiveClassifier.set("") + archiveFileName.set("sdk-jvm-1.2.0.jar") duplicatesStrategy = DuplicatesStrategy.EXCLUDE manifest { attributes("Main-Class" to application.mainClassName) @@ -111,13 +111,11 @@ tasks { publishing { publications { - create("kuzzle-sdk-jvm-fat") { + create("kuzzle-sdk-jvm-thin") { groupId = artifactGroup artifactId = artifactName - version = artifactVersion + version = "${artifactVersion}-without-dependencies" from(components["java"]) - artifact(tasks["fatJar"]) - pom.withXml { asNode().apply { appendNode("description", pomDesc) @@ -138,11 +136,11 @@ publishing { } } } - create("kuzzle-sdk-jvm-thin") { + create("kuzzle-sdk-jvm-fat") { groupId = artifactGroup artifactId = artifactName - version = "${artifactVersion}-without-dependencies" - from(components["java"]) + version = artifactVersion + artifact(tasks["fatJar"]) pom.withXml { asNode().apply { @@ -189,7 +187,7 @@ bintray { version.apply { name = artifactVersion desc = pomDesc - // released = LocalDateTime.now().toString() + released = Date().toString() vcsTag = artifactVersion } }