From adf1112845418f9f7c169799658532c5c7e43182 Mon Sep 17 00:00:00 2001 From: mrAppleXZ Date: Wed, 29 May 2019 17:23:46 +0500 Subject: [PATCH] Added empty Javadoc, fixed POM, version bump --- build.gradle.kts | 29 +++++++++++++++++------------ gradle.properties | 4 ++-- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5f9743d..8c81fc8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -28,6 +28,21 @@ configure { } } +tasks { + register("publishDevelop") { + group = "publishing" + dependsOn(withType().matching { it.repository.name.endsWith("-develop") }) + } + register("publishRelease") { + group = "publishing" + dependsOn(withType().matching { it.repository.name.endsWith("-release") }) + dependsOn(named("githubRelease")) + } + register("emptyJavadoc") { + archiveClassifier.set("javadoc") + } +} + configure { publications.withType { pom { @@ -57,6 +72,7 @@ configure { } } scm { + url.set("https://github.com/pearxteam/kasechange") connection.set("scm:git:git://github.com/pearxteam/kasechange") developerConnection.set("scm:git:git://github.com/pearxteam/kasechange") } @@ -69,6 +85,7 @@ configure { url.set("https://ci.pearx.net/job/pearxteam/job/kasechange") } } + artifact(tasks["emptyJavadoc"]) } repositories { maven { @@ -109,16 +126,4 @@ configure { setTargetCommitish("master") setBody(projectChangelog) //setReleaseAssets((publishing.publications["maven"] as MavenPublication).artifacts.map { it.file }) -} - -tasks { - register("publishDevelop") { - group = "publishing" - dependsOn(withType().matching { it.repository.name.endsWith("-develop") }) - } - register("publishRelease") { - group = "publishing" - dependsOn(withType().matching { it.repository.name.endsWith("-release") }) - dependsOn(named("githubRelease")) - } } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 580abc2..8e297ab 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ #Common Stuff -projectVersion=1.0.2 -projectChangelog=Added documentation, changed build pipeline +projectVersion=1.0.3 +projectChangelog=Added empty Javadoc, fixed POM projectDescription=Multiplatform Kotlin library to convert strings between various case formats including Camel Case, Snake Case, Pascal Case and Kebab Case kotlinVersion=1.3.31 githubReleaseVersion=2.2.8