When setting kotlin.stdlib.default.dependency=false in a non-root Gradle project, Tapmoc nevertheless adds the stdlib to the project dependencies. This is undesirable when creating a shadow Jar in one sub-project and the stdlib dependency should be disabled just there.
This code honors the root project's gradle.properties only:
|
val isStdlibDefaultDependencyEnabled = |
|
providers.gradleProperty("kotlin.stdlib.default.dependency") |
|
.map { it.toBooleanStrictOrNull() != false } |
|
.getOrElse(true) |
Replacing it with the following code would make it work for root and non-root gradle.properties:
val isStdlibDefaultDependencyEnabled =
project.findProperty("kotlin.stdlib.default.dependency")?.toString()?.toBooleanStrictOrNull() != false
When setting
kotlin.stdlib.default.dependency=falsein a non-root Gradle project, Tapmoc nevertheless adds the stdlib to the project dependencies. This is undesirable when creating a shadow Jar in one sub-project and the stdlib dependency should be disabled just there.This code honors the root project's
gradle.propertiesonly:tapmoc/tapmoc-gradle-plugin/src/kgp/kotlin/tapmoc/internal/KgpImpl.kt
Lines 104 to 107 in be675d7
Replacing it with the following code would make it work for root and non-root
gradle.properties: