2.7.1
2.7.1
2.7.1 - 2025-12-11
- Supported KSP version: >=2.0.2
- Supported Kotlin version: >=2.2.0
- Ktor version: 3.3.3
When you use Kotlin 2.3.0 you need to set the compilerPluginVersion to 2.3.3. See compatibility table below: https://github.com/Foso/Ktorfit/tree/master/ktorfit-compiler-plugin#compatibility-table
Changed
- Update Ktor to 3.3.3
Fixed
- Class-level annotations (e.g.,
@HiddenFromObjC,@ObjCName,@Deprecated) are now properly propagated to generated implementation classes. This resolves compilation errors when using annotations like@HiddenFromObjCon Ktorfit interfaces - Decorating suspend func with @THROWS breaks some gradle tasks #995
Deprecated
-
The
kotlinVersionproperty in the Ktorfit Gradle plugin extension is now deprecated in favor ofcompilerPluginVersion.Reason: The new
compilerPluginVersionproperty provides a clearer and more accurate description of its purpose, which is to specify the version of the Ktorfit compiler plugin, not the Kotlin language version. This change improves configuration clarity and reduces confusion.
When you use Kotlin 2.3.0 you need to set the compilerPluginVersion to 2.3.3. See compatibility table below: https://github.com/Foso/Ktorfit/tree/master/ktorfit-compiler-plugin#compatibility-table
Migration:
Replace any usage of kotlinVersion in your Gradle build scripts with compilerPluginVersion. The kotlinVersion property will continue to work for now, but will be removed in a future release.
Example migration:
// Old (deprecated)
ktorfit {
kotlinVersion.set("2.3.3")
}
// New (recommended)
ktorfit {
compilerPluginVersion.set("2.3.3")
}
Thanks to @eygraber for contributing to this release!