Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.2.0 #735

Merged
merged 4 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,6 @@ See https://foso.github.io/Ktorfit/#compatibility
| ktorfit-converters-call | [![Maven Central](https://img.shields.io/maven-central/v/de.jensklingenberg.ktorfit/ktorfit-converters-call)](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-converters-call) |
| ktorfit-converters-response | [![Maven Central](https://img.shields.io/maven-central/v/de.jensklingenberg.ktorfit/ktorfit-converters-response)](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-converters-response) |

## Ktorfit Ktor 3 Packages
The main dependencies will stay on Ktor 2.x till Ktor 3 is stable.
When you want to use Ktor 3 and WasmJs, you need to replace your dependencies with a "ktor3" version, you can use the following packages:

| Project | Version |
|-----------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| ktorfit-lib-light-ktor-3.0.0 | [![Maven Central](https://img.shields.io/maven-central/v/de.jensklingenberg.ktorfit/ktorfit-lib-light-ktor-3.0.0)](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-lib-light-ktor-3.0.0) |
| ktorfit-lib-ktor-3.0.0 | [![Maven Central](https://img.shields.io/maven-central/v/de.jensklingenberg.ktorfit/ktorfit-lib-ktor-3.0.0)](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-lib-ktor-3.0.0) |
| ktorfit-converters-flow-ktor-3.0.0 | [![Maven Central](https://img.shields.io/maven-central/v/de.jensklingenberg.ktorfit/ktorfit-converters-flow-ktor-3.0.0)](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-converters-flow-ktor-3.0.0) |
| ktorfit-converters-call-ktor-3.0.0 | [![Maven Central](https://img.shields.io/maven-central/v/de.jensklingenberg.ktorfit/ktorfit-converters-call-ktor-3.0.0)](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-converters-call-ktor-3.0.0) |
| ktorfit-converters-response-ktor-3.0.0 | [![Maven Central](https://img.shields.io/maven-central/v/de.jensklingenberg.ktorfit/ktorfit-converters-response-ktor-3.0.0)](https://central.sonatype.com/artifact/de.jensklingenberg.ktorfit/ktorfit-converters-response-ktor-3.0.0) |

You can find all Ktorfit packages on [Maven Central](https://search.maven.org/search?q=de.jensklingenberg.ktorfit).

🔎 Check the [latest changes](https://github.com/Foso/Ktorfit/blob/master/docs/CHANGELOG.md) to update your project.
Expand Down
12 changes: 6 additions & 6 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ and this project orients towards [Semantic Versioning](http://semver.org/spec/v2
Note: This project needs KSP to work and every new Ktorfit with an update of the KSP version is technically a breaking change.
But there is no intent to bump the Ktorfit major version for every KSP update.

# [Unreleased]()
* Supported Kotlin version:
* Supported KSP version:
* Ktor version:
# [2.2.0]()
* Supported Kotlin version: 2.0.0; 2.0.10; 2.0.20, 2.1.0-Beta1; 2.0.21-RC, 2.0.21
* Supported KSP version: 1.0.27
* Ktor version: 3.0.1

## Changed
- Ktorfit is now using Ktor 3.0.1 as a default. The extra versions with "-ktor3" will not be updated anymore.
Expand All @@ -20,8 +20,8 @@ But there is no intent to bump the Ktorfit major version for every KSP update.
- Inheritance problem [#663](https://github.com/Foso/Ktorfit/issues/663)
See https://foso.github.io/Ktorfit/generation/#nodelegation

- Generated classes do not propagate opt-in ExperimentalUuidApi [666](https://github.com/Foso/Ktorfit/issues/666)
OptIn annotations on interfaces and functions will now be propagated to the generated classes.
- Generated classes do not propagate opt-in ExperimentalUuidApi [666](https://github.com/Foso/Ktorfit/issues/666)
OptIn annotations on interfaces and functions will now be propagated to the generated classes.

- Fixed documentation for converters to match the current version.
- Unresolved reference setBody in generated API implementations [#726](https://github.com/Foso/Ktorfit/issues/726)
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ inspired by [Retrofit](https://square.github.io/retrofit/)

| Ktorfit-version |
|-------------------------------------------------------------------------------|
| **_2.2.0_** https://github.com/Foso/Ktorfit/blob/master/docs/CHANGELOG.md#220 |
| **_2.1.0_** https://github.com/Foso/Ktorfit/blob/master/docs/CHANGELOG.md#210 |
| **_2.0.1_** https://github.com/Foso/Ktorfit/blob/master/docs/CHANGELOG.md#201 |
| **_2.0.0_** https://github.com/Foso/Ktorfit/blob/master/docs/CHANGELOG.md#200 |
Expand Down
4 changes: 2 additions & 2 deletions example/MultiplatformExample/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id("com.android.library")
id("com.google.devtools.ksp") version "2.0.21-1.0.27"
id("kotlinx-serialization")
id("de.jensklingenberg.ktorfit") version "2.1.0"
id("de.jensklingenberg.ktorfit") version "2.2.0"
}

ktorfit {
Expand All @@ -16,7 +16,7 @@ ktorfit {

version = "1.0"
val ktorVersion = "3.0.1"
val ktorfitVersion = "2.1.0"
val ktorfitVersion = "2.2.0"

kotlin {
jvmToolchain(8)
Expand Down
13 changes: 6 additions & 7 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[versions]
abg= "8.2.2"
autoService = "1.1.1"
autoServiceKsp = "1.10"
binaryCompatibilityValidator = "0.16.3"
coroutines = "1.8.1"
detekt = "1.23.7"
Expand All @@ -12,13 +11,13 @@ kotlinPoet = "1.18.1"
kspVersion = "2.0.21-1.0.27"

groupId = "de.jensklingenberg.ktorfit"
ktorfit = "2.1.0"
ktorfitKsp = "2.1.0-1.0.27"
ktorfit = "2.2.0"
ktorfitKsp = "2.2.0-1.0.27"
ktorfitCompiler = "2.1.0-2.0.21"
ktorfitCallConverter = "2.1.0"
ktorfitFlowConverter = "2.1.0"
ktorfitResponseConverter = "2.1.0"
ktorfitGradle = "2.1.0"
ktorfitCallConverter = "2.2.0"
ktorfitFlowConverter = "2.2.0"
ktorfitResponseConverter = "2.2.0"
ktorfitGradle = "2.2.0"

ktorfitGradlePlugin = "2.1.0"
ktorVersion = "3.0.1"
Expand Down
19 changes: 3 additions & 16 deletions ktorfit-converters/call/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,7 @@ val enableSigning = project.hasProperty("signingInMemoryKey")

mavenPublishing {
val artifactId =
"ktorfit-converters-call" +
if (libs.versions.ktorVersion
.get()
.startsWith("3.")
) {
"-ktor-" + libs.versions.ktorVersion.get()
} else {
""
}
"ktorfit-converters-call"
coordinates(
libs.versions.groupId.get(),
artifactId,
Expand All @@ -49,13 +41,8 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {

kotlin {
explicitApi()
if (libs.versions.ktorVersion
.get()
.startsWith("3.")
) {
@OptIn(ExperimentalWasmDsl::class)
wasmJs()
}
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
wasmJs()
jvm {
}
js(IR) {
Expand Down
19 changes: 3 additions & 16 deletions ktorfit-converters/flow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,7 @@ val enableSigning = project.hasProperty("signingInMemoryKey")

mavenPublishing {
val artifactId =
"ktorfit-converters-flow" +
if (libs.versions.ktorVersion
.get()
.startsWith("3.")
) {
"-ktor-" + libs.versions.ktorVersion.get()
} else {
""
}
"ktorfit-converters-flow"
coordinates(
libs.versions.groupId.get(),
artifactId,
Expand All @@ -50,13 +42,8 @@ tasks.withType<KotlinCompile> {

kotlin {
explicitApi()
if (libs.versions.ktorVersion
.get()
.startsWith("3.")
) {
@OptIn(ExperimentalWasmDsl::class)
wasmJs()
}
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
wasmJs()
jvm {
}
js(IR) {
Expand Down
19 changes: 3 additions & 16 deletions ktorfit-converters/response/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,7 @@ val enableSigning = project.hasProperty("signingInMemoryKey")

mavenPublishing {
val artifactId =
"ktorfit-converters-response" +
if (libs.versions.ktorVersion
.get()
.startsWith("3.")
) {
"-ktor-" + libs.versions.ktorVersion.get()
} else {
""
}
"ktorfit-converters-response"
coordinates(
libs.versions.groupId.get(),
artifactId,
Expand All @@ -50,13 +42,8 @@ tasks.withType<KotlinCompile> {

kotlin {
explicitApi()
if (libs.versions.ktorVersion
.get()
.startsWith("3.")
) {
@OptIn(ExperimentalWasmDsl::class)
wasmJs()
}
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
wasmJs()
jvm {
}
js(IR) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ class KtorfitGradlePlugin : Plugin<Project> {
const val GROUP_NAME = "de.jensklingenberg.ktorfit"
const val ARTIFACT_NAME = "compiler-plugin"
const val COMPILER_PLUGIN_ID = "ktorfitPlugin"
const val KTORFIT_KSP_PLUGIN_VERSION = "2.1.0" // remember to bump this version before any release!
const val KTORFIT_KSP_PLUGIN_VERSION = "2.2.0" // remember to bump this version before any release!
const val KTORFIT_COMPILER_PLUGIN_VERSION = "2.1.0"
const val SNAPSHOT = ""
const val MIN_KSP_VERSION = "1.0.24"
const val MIN_KSP_VERSION = "1.0.27"
const val MIN_KOTLIN_VERSION = "2.0.0"
}

Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extra:
site:
images: '../../images'
ktorfit:
release: "2.1.0"
release: "2.2.0"
ktor:
release: "2.3.12"
social:
Expand Down
Loading