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

Update Kotlin and compiler plugins to v2 (major) #1005

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 21, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.google.devtools.ksp (source) 1.9.22-1.0.17 -> 2.0.0-1.0.21 age adoption passing confidence
com.google.devtools.ksp:symbol-processing-gradle-plugin (source) 1.9.22-1.0.17 -> 2.0.0-1.0.21 age adoption passing confidence
com.google.devtools.ksp:symbol-processing (source) 1.9.22-1.0.17 -> 2.0.0-1.0.21 age adoption passing confidence
com.google.devtools.ksp:symbol-processing-api (source) 1.9.22-1.0.17 -> 2.0.0-1.0.21 age adoption passing confidence
org.jetbrains.kotlin:kotlin-test-junit (source) 1.9.22 -> 2.0.0 age adoption passing confidence
org.jetbrains.kotlin:kotlin-reflect (source) 1.9.22 -> 2.0.0 age adoption passing confidence
org.jetbrains.kotlin:kotlin-gradle-plugin-api (source) 1.9.22 -> 2.0.0 age adoption passing confidence
org.jetbrains.kotlin:kotlin-gradle-plugin (source) 1.9.22 -> 2.0.0 age adoption passing confidence
org.jetbrains.kotlin:kotlin-compiler-embeddable (source) 1.9.22 -> 2.0.0 age adoption passing confidence
org.jetbrains.kotlin:kotlin-bom (source) 1.9.22 -> 2.0.0 age adoption passing confidence
org.jetbrains.kotlin:kotlin-annotation-processing-embeddable (source) 1.9.22 -> 2.0.0 age adoption passing confidence

Release Notes

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

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.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.
JetBrains/kotlin (org.jetbrains.kotlin:kotlin-test-junit)

v2.0.0

Compare Source

v1.9.24: 1.9.24

Changelog
Backend. Wasm
  • KT-64890 K/Wasm compiler crash with external class and Kodein
Compiler
  • KT-65235 JDK 21 might lead to change in overloads resolution
  • KT-66768 K1: False positive UNRESOLVED_REFERENCE in super.getFirst/getLast call
Native
  • KT-67218 Native: nested classes in kx.serialization ProtoBuf produce empty array for release binary
Tools. Gradle
  • KT-67139 Build reports can be overridden
  • KT-67138 Json report is empty for incremental compilation
Tools. Gradle. Multiplatform
  • KT-67127 KMP: IDE Dependency Resolver for CInterops reports errors on linux and windows machines
  • KT-66514 Don't get output file from Cinterop task for IDE Import if host os doesn't support it
Tools. JPS
  • KT-65043 JPS dumb mode should respect maps needed for the compiler
Tools. Wasm
  • KT-67785 Kotlin/Wasm: Node.JS 22 does not need experimental-wasm-gc flag anymore
  • KT-65864 K/Wasm: update Node.js to 22.x

v1.9.23: Kotlin 1.9.23

Compare Source

1.9.23
Apple Ecosystem
  • KT-65542 Cinterop tasks fails if Xcode 15.3 is used
Backend. Wasm
  • KT-64486 Kotlin/Wasm/WASI exported function callback for coroutines support
Compiler
  • KT-53478 Could not load module
  • KT-66044 JDK's new API is used over Kotlin's SDK functions
  • KT-64640 Prevent mutating SequenceCollection methods from JDK 21 be available on read-only collections
  • KT-65441 K1: Remove JDK 21 getFirst()/getLast() in (Mutable)List interfaces
  • KT-65634 K/N: data race during monolithic cache creation
  • KT-53109 CompilationErrorException generateUnboundSymbolsAsDependencies with builder inference and lambdas
  • KT-52757 Type inference for builders fails if inferred from a function
Tools. Gradle
  • KT-65792 Add JSON build report
  • KT-65091 Update compiler metrics in build reports
  • KT-62490 KGP dropping resource directories
Tools. Gradle. JS
  • KT-64119 K/JS: Migrate package manager from Yarn onto NPM
  • KT-64561 K/JS tests are not executed after upgrade to 1.9.22
Tools. Gradle. Multiplatform
  • KT-65954 commonTest dependencies affect commoMainMetadata compilation
Tools. Gradle. Native
  • KT-64573 Default value for produceUnpackedKlib was not provided

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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/major-kotlin-and-compiler-plugins branch from 4399bce to 8bea0f4 Compare May 22, 2024 01:36
@ZacSweers ZacSweers closed this May 22, 2024
@ZacSweers ZacSweers deleted the renovate/major-kotlin-and-compiler-plugins branch May 22, 2024 14:44
Copy link
Contributor Author

renovate bot commented May 22, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 2.x releases. But if you manually upgrade to 2.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant