ebtokyo
02/20/2025, 9:40 PM^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun Settings.develocity(p0: DevelocityConfiguration.() -> Unit): Unit defined in org.gradle.kotlin.dsl
public fun Test.develocity(p0: DevelocityTestConfiguration.() -> Unit): Unit defined in org.gradle.kotlin.dsl
What I have is :
• build A include build B (includeBuild(...))
• both build A and B declare develocity { in their build.gradle.kts
The build is fine if only build A declare develocity {Chris Lee
02/20/2025, 9:43 PMChris Lee
02/20/2025, 9:43 PMebtokyo
02/20/2025, 9:44 PM* Where:
Settings file '/Users/eboudrant/.../settings.gradle.kts' line: 64
* What went wrong:
Extension with name 'develocity' does not exist. Currently registered extension names: [ext]Chris Lee
02/20/2025, 9:45 PMplugins {
id("com.gradle.develocity") version("3.19.2")
}
develocity {
// configuration
}ebtokyo
02/20/2025, 9:45 PMebtokyo
02/20/2025, 9:46 PMChris Lee
02/20/2025, 9:47 PMclass SettingsPlugin : Plugin<Settings> {
override fun apply(target: Settings): Unit =
target.run {
pluginManager.apply("org.gradle.toolchains.foojay-resolver-convention")
pluginManager.apply("com.gradle.develocity")
configure<DevelocityConfiguration> {
buildScan {
publishing.onlyIf { System.getenv("CI") != null }
termsOfUseUrl = "<https://gradle.com/terms-of-service>"
termsOfUseAgree = "yes"
}
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
}
}