Skip to content

Honor kotlin.stdlib.default.dependency in non-root gradle.properties#102

Closed
OliverO2 wants to merge 1 commit into
GradleUp:mainfrom
OliverO2:fix/kotlin.stdlib.default.dependency
Closed

Honor kotlin.stdlib.default.dependency in non-root gradle.properties#102
OliverO2 wants to merge 1 commit into
GradleUp:mainfrom
OliverO2:fix/kotlin.stdlib.default.dependency

Conversation

@OliverO2

@OliverO2 OliverO2 commented Jul 7, 2026

Copy link
Copy Markdown

Fixes #101

providers.gradleProperty("kotlin.stdlib.default.dependency")
.map { it.toBooleanStrictOrNull() != false }
.getOrElse(true)
project.findProperty("kotlin.stdlib.default.dependency")?.toString()?.toBooleanStrictOrNull() != false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

findProperty is not recommended, see #101 (comment).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've discussed this with @OliverO2 and for now we agreed to set kotlin.stdlib.default.dependency=false in the root project and add the kotlin-stdlib manually where needed.

I've also opened https://youtrack.jetbrains.com/issue/KT-87706/Consider-providing-KGP-API-for-kotlin.stdlib.default.dependencyfalse to improve this in KGP in the long run.

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.

Tapmoc ignores kotlin.stdlib.default.dependency=false in a sub-project's gradle.properties

3 participants