Dieter Vaesen
11/07/2024, 12:53 PMconfigure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
filter {
exclude { it.file.path.contains("generated") }
}
}
Vampire
11/07/2024, 1:06 PM--scan
URLDieter Vaesen
11/07/2024, 1:08 PMDieter Vaesen
11/07/2024, 1:08 PMDieter Vaesen
11/07/2024, 1:09 PMVampire
11/07/2024, 1:20 PMDieter Vaesen
11/07/2024, 1:20 PMVampire
11/07/2024, 1:24 PMcompileOnly
should also be fine, if the consumer will provide the plugin at runtime.
If your plugin also applies the plugin, it is usually better to use implementation
.
But both should make the class available for compilation.
Do you get that also when you build from commandline (to rule out that it just isn't synced to IDE properly)Dieter Vaesen
11/07/2024, 1:25 PMDieter Vaesen
11/07/2024, 1:26 PMplugins {
`kotlin-dsl`
alias(libs.plugins.org.jlleitschuh.gradle.ktlint)
}
And lower in the file i do the following
dependencies {
compileOnly(libs.android.gradlePlugin)
compileOnly(libs.android.tools.common)
compileOnly(libs.kotlin.gradlePlugin)
compileOnly(libs.ksp.gradlePlugin)
compileOnly(libs.plugins.org.jlleitschuh.gradle.ktlint)
}
Vampire
11/07/2024, 1:29 PMcompileOnly(<http://libs.plugins.org|libs.plugins.org>.jlleitschuh.gradle.ktlint)
this should not even compile. Can you share a full MCVE?Dieter Vaesen
11/07/2024, 2:08 PMDieter Vaesen
11/07/2024, 2:12 PMDieter Vaesen
11/07/2024, 2:19 PMVampire
11/07/2024, 2:23 PMDieter Vaesen
11/07/2024, 2:56 PM