Releases: google/ksp
2.0.10-RC-1.0.23
KSP 1.0.23 for Kotlin 2.0.10-RC
2.0.0-1.0.23
Issues fixed
- [KSP2] Nullable type arg type becomes non-null after replace() call #1856
- Annotations on enum entires on K2 are missing #1962
- Got IllegalStateException when calling replace() on error types #1960
- [KSP2] Resolver.getJvmCheckedException doesn't work on property accessors #1900
- [KSP2] Property getter JVM names in data classes become componentN instead of getXXX #1958
- [KSP2] Resolver.mapToJvmSignature doesn't unwrap inline classes #1859
- [KSP2] KSFunctionDeclaration.asMemberOf does not return correct types #1919
- implement getOwnerJvmClassName #1979
- [KSP2] KSPropertyDeclaration.hasBackingField returns inconsistent results #1939
- [KSP2] Annotations on extension receivers are missing #1899
2.0.20-Beta1-1.0.22
What's Changed
- UPDATE_KOTLIN_VERSION: 2.0.20-Beta1 by @ting-yuan in #1975
Full Changelog: 2.0.0-1.0.22...2.0.20-Beta1-1.0.22
2.0.0-1.0.22
Important Changes
KSErrorType.toString()
now contains the reference name it was tried to be resolved, and thereforeKSErrorType
is no longer a singleton. Processors relying on equality checks of that (in contrast of usingKSType.isError
) will need to be updated accordingly.
Issues Fixed
#1908 KSP2: Calling KSP2 in programs does not appear to work on macOS or Windows
#1917 KSP2's symbol-processing-aa-embeddable artifact exposes an unresolvable pre-release kotlin 2.0.20 dependency
#1911 NoSuchMethodError when running KSP2 with Dagger (KSP 2.0.0-1.0.21)
#1909 KSP2: default annotation arguments no longer work in 1.0.21
#1232 Expose simple names on a missing types's synthetic declaration
#1857 [KSP2] Modifiers are missing for property accessors
#1924 [KSP2] Type arg becomes '*' after calling KSType.replace() with an error type
#1948 KSP2 default annotation KClass values for built-in types use java.lang.* versions
What's Changed
- Include type hint into KSErrorType. by @Jeffset in #1848
- Implement Resolver.getModuleName API by @ZacSweers in #1847
- Patch AA service files in renamed uber jar by @ting-yuan in #1867
- fix annotation default value parsing for arrays and class literals. by @neetopia in #1871
- fix package name for library based symbols by @neetopia in #1873
- Do not index classpath in declaration provider by @ting-yuan in #1870
- check functional interface for modifiers by @neetopia in #1872
- Annotation default java by @neetopia in #1879
- fix type parameter bounds by @neetopia in #1880
- Add command line parser and entry points by @ting-yuan in #1885
- KSP2: Fix support of wasm by @ting-yuan in #1888
- Return KSClassDeclarationEnumEntryImpl for enum entry annotation values. by @neetopia in #1881
- Reuse Kotlin indexes in incremental providers by @ting-yuan in #1891
- special handling for java property accessors override checking by @neetopia in #1894
- KSP2: Reuse Java indexes by @ting-yuan in #1895
- Incremental: fix roots from getSealedSubclasses by @ting-yuan in #1893
- use safe cast for annotation type to declaration resolution by @neetopia in #1902
Full Changelog: 2.0.0-1.0.21...2.0.0-1.0.22
2.0.0-1.0.21
This release brings mostly bug fixes into KSP2 beta
Users are encouraged to try out KSP2 beta.
new feature
expose an API in Resolver to retrieve the module name for handling mangling of internal members #1621
issues fixed
- Class values are missing class type in annotation values #1646
- Kotlin Function* types reports inconsistent package and qualified names #1845
- KSP2 cannot load Android lint checks jar due to FileTooBigException #1839
- [KSP2] KSAnnotations with annotation properties with a default value always resolve to null #1843
- [KSP2] Modifier.FUN is missing in functional interfaces #1853
- [KSP2] ClassCastException when calling KSType.starProjection() on a Java field type #1735
- [KSP2] Annotation arguments with default values are missing #1837
- [KSP2] Intersection types are not modeled #1846
- KSP2: Model enum entries in annotation values #1861
- KSP2: Unknown JS backend: Wasm #1889
- [KSP2] NullPointerException when getting arguments of annotation value #1798
2.0.0-RC3-1.0.20
KSP 1.0.20 for Kotlin 2.0.0-RC3
1.9.24-1.0.20
KSP 1.0.20 for kotlin compiler version 1.9.24
2.0.0-RC2-1.0.20
KSP 1.0.20 for Kotlin 2.0.0-RC2
2.0.0-RC1-1.0.20
KSP 1.0.20 for Kotlin 2.0.0-RC1
1.9.23-1.0.20
KSP1 issues fixed
- performance optimization for certain workload consists of heavy Java files, including
- Add excludedSources to the KSP extension object #1793 thanks to @bitspittle
KSP2 issues fixed
- NoClassDefFoundError for LZ4Factory when trying KSP2 #1713
- Calling KSType.replace() with original arguments results in #1807
- Static fields in base class appear in derived classes #1744
- fix backing field checking for top level callables
- support sealed inheritors lookup.
- support type alias for getSymbolsWithAnnotation
- support more types for reference elements