Skip to content

Commit

Permalink
Added empty Javadoc, fixed POM, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mrapplexz committed May 29, 2019
1 parent ecb96a2 commit adf1112
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
29 changes: 17 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ configure<MultiGradleExtension> {
}
}

tasks {
register("publishDevelop") {
group = "publishing"
dependsOn(withType<PublishToMavenRepository>().matching { it.repository.name.endsWith("-develop") })
}
register("publishRelease") {
group = "publishing"
dependsOn(withType<PublishToMavenRepository>().matching { it.repository.name.endsWith("-release") })
dependsOn(named("githubRelease"))
}
register<Jar>("emptyJavadoc") {
archiveClassifier.set("javadoc")
}
}

configure<PublishingExtension> {
publications.withType<MavenPublication> {
pom {
Expand Down Expand Up @@ -57,6 +72,7 @@ configure<PublishingExtension> {
}
}
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")
}
Expand All @@ -69,6 +85,7 @@ configure<PublishingExtension> {
url.set("https://ci.pearx.net/job/pearxteam/job/kasechange")
}
}
artifact(tasks["emptyJavadoc"])
}
repositories {
maven {
Expand Down Expand Up @@ -109,16 +126,4 @@ configure<GithubReleaseExtension> {
setTargetCommitish("master")
setBody(projectChangelog)
//setReleaseAssets((publishing.publications["maven"] as MavenPublication).artifacts.map { it.file })
}

tasks {
register("publishDevelop") {
group = "publishing"
dependsOn(withType<PublishToMavenRepository>().matching { it.repository.name.endsWith("-develop") })
}
register("publishRelease") {
group = "publishing"
dependsOn(withType<PublishToMavenRepository>().matching { it.repository.name.endsWith("-release") })
dependsOn(named("githubRelease"))
}
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit adf1112

Please sign in to comment.