You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kotlin stdlib shouldn't be a transitive dependency #227
This dependency shouldn't be declared. It forces plain Java users to declare exclusions to avoid having a redundant JAR in their project distributions.
Yeah the dependency did indeed get added recently but only as a test dependency. We use Kotlin in tests to ensure things like @NullMarked work in Kotlin land as expected
The dep is declared in Gradle as
// just tests
testCompileOnly 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
So now it appears some how to be some sort of discrepancy between how gradle declares things and how the generated pom is being created on release.
Activity
tsegismont commentedon Sep 2, 2025
It seems the redundant dependency appeared in 5.0.1:
https://central.sonatype.com/artifact/com.graphql-java/java-dataloader/5.0.0
https://central.sonatype.com/artifact/com.graphql-java/java-dataloader/5.0.1
Fix dependency convergence
Fix dependency convergence
bbakerman commentedon Sep 3, 2025
Yeah the dependency did indeed get added recently but only as a test dependency. We use Kotlin in tests to ensure things like @NullMarked work in Kotlin land as expected
The dep is declared in Gradle as
So now it appears some how to be some sort of discrepancy between how gradle declares things and how the generated pom is being created on release.
I can see that the generated
pom.xmlhasand that is indeed wrong. Thanks for reporting.
bbakerman commentedon Sep 3, 2025
ps. the same might be true of graphql-java which recently added Kotlin as a test compile only dep.
bclozel commentedon Sep 3, 2025
@bbakerman Applying the Kotlin Gradle plugin adds the stdlib dependency automatically. You can add a one-liner in your
gradle.propertiesfile to disable this behavior.bbakerman commentedon Sep 3, 2025
Thanks for that @bclozel - we will fix this up
tsegismont commentedon Sep 30, 2025
Thank you @bbakerman!
Fix dependency convergence