Skip to content

Update ksp monorepo to v2 (major) #17

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 9, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.google.devtools.ksp (source) 1.9.0-1.0.13 -> 2.2.0-2.0.2 age adoption passing confidence
com.google.devtools.ksp:symbol-processing-api (source) 1.9.0-1.0.13 -> 2.2.0-2.0.2 age adoption passing confidence

Release Notes

google/ksp (com.google.devtools.ksp)

v2.2.0-2.0.2

Compare Source

What's Changed

Full Changelog: google/ksp@2.2.0-RC3-2.0.2...2.2.0-2.0.2

v2.1.21-2.0.2

Compare Source

What's Changed

KSP1: use new mangling scheme for inline classes #​2446
KSP task (non-)registration happens too soon #​1789
[ksp2] Resolver.getJvmName wrong for properties starts with is #​2275
Inlined JVM name is not correct #​1493
[KSP2] Annotation values of inner annotations shouldn't be marked as default #​2437
Properly support @​ all annotation use site target #​2438

Contributors

Thanks to everyone who reported bugs and participated in discussions!

Full Changelog: google/ksp@2.1.21-2.0.1...2.1.21-2.0.2

v2.1.21-2.0.1

Compare Source

What's Changed

Full Changelog: google/ksp@2.1.21-RC2-2.0.1...2.1.21-2.0.1

v2.1.20-2.0.1

Compare Source

What's Changed
Contributors

Thanks to everyone who reported bugs and participated in discussions!

Full Changelog: google/ksp@2.1.20-2.0.0...2.1.20-2.0.1

v2.1.20-2.0.0

Compare Source

What's Changed
  • Bumped version to 2.0.0 and enabled KSP2 by default!
  • No-op blockOtherCompilerPlugins #​2397
  • A couple of fixes to compilation avoidance #​2401
  • KSTypeReferenceResolvedImpl.toString(): render unexpanded #​2393

Full Changelog: google/ksp@2.1.20-1.0.32...2.1.20-2.0.0

v2.1.20-1.0.32

Compare Source

What's Changed

#​2379 [KSP2] resolved type of vararg parameter in functions changed vs KSP1
#​2358 [KSP2] Annotation missing from property when VALUE_PARAMETER target is used.

And various performance optimizations!

v2.1.20-1.0.31

Compare Source

What's Changed

Full Changelog: google/ksp@2.1.20-RC2-1.0.31...2.1.20-1.0.31

v2.1.10-1.0.31

Compare Source

Bug Fixes

  • [KSP2] KSPropertyDeclaration#type for typealias does not match its declaration. #​2345
  • Incorrect isMutable on KSPropertyDeclaration from a JAVA_LIB in 2.1.10-1.0.30 #​2346
  • KSP breaks compilation avoidance #​2347

v2.1.10-1.0.30

Compare Source

Bugs Fixed / PR Landed

https://github.com/google/ksp/issues/2325 [KSP2] KSType.arguments return arguments on aliased type.https://github.com/google/ksp/pull/23122 Partially migrate KSP off AGP's legacy Variant APIhttps://github.com/google/ksp/issues/23099 Resolver#getDeclarationsFromPackage() does not find generated fileshttps://github.com/google/ksp/issues/22522 Incremental processing breaks when a project dependency is modifiedhttps://github.com/google/ksp/issues/22655 [ksp2] ksType.arguments will crash on a typealias's java wildcard typhttps://github.com/google/ksp/issues/226464 [ksp2] getJavaWildcard does not return wildcard for List param (different with kapt/ksphttps://github.com/google/ksp/issues/2246246 Resolver returns non-equal instances of the same declaratiohttps://github.com/google/ksp/issues/2254254 [KSP2] Resolver#overrides() gives incorrect result when method isn't accessible.

v2.1.10-1.0.29

Compare Source

What's Changed

Full Changelog: google/ksp@2.1.10-RC2-1.0.29...2.1.10-1.0.29

v2.1.0-1.0.29

Compare Source

Updates

Contributors

Thanks to everyone who reported bugs and participated in discussions!

v2.1.0-1.0.28

Compare Source

What's Changed

Full Changelog: google/ksp@2.1.0-RC2-1.0.28...2.1.0-1.0.28

v2.0.21-1.0.28

Compare Source

Updates
  • [KSP2] Running from command line never finishes #​2176
  • Introduce KspAATask.commandLineArgumentProviders #​2201
Contributors

Thanks to @​GeorgCantor and everyone who reported bugs and participated in discussions!

v2.0.21-1.0.27

Compare Source

Bugs Fixed

  • KSP2: KtInvalidLifetimeOwnerAccessException: Access to invalid KtAlwaysAccessibleLifetimeToken: PSI has changed since creation #​1854
  • [KSP2] getSymbolsWithAnnotation() doesn't work if the annotation is an alias in KOTLIN_LIB #​2024
  • KotlinSymbolProcessingExtension leaks files due to URLClassLoader not being closed #​2159
  • Unresolvable iOS reference on Linux host #​2173
  • Fail to apply ksp before android #​2174
  • [KSP2] Mangled names for internal functions are incorrect for Android modules #​2180
  • [KSP2] JVM names for property getters/setters are incorrect if they start with "is" #​2181

Contributors

Thanks to @​jonamireh, @​kuanyingchou, @​martinbonnin, @​pablobaxter, @​scott-pollom, and everyone who reported bugs and participated in discussions!

v2.0.21-1.0.26

Compare Source

Bugs Fixed
  • A failure occurred while executing com.google.devtools.ksp.gradle.KspAAWorkerAction #​1968
  • [KSP2] default value is null for nested annotation #​2077
  • [KSP2] "internal" members are out of order in Resolver.getDeclarationsInSourceOrder() #​1827
  • [KSP2] Resolver.getDeclarationsFromPackage() couldn't find Java declarations #​1952
  • [KSP2] Property setter parameter name becomes value #​1865
  • [KSP2] A failure occurred while executing com.google.devtools.ksp.gradle.KspAAWorkerAction #​1941
  • [KSP2] NullPointerException when calling hasBackingField on properties of Enum declarations #​1753
  • JVM Module name is changed for libraries #​2105
  • [KSP2] asMemberOf() is not working with Java sources #​2051
  • KSP2: implement KSPropertyDeclaration.findOverridee and Resolver.asMemberOf for java fields #​1642
  • [KSP2] command line doesn't support absolute Windows paths #​2046
  • [KSP2] NPE when getting annotation arguments on non-Jvm targets #​1823
  • [KSP2] Resolver.mapToJvmSignature() is not consistent #​2109
  • [KSP2] Default annotation argument values are sometimes missing #​2107
  • [KSP2] KSFunctionDeclaration.asMemberOf doesn't work sometimes #​2116
  • [KSP2] Qualified names of nested annotations from JAVA_LIB is null #​2033
  • [KSP2] Class literal annotation default values resolve to error types #​1910
  • KaFirPsiJavaTypeParameterSymbol cannot be cast to KaFirTypeParameterSymbol #​2119
  • KSP memory leak in Android build #​2073
  • [KSP2] KSClassDeclaration.asType(emptyList()) fails after Resolver.getSymbolsWithAnnotation() call #​2094
  • KSValueArgumentImpl doesn't implement .equals() in KSP2 #​2091
  • [KSP2] JvmName is ignored in annotation property getters #​2148
  • [KSP2] Unable to get visibility of KSTypeAlias #​2140
  • Gradle kspKotlin task failed when upgrading to 2.0.20-1.0.25 #​2123
  • [KSP2] Generic type arguments on typealiases are improperly forwarded to the KSType #​2088
  • java.lang.IllegalStateException: Storage for [...] is already registered with 2.0.20-1.0.24 #​2072

Full Changelog: google/ksp@911690b...2.0.21-1.0.26

Contributors

Thanks to @​ansman, @​asapha, @​kaeawc, @​kuanyingchou, @​scott-pollom, and everyone who reported bugs and participated in discussions!

v2.0.21-1.0.25

Compare Source

What's Changed

Full Changelog: google/ksp@2.0.21-RC-1.0.25...2.0.21-1.0.25

v2.0.20-1.0.25

Compare Source

Bugs Fixed

Inlined JVM name is not correct #​1493
[KSP2] NullPointerException when getting name of nested annotation #​1963
[KSP2] The status was unresolved for FirSimpleFunctionImpl #​1938
[KSP2] Class values in type annotations get resolved to error type #​1933
[KSP2] Comparing KSType leads to exception #​1918
[KSP2] Can't find values in repeatable annotations #​1883
incremental: aggregating outputs should always be invalidated #​2027
[KSP2] Not yet implemented: KSValueArgumentLiteImpl.getLocation #​2048
[KSP2] Not yet implemented: KSValueArgumentImpl.getParent #​2049
getSymbolsWithAnnotation returns copy function from data class #​1996
[KSP2] Annotations got use-site target when there are none specified #​1882
getting null pointer exception #​1929
[KSP2] Calling getDeclarationsInSourceOrder throws KotlinIllegalStateExceptionWithAttachments #​1930
[KSP2] A failure occurred while executing com.google.devtools.ksp.gradle.KspAAWorkerAction #​1941
KSP2: Resolver.getJvmNames doesn't work for inline and internal classes #​1640
kspCaches don't work together with Gradle build cache #​2042

Contributors

Thank you so much! @​ansman, @​kuanyingchou

Full Changelog: google/ksp@2.0.20-1.0.24...2.0.20-1.0.25

v2.0.20-1.0.24

Compare Source

What's Changed

v2.0.10-1.0.24

Compare Source

What's Changed

v2.0.0-1.0.24

Compare Source

What's Changed

#​2013 Handle edge cases of KtAnnotated.annotations
#​2009 Fix :kotlin-analysis-api:shadowJar failing on Windows
#​2006 Use symbol-processing-aa-embeddable in Gradle

Bugs Fixed

#​1956 IllegalAccessError in Dagger with KSP2.0.0-1.0.22 and KSP2
#​1998 KSP2 version 2.0.0-1.0.23 crashes on Moshi codegen with NoSuchElementException: Collection contains no element matching the predicate.

Full Changelog: google/ksp@e880744...[`c63864c`](https://redirect.github.com/google/ksp/commit/c63864cc1268bcb1c83e058494b6ff4b25947251)

v2.0.0-1.0.23

Compare Source

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

v2.0.0-1.0.22

Compare Source

Important Changes

  • KSErrorType.toString() now contains the reference name it was tried to be resolved, and therefore KSErrorType is no longer a singleton. Processors relying on equality checks of that (in contrast of using KSType.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

Full Changelog: google/ksp@2.0.0-1.0.21...2.0.0-1.0.22

v2.0.0-1.0.21

Compare Source

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

v1.9.25-1.0.20

Compare Source

KSP 1.0.20 for Kotlin 1.9.25

v1.9.24-1.0.20

Compare Source

KSP 1.0.20 for kotlin compiler version 1.9.24

v1.9.23-1.0.20

Compare Source

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

v1.9.23-1.0.19

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.

v1.9.22-1.0.17

Compare Source

Issues fixed
  • Annotations missing on KSTypeArgument of typealias #​1679
  • unhandled visibility: private to this #​1515
  • Resolver#getJvmCheckedException results in <ERROR TYPE> when throwing type variable. #​1460
  • Class annotation values with $ in name are null when used in Kotlin source #​1671
  • KSP 1.9.21-1.0.15 leaking memory and causing OOMs #​1653
  • KSP processing fails with Java enum #​1482
  • [KSP2] Support Package annotations #​1641

v1.9.22-1.0.16

Compare Source

This is KSP 1.0.16 for Kotlin compiler 1.9.22

v1.9.21-1.0.16

Compare Source

Issue fixed

#​1653 KSP 1.9.21-1.0.15 leaking memory and causing OOMs

v1.9.21-1.0.15

Compare Source

This is a hot fix to #​1591 where multiple KMP projects were affected.

Issues Fixed / PRs Merged

#​1591 Error: Rewrite at slice LEXICAL_SCOPE key: ANNOTATION_ENTRY old value
#​1612 Filter out the -progressive compiler flag in KSP tasks
#​1614 Revert back to the non-thread-local KSP compiler plugin implementation.

v1.9.20-1.0.14

Compare Source

issues fixed
  • #​1474 Unresolvable types in annotation value are incorrectly displayed as null values instead of error types.
  • #​1522 KspTaskNative is not configuration cacheable
  • #​1554 KSP Incremental Processing: Removing a file does not remove transitively generated files
  • #​1555 KSP Incremental Processing: Clean source files should have generated output cache accessible via Resolver.
  • #​1568 KSP resolves dependencies too early

v1.9.20-1.0.13

Compare Source

Bumping Kotlin to 1.9.20 for KSP 1.0.13.

v1.9.10-1.0.13

Compare Source

KSP 1.0.13 for kotlin compiler version 1.9.10


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/major-ksp-monorepo branch from 7259e94 to bbf25c9 Compare February 14, 2025 06:09
@renovate renovate bot force-pushed the renovate/major-ksp-monorepo branch from bbf25c9 to 29b04fa Compare February 27, 2025 23:21
@renovate renovate bot force-pushed the renovate/major-ksp-monorepo branch 2 times, most recently from 8ac5530 to e006b07 Compare March 26, 2025 22:57
@renovate renovate bot force-pushed the renovate/major-ksp-monorepo branch from e006b07 to 4cde35a Compare April 9, 2025 03:07
@renovate renovate bot force-pushed the renovate/major-ksp-monorepo branch from 4cde35a to 2d21e2f Compare May 1, 2025 03:23
@renovate renovate bot force-pushed the renovate/major-ksp-monorepo branch from 2d21e2f to cb37dc1 Compare May 13, 2025 23:31
@renovate renovate bot force-pushed the renovate/major-ksp-monorepo branch from cb37dc1 to 5da3876 Compare June 10, 2025 03:52
@renovate renovate bot force-pushed the renovate/major-ksp-monorepo branch from 5da3876 to 905341c Compare June 25, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants