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 published Gradle metadata #357

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

Conversation

56738
Copy link
Contributor

@56738 56738 commented Oct 6, 2024

Import kotlin-stdlib as a compileOnly dependency.
This prevents it from being exposed in published Maven or Gradle metadata.

Closes #352

@xEricL
Copy link

xEricL commented Nov 21, 2024

@httpdigest Any thoughts on this? 😄

@jpenilla
Copy link

jpenilla commented Dec 5, 2024

Have you inspected the metadata with this PR? I think you also need kotlin.stdlib.default.dependency=false in gradle.properties

@56738
Copy link
Contributor Author

56738 commented Dec 5, 2024

Adding it as compileOnly is enough to prevent the Kotlin plugin from automatically adding it. The published metadata (.pom and .module) doesn't contain the stdlib dependency.

@smartcmd
Copy link

smartcmd commented Jan 3, 2025

Yea I also noticed this issue. Waiting for the merging of this PR :c

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.

Importing JOML => 1.10.7 with Gradle still has Kotlin as a transitive dependency
4 participants