Skip to content

Releases: google/ksp

2.0.0-1.0.21

21 May 20:19
Compare
Choose a tag to compare

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

13 May 18:20
Compare
Choose a tag to compare
2.0.0-RC3-1.0.20 Pre-release
Pre-release

KSP 1.0.20 for Kotlin 2.0.0-RC3

1.9.24-1.0.20

07 May 19:22
Compare
Choose a tag to compare

KSP 1.0.20 for kotlin compiler version 1.9.24

2.0.0-RC2-1.0.20

30 Apr 02:52
Compare
Choose a tag to compare
2.0.0-RC2-1.0.20 Pre-release
Pre-release

KSP 1.0.20 for Kotlin 2.0.0-RC2

2.0.0-RC1-1.0.20

10 Apr 19:14
Compare
Choose a tag to compare
2.0.0-RC1-1.0.20 Pre-release
Pre-release

KSP 1.0.20 for Kotlin 2.0.0-RC1

1.9.23-1.0.20

05 Apr 00:55
Compare
Choose a tag to compare

KSP1 issues fixed

  • performance optimization for certain workload consists of heavy Java files, including
    • Replace IdKey's impl with identityHashCode #1804
    • Cache enclosed descriptors by name #1808
  • 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

2.0.0-Beta5-1.0.20

05 Apr 00:46
Compare
Choose a tag to compare
2.0.0-Beta5-1.0.20 Pre-release
Pre-release
   2.0.0-Beta5-1.0.20

2.0.0-Beta5-1.0.19

20 Mar 20:39
Compare
Choose a tag to compare
2.0.0-Beta5-1.0.19 Pre-release
Pre-release
   2.0.0-Beta5-1.0.19

2.0.0-Beta4-1.0.19

07 Mar 23:19
Compare
Choose a tag to compare
2.0.0-Beta4-1.0.19 Pre-release
Pre-release

KSP 1.0.19 for Kotlin 2.0.0-Beta4

1.9.23-1.0.19

07 Mar 23:08
Compare
Choose a tag to compare

New APIs

  • #1708 SymbolProcessorEnvironment.kspVersion
  • #1707 CodeGenerator.associateWithFunctions and CodeGenerator.associateWithProperties

Issues fixed in KSP2

  • #1691 IllegalStateException: Value type not found for value
  • #1719 The order of symbols returned from Resolver.getSymbolsWithAnnotation() is different
  • #1718 Getting packageName of Kotlin types returns empty String
  • #1721 KSAnnotation packageName is an empty String for a type from a different module
  • #1722 Resolver.getDeclarationsFromPackage() returns declarations from the default package when passing in an unknown package
  • #1717 Resolver.getJvmName() returns different results for annotation args
  • #1725 asMemberOf() throws exception with a generic type without arguments
  • #1728 ClassCastException when calling KSType.replace() with empty list
  • #1713 NoClassDefFoundError for LZ4Factory when trying KSP2
  • #1665 NoClassDefFound in ksp.useKSP2=true mode
  • #1733 ABI incompatibility with kotlin-compiler-embeddable in 2.0.0-Beta4
  • #1714 Generated resources are not added to KotlinCompilation inputs
  • #1747 isCompanionObject is false for companion objects from KOTLIN_LIB
  • #1743 Incorrect type parameter variances
  • #1759 IllegalStateException when getting the modifiers from properties in a Java annotation declaration

Issues fixed in KSP Gradle Plugin

  • #1712 Analysis API artifacts have the wrong common-deps dependency
  • #1775 1.0.18 creates circular dependencies with kapt tasks
  • #1772 Update plugin com.google.devtools.ksp to v1.9.22-1.0.18 BUILD FAILED

Known issues

  • #1776 KSP2 has higher memory usage when the compile classpath is very large.