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

Exclude kotlin-stdlib from plugin dependencies #66

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

Conversation

Goooler
Copy link
Contributor

@Goooler Goooler commented Jan 31, 2025

https://kotlinlang.org/docs/gradle.html#dependency-on-the-standard-library

Run diff gcpbuildcache-1.0.0.module.before gcpbuildcache-1.0.0.module.after:

28,36d27
<       "dependencies": [
<         {
<           "group": "org.jetbrains.kotlin",
<           "module": "kotlin-stdlib",
<           "version": {
<             "requires": "2.0.21"
<           }
<         }
<       ],
109,115d99
<         },
<         {
<           "group": "org.jetbrains.kotlin",
<           "module": "kotlin-stdlib",
<           "version": {
<             "requires": "2.0.21"
<           }

@Goooler
Copy link
Contributor Author

Goooler commented Jan 31, 2025

kotlin.compilerOptions.apiVersion should also be constrainted, like https://github.com/GradleUp/shadow/blob/d64ef3787ca0298addd7cb4dbd4beb49814b2bee/build.gradle.kts#L23-L24

https://kotlinlang.org/docs/gradle.html#dependency-on-the-standard-library

Run ` diff gcpbuildcache-1.0.0.module.before gcpbuildcache-1.0.0.module.after`:

```diff
28,36d27
<       "dependencies": [
<         {
<           "group": "org.jetbrains.kotlin",
<           "module": "kotlin-stdlib",
<           "version": {
<             "requires": "2.0.21"
<           }
<         }
<       ],
109,115d99
<         },
<         {
<           "group": "org.jetbrains.kotlin",
<           "module": "kotlin-stdlib",
<           "version": {
<             "requires": "2.0.21"
<           }
```
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.

Kotlin stdlib does not match Gradle's embedded Kotlin version
1 participant