Slackbot
12/13/2023, 9:02 PMVampire
12/14/2023, 2:19 AMSpotlessTask but the failing one is of type SpotlessCheck which is not a subclass of SpotlessTask.Caleb Cushing
12/14/2023, 2:20 AMCaleb Cushing
12/14/2023, 2:20 AMVampire
12/14/2023, 2:21 AMspotlessApply they are overridden again.Vampire
12/14/2023, 2:21 AMCaleb Cushing
12/14/2023, 2:27 AMtasks.withType<SpotlessCheck>().configureEach {
enabled = providers.environmentVariable("CI").isPresent
}Caleb Cushing
12/14/2023, 2:39 AMCaleb Cushing
12/14/2023, 2:40 AMCaleb Cushing
12/14/2023, 2:40 AMCaleb Cushing
12/14/2023, 2:58 AMCaleb Cushing
12/14/2023, 3:20 AMif (!providers.environmentVariable("CI").isPresent) {
ratchetFrom("origin/main")
}
but why weren't the tasks disablingVampire
12/14/2023, 4:27 AMCI?
What you showed last disabled the tasks on CI.Thomas Broyer
12/14/2023, 7:34 AMspotless {
kotlinGradle {
target("*.gradle.kts", "src/main/kotlin/**/*.gradle.kts")
ktlint(libs.versions.ktlint.get())
}
}
(in my "build-logic" included build that uses precompiled script plugins, otherwise I use the default target for kotlinGradle)Caleb Cushing
12/14/2023, 1:59 PMWhat you showed last disabled the tasks on CIit should have, but CI was still blowing up on ratcheting, so it didn't make sense...
Vampire
12/14/2023, 2:04 PMCaleb Cushing
12/14/2023, 4:01 PMVampire
12/14/2023, 4:07 PMCaleb Cushing
12/14/2023, 5:01 PMCaleb Cushing
12/14/2023, 6:56 PMVampire
12/14/2023, 6:59 PM<http://scans.gradle.org|scans.gradle.org> is a Develocity instance with restricted functionality.
So when you use build scans, you already use it. :-)
I'm not fully sure whether custom tags and values are supported there, but I mean to remember they are. Just try it.