Niels Doucet
08/07/2024, 8:51 AMpublic val org.gradle.api.Project.develocity: kotlin.Any /* compiled code */
public final get
public fun org.gradle.api.Project.develocity(configure: org.gradle.api.Action<kotlin.Any>): kotlin.Unit { /* compiled code */ }
We'd like to be able to configure develocity.predictiveTestSelection per project, directly through the extension, if at all possible.Niels Doucet
08/07/2024, 9:06 AMplugins {
// applied in init script but we need a typesafe accessor
id("com.gradle.develocity") version "3.17.6" apply false
}
That does generate a typesafe accessor, but when I try to use it, it leads to "issues" in the extension model:
> Extension of type 'DevelocityTestConfiguration' does not exist. Currently registered extension types: [ExtraPropertiesExtension, DevelocityTestConfiguration, TestDistributionExtension, PredictiveTestSelectionExtension]Daz DeBoer
08/07/2024, 1:49 PM.kts initscript, but we have an extensively tested Groovy init-script that can be used to apply and configure Develocity.
Note that this script is complicated by the need to support multiple Gradle & DV versions, but could provide some hints for you to work from.Daz DeBoer
08/07/2024, 1:50 PMNiels Doucet
08/07/2024, 7:24 PMpluginManager.withPlugin("com.gradle.develocity")
fixed the issue.Daz DeBoer
08/07/2024, 9:41 PM