Skip to content

Commit

Permalink
Updated MultiGradle, tiny documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrapplexz committed Jun 2, 2019
1 parent 2e0f94b commit 9594d88
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
28 changes: 12 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,6 @@ 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 @@ -86,7 +71,6 @@ configure<PublishingExtension> {
url.set("https://ci.pearx.net/job/pearxteam/job/kasechange")
}
}
artifact(tasks["emptyJavadoc"])
}
repositories {
maven {
Expand Down Expand Up @@ -116,6 +100,18 @@ configure<PublishingExtension> {
}
}

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"))
}
}

configure<SigningExtension> {
sign(publishing.publications)
}
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#Common Stuff
projectVersion=1.0.5
projectChangelog=Fixed String#toTitleCase(), added tests for methods inside StringExtensions
projectVersion=1.0.6
projectChangelog=Updated MultiGradle, tiny documentation fixes
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
multigradleVersion=1.5.0
multigradleVersion=1.6.0

#JS Stuff
nodeJsVersion=12.1.0
Expand Down
8 changes: 4 additions & 4 deletions src/commonMain/kotlin/net/pearx/kasechange/WordSplitter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ private fun StringBuilder.toStringAndClear() = toString().also { clear() }
* - If multiple uppercase characters are followed by a lowercase character, a word boundary is considered to be prior to the last uppercase character.
*
* Examples:
* XMLBufferedReader => XML|Buffered|Reader
* newFile => new|File
* net.pearx.lib => net|pearx|lib
* NewDataClass => New|Data|Class
* - XMLBufferedReader => XML|Buffered|Reader
* - newFile => new|File
* - net.pearx.lib => net|pearx|lib
* - NewDataClass => New|Data|Class
*/
fun String.splitToWords(): List<String> = mutableListOf<String>().also { list ->
val word = StringBuilder()
Expand Down

0 comments on commit 9594d88

Please sign in to comment.