Skip to content

Commit

Permalink
Merge pull request #52 from livefront/av/prepare-0.3.0-release
Browse files Browse the repository at this point in the history
Prepare 0.3.0 release
  • Loading branch information
Alex Vanyo authored Mar 2, 2021
2 parents 49aa99f + b74089d commit 53ef319
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 41 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
```

Expand Down
77 changes: 39 additions & 38 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ subprojects {
plugin<org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper>()
plugin<JacocoPlugin>()
plugin<io.gitlab.arturbosch.detekt.DetektPlugin>()
plugin<MavenPublishPlugin>()
plugin<org.jetbrains.dokka.gradle.DokkaPlugin>()
}

Expand Down Expand Up @@ -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<MavenPublication>("default") {
from(this@subprojects.components["java"])
artifact(sourcesJar)
artifact(javadocJar)

publishing {
publications {
create<MavenPublication>("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")
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ org.gradle.parallel=true
kotlin.code.style=official

group=com.livefront.sealedenum
version=0.2.0
version=0.3.0
4 changes: 4 additions & 0 deletions processing-common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
`maven-publish`
}

dependencies {
implementation(kotlin("stdlib"))
implementation(project(":runtime"))
Expand Down
1 change: 1 addition & 0 deletions processor/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
kotlin("kapt")
`maven-publish`
}

dependencies {
Expand Down
4 changes: 4 additions & 0 deletions runtime/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
`maven-publish`
}

dependencies {
compileOnly(kotlin("stdlib"))

Expand Down

0 comments on commit 53ef319

Please sign in to comment.