diff --git a/CHANGELOG.md b/CHANGELOG.md index b4cdc191..a365f1b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# 0.3.0 +## Breaking changes: +- Artifact ids were updated (`sealedenum` -> `runtime` and `sealedenumprocessor` -> `processor`). + This was done to accomodate alternate generation implementations, such as by [KSP](https://github.com/google/ksp) + +## Miscellaneous updates: +- Switch to GitHub actions for CI +- Various dependency updates + # 0.2.0 ## Features: - Added extension properties and methods to make `sealed-enum` easier to use in common cases. diff --git a/README.md b/README.md index 7a73d262..9c798923 100644 --- a/README.md +++ b/README.md @@ -348,8 +348,8 @@ repositories { } dependencies { - implementation("com.github.livefront.sealed-enum:runtime:0.2.0") - kapt("com.github.livefront.sealed-enum:processor:0.2.0") + implementation("com.github.livefront.sealed-enum:runtime:0.3.0") + kapt("com.github.livefront.sealed-enum:processor:0.3.0") } ``` diff --git a/build.gradle.kts b/build.gradle.kts index bc7415ad..9be63576 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,7 +20,6 @@ subprojects { plugin() plugin() plugin() - plugin() plugin() } @@ -73,49 +72,51 @@ subprojects { outputDirectory.set(javadoc.get().destinationDir) } - val sourcesJar by creating(Jar::class) { - archiveClassifier.set("sources") - from(sourceSets.main.get().allSource) - } + plugins.withType(MavenPublishPlugin::class) { + val sourcesJar by creating(Jar::class) { + archiveClassifier.set("sources") + from(sourceSets.main.get().allSource) + } - val javadocJar by creating(Jar::class) { - archiveClassifier.set("javadoc") - from(dokkaHtml) - } + val javadocJar by creating(Jar::class) { + archiveClassifier.set("javadoc") + from(dokkaHtml) + } + + publishing { + publications { + create("default") { + from(this@subprojects.components["java"]) + artifact(sourcesJar) + artifact(javadocJar) - publishing { - publications { - create("default") { - from(this@subprojects.components["java"]) - artifact(sourcesJar) - artifact(javadocJar) - - pom { - name.set(project.name) - description.set("Obsoleting enums with sealed classes of objects") - url.set("https://github.com/livefront/sealed-enum") - - licenses { - license { - name.set("The Apache Software License, Version 2.0") - url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") - distribution.set("repo") + pom { + name.set(project.name) + description.set("Obsoleting enums with sealed classes of objects") + url.set("https://github.com/livefront/sealed-enum") + + licenses { + license { + name.set("The Apache Software License, Version 2.0") + url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") + distribution.set("repo") + } } - } - developers { - developer { - id.set("alexvanyo") - name.set("Alex Vanyo") - organization.set("Livefront") - organizationUrl.set("https://www.livefront.com") + developers { + developer { + id.set("alexvanyo") + name.set("Alex Vanyo") + organization.set("Livefront") + organizationUrl.set("https://www.livefront.com") + } } - } - scm { - url.set("https://github.com/livefront/sealed-enum") - connection.set("scm:git:git://github.com/livefront/sealed-enum.git") - developerConnection.set("scm:git:git://github.com/livefront/sealed-enum.git") + scm { + url.set("https://github.com/livefront/sealed-enum") + connection.set("scm:git:git://github.com/livefront/sealed-enum.git") + developerConnection.set("scm:git:git://github.com/livefront/sealed-enum.git") + } } } } diff --git a/gradle.properties b/gradle.properties index 071fcb2a..1fa17bf3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,4 +15,4 @@ org.gradle.parallel=true kotlin.code.style=official group=com.livefront.sealedenum -version=0.2.0 +version=0.3.0 diff --git a/processing-common/build.gradle.kts b/processing-common/build.gradle.kts index ea50b18d..3e8039d0 100644 --- a/processing-common/build.gradle.kts +++ b/processing-common/build.gradle.kts @@ -1,3 +1,7 @@ +plugins { + `maven-publish` +} + dependencies { implementation(kotlin("stdlib")) implementation(project(":runtime")) diff --git a/processor/build.gradle.kts b/processor/build.gradle.kts index 92ad076a..fa2715b7 100644 --- a/processor/build.gradle.kts +++ b/processor/build.gradle.kts @@ -1,5 +1,6 @@ plugins { kotlin("kapt") + `maven-publish` } dependencies { diff --git a/runtime/build.gradle.kts b/runtime/build.gradle.kts index 2874cd35..edcd8df4 100644 --- a/runtime/build.gradle.kts +++ b/runtime/build.gradle.kts @@ -1,3 +1,7 @@ +plugins { + `maven-publish` +} + dependencies { compileOnly(kotlin("stdlib"))