diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9ede1e6..6800257b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,11 @@ jobs: prior_version="$major.$minor.$((patch - 1))" fi inst_version=$(grep ^opentelemetry-alpha gradle/libs.versions.toml | sed -E "s/^.*\"(.*)\"/\1/") - sdk_version=$(cat gradle/libs.versions.toml | grep "^opentelemetry =" | sed -E "s/^.*\"(.*)\"/\1/") + # otel-java core libs are transient deps thru instrumentation boms + sdk_version=$(./gradlew --console=plain android-agent:dependencies | \ + grep 'io.opentelemetry:opentelemetry-api ' | \ + sed -e "s/.* -> //" | sed -e "s/ .*//" | \ + sort | head -1) echo "VERSION=$version" >> $GITHUB_ENV echo "PRIOR_VERSION=$prior_version" >> $GITHUB_ENV diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index d1ef17f6..ed143900 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,4 @@ [versions] -opentelemetry = "1.43.0" -opentelemetry-alpha = "1.43.0-alpha" opentelemetry-instrumentation = "2.9.0" opentelemetry-instrumentation-alpha = "2.9.0-alpha" opentelemetry-semconv = "1.25.0-alpha" @@ -17,6 +15,7 @@ autoService = "1.1.1" [libraries] opentelemetry-platform = { module = "io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom", version.ref = "opentelemetry-instrumentation" } +opentelemetry-platform-alpha = { module = "io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha", version.ref = "opentelemetry-instrumentation-alpha" } androidx-navigation-fragment = "androidx.navigation:navigation-fragment:2.7.7" androidx-core = "androidx.core:core:1.13.1" androidx-lifecycle-process = "androidx.lifecycle:lifecycle-process:2.8.6" @@ -30,18 +29,18 @@ opentelemetry-semconv = { module = "io.opentelemetry.semconv:opentelemetry-semco opentelemetry-semconv-incubating = { module = "io.opentelemetry.semconv:opentelemetry-semconv-incubating", version.ref = "opentelemetry-semconv" } opentelemetry-api = { module = "io.opentelemetry:opentelemetry-api" } opentelemetry-api-incubator = { module = "io.opentelemetry:opentelemetry-api-incubator" } -opentelemetry-sdk-extension-incubator = { module = "io.opentelemetry:opentelemetry-sdk-extension-incubator", version.ref = "opentelemetry-alpha" } +opentelemetry-sdk-extension-incubator = { module = "io.opentelemetry:opentelemetry-sdk-extension-incubator" } opentelemetry-sdk = { module = "io.opentelemetry:opentelemetry-sdk" } -opentelemetry-context = { module = "io.opentelemetry:opentelemetry-context", version.ref = "opentelemetry" } +opentelemetry-context = { module = "io.opentelemetry:opentelemetry-context" } opentelemetry-exporter-logging = { module = "io.opentelemetry:opentelemetry-exporter-logging" } opentelemetry-diskBuffering = { module = "io.opentelemetry.contrib:opentelemetry-disk-buffering", version.ref = "opentelemetry-contrib" } -opentelemetry-exporter-otlp = { module = "io.opentelemetry:opentelemetry-exporter-otlp", version.ref = "opentelemetry" } +opentelemetry-exporter-otlp = { module = "io.opentelemetry:opentelemetry-exporter-otlp" } volley = "com.android.volley:volley:1.2.1" auto-service-annotations = { module = "com.google.auto.service:auto-service-annotations", version.ref = "autoService" } auto-service-processor = { module = "com.google.auto.service:auto-service", version.ref = "autoService" } #Test tools -opentelemetry-sdk-testing = { module = "io.opentelemetry:opentelemetry-sdk-testing", version.ref = "opentelemetry" } +opentelemetry-sdk-testing = { module = "io.opentelemetry:opentelemetry-sdk-testing" } androidx-test-core = "androidx.test:core:1.6.1" androidx-test-rules = "androidx.test:rules:1.6.1" androidx-test-runner = "androidx.test:runner:1.6.2" diff --git a/instrumentation/startup/build.gradle.kts b/instrumentation/startup/build.gradle.kts index fe5e828b..0e820536 100644 --- a/instrumentation/startup/build.gradle.kts +++ b/instrumentation/startup/build.gradle.kts @@ -15,6 +15,7 @@ android { dependencies { api(platform(libs.opentelemetry.platform)) + api(platform(libs.opentelemetry.platform.alpha)) api(libs.opentelemetry.api) api(project(":core")) implementation(libs.androidx.core)