Make coreJdk property internal
MODIFY
buildSrc/src/main/kotlin/io/opentelemetry/instrumentation/gradle/muzzle/MuzzleDirective.kt
buildSrc/src/main/kotlin/io/opentelemetry/instrumentation/gradle/muzzle/MuzzleDirective.kt
@@ -21,7 +21,7 @@ abstract class MuzzleDirective {
abstract val excludedDependencies: ListProperty<String>
abstract val assertPass: Property<Boolean>
abstract val assertInverse: Property<Boolean>
- abstract val coreJdk: Property<Boolean>
+ internal abstract val coreJdk: Property<Boolean> // use coreJdk() function below to enable
init {
name.convention("")

MODIFY
instrumentation/external-annotations/javaagent/build.gradle.kts
instrumentation/external-annotations/javaagent/build.gradle.kts
@@ -4,7 +4,7 @@ plugins {
muzzle {
pass {
- coreJdk.set(true)
+ coreJdk()
}
}

MODIFY
instrumentation/methods/javaagent/build.gradle.kts
instrumentation/methods/javaagent/build.gradle.kts
@@ -4,7 +4,7 @@ plugins {
muzzle {
pass {
- coreJdk.set(true)
+ coreJdk()
}
}

Make coreJdk property internal (#3512)