@@ -7,7 +7,7 @@ data class DependencySet(val group: String, val version: String, val modules: Li
77val  dependencyVersions =  hashMapOf<String , String >()
88rootProject.extra[" versions"  ] =  dependencyVersions
99
10- val  otelInstrumentationVersion =  " 2.8 .0-alpha" 
10+ val  otelInstrumentationVersion =  " 2.9 .0-alpha" 
1111
1212val  DEPENDENCY_BOMS  =  listOf (
1313  " com.fasterxml.jackson:jackson-bom:2.18.0"  ,
@@ -36,6 +36,8 @@ val CORE_DEPENDENCIES = listOf(
3636  " com.google.errorprone:error_prone_core:${errorProneVersion} "  ,
3737  " io.github.netmikey.logunit:logunit-jul:2.0.0"  ,
3838  " io.opentelemetry.proto:opentelemetry-proto:1.0.0-alpha"  ,
39+   //  these two constraints can be removed once the opentelemetry-instrumentation-bom-alpha
40+   //  is updated to contain the latest version of opentelemetry-semconv
3941  " io.opentelemetry.semconv:opentelemetry-semconv:${semConvVersion} "  ,
4042  " io.opentelemetry.semconv:opentelemetry-semconv-incubating:${semConvVersion} "  ,
4143  " io.prometheus:simpleclient:${prometheusVersion} "  ,
@@ -76,6 +78,12 @@ javaPlatform {
7678
7779dependencies {
7880  for  (bom in  DEPENDENCY_BOMS ) {
81+     //  this is needed until io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha
82+     //  is updated to contain the latest version of opentelemetry-semconv
83+     if  (bom.equals(" io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${otelInstrumentationVersion} "  )) {
84+       api(platform(bom))
85+       continue 
86+     }
7987    api(enforcedPlatform(bom))
8088    val  split =  bom.split(' :'  )
8189    dependencyVersions[split[0 ]] =  split[2 ]
0 commit comments