Skip to content

Commit

Permalink
Prepare for release 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ansman committed Jul 20, 2024
1 parent 52204f7 commit c9222a3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ the module wide setting).

### Annotations
* `@JsonSerializable` is the annotation used to generate `JsonAdapter`'s. Should only be placed on data classes, enums, sealed classes and objects.
* `@KotshiJsonAdapterFactory` makes Kotshi generate a JsonAdapter factory. Should be placed on an abstract class that implements `JsonAdapter.Factory`.
* `@KotshiJsonAdapterFactory` makes Kotshi generate a JsonAdapter factory. Should be placed on an object that implements `JsonAdapter.Factory`.
* `@JsonDefaultValue` can be used to annotate a fallback for enums or sealed classes when an unknown entry is encountered. The default is to thrown an exception.
* `@JsonProperty` can be used to customize how a property or enum entry is serialized to and from JSON.
* `@Polymorphic` and `@PolymorphicLabel` used on sealed classes and their implementions.
* `@Polymorphic` and `@PolymorphicLabel` used on sealed classes and their implementations.
* `@RegisterJsonAdapter` registers a json adapter into the Kotshi json adapter factory.

### Default Values
Expand Down Expand Up @@ -160,7 +160,7 @@ Examples:
}

dependencies {
val kotshiVersion = "2.15.0"
val kotshiVersion = "3.0.0"
implementation("se.ansman.kotshi:api:$kotshiVersion")
ksp("se.ansman.kotshi:compiler:$kotshiVersion")
}
Expand All @@ -176,7 +176,7 @@ Examples:
}

dependencies {
val kotshiVersion = "2.15.0"
val kotshiVersion = "3.0.0"
implementation("se.ansman.kotshi:api:$kotshiVersion")
kapt("se.ansman.kotshi:compiler:$kotshiVersion")
}
Expand All @@ -192,7 +192,7 @@ Examples:
}
dependencies {
def kotshiVersion = "2.15.0"
def kotshiVersion = "3.0.0"
implementation "se.ansman.kotshi:api:$kotshiVersion"
ksp "se.ansman.kotshi:compiler:$kotshiVersion"
}
Expand All @@ -208,7 +208,7 @@ Examples:
}
dependencies {
def kotshiVersion = "2.15.0"
def kotshiVersion = "3.0.0"
implementation "se.ansman.kotshi:api:$kotshiVersion"
kapt "se.ansman.kotshi:compiler:$kotshiVersion"
}
Expand Down
1 change: 1 addition & 0 deletions gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies {
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
api(libs.kotlin.gradlePlugin)
api(libs.dokka.gradlePlugin)
api(libs.sonatypePublishFix)
implementation(gradleKotlinDsl())
}

Expand Down
1 change: 1 addition & 0 deletions gradle-plugin/src/main/kotlin/published-library.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
id("maven-publish")
id("signing")
id("org.jetbrains.dokka")
id("se.ansman.sonatype-publish-fix")
}

version = providers.gradleProperty("version").get()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=2.16.0-SNAPSHOT
version=3.0.0

kapt.include.compile.classpath=false
kapt.incremental.apt=true
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ kotlinx-binaryCompatibilityValidator = "org.jetbrains.kotlinx.binary-compatibili
kotlin-gradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-metadata = { module = "org.jetbrains.kotlin:kotlin-metadata-jvm", version.ref = "kotlin" }

sonatypePublishFix = "se.ansman.sonatype-publish-fix:gradle-plugin:1.0.0"

dokka-gradlePlugin = "org.jetbrains.dokka:dokka-gradle-plugin:1.9.20"

auto-common = "com.google.auto:auto-common:1.2.2"
Expand Down
2 changes: 1 addition & 1 deletion publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

./gradlew clean
PASSPHRASE=$(op read op://private/GnuPG/password | xargs)
./gradlew publishAllPublicationsToMavenCentralRepository -PsignArtifacts=true "-Psigning.gnupg.passphrase=$PASSPHRASE" --no-parallel --no-configuration-cache
./gradlew publishAllPublicationsToMavenCentralRepository -PsignArtifacts=true -Psigning.gnupg.keyName=7A743C13 "-Psigning.gnupg.passphrase=$PASSPHRASE"

0 comments on commit c9222a3

Please sign in to comment.