ZacSweers / redacted-compiler-plugin

A Kotlin compiler plugin that generates redacted toString() implementations.
Apache License 2.0
391 stars 26 forks source link

Disable default Kotlin stdlib dependency #199

Closed TadeasKriz closed 5 months ago

TadeasKriz commented 9 months ago

redacted-compiler-plugin-gradle and redacted-compiler-plugin currently bring in kotlin-stdlib dependency, because it's added by default by the Kotlin Gradle Plugin.

Instead, those modules should have kotlin.stdlib.default.dependency=false in their gradle.properties along with compileOnly(kotlin("stdlib")) in their build.gradle.kts dependencies. This ensures it doesn't try to bring in the stdlib to either buildscript classpath, or the Kotlin compiler plugin classpath. Both will already containg stdlib depending on the Gradle and KGP versions.

ZacSweers commented 6 months ago

PR welcome!