point examples at the snapshot version of stable modules (#2993)

* point examples at the snapshot version of stable modules, to highlight any breaking changes before they are released.

* parameterize the version that the examples are built against.
This commit is contained in:
John Watson 2021-03-09 18:24:49 -08:00 committed by GitHub
parent 724b3bd064
commit a4717d6a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -35,6 +35,7 @@ jobs:
- uses: burrunan/gradle-cache-action@v1.8 - uses: burrunan/gradle-cache-action@v1.8
with: with:
remote-build-cache-proxy-enabled: false remote-build-cache-proxy-enabled: false
arguments: clean check shadowJar ## todo: how to make sure these are kept up to date, so we always build against the latest snapshots for stable modules
arguments: -Pio.opentelemetry.version=1.1.0-SNAPSHOT clean check shadowJar
build-root-directory: examples build-root-directory: examples
- run: java -cp examples/sdk-usage/build/libs/opentelemetry-examples-sdk-usage-0.1.0-SNAPSHOT-all.jar io.opentelemetry.sdk.example.ConfigureSpanProcessorExample - run: java -cp examples/sdk-usage/build/libs/opentelemetry-examples-sdk-usage-0.1.0-SNAPSHOT-all.jar io.opentelemetry.sdk.example.ConfigureSpanProcessorExample

View File

@ -3,6 +3,8 @@ plugins {
id "com.github.johnrengelman.shadow" apply false id "com.github.johnrengelman.shadow" apply false
} }
println("Building against OpenTelemetry version: ${project.properties["io.opentelemetry.version"]}")
subprojects { subprojects {
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'java' apply plugin: 'java'
@ -15,8 +17,10 @@ subprojects {
version = "0.1.0-SNAPSHOT" version = "0.1.0-SNAPSHOT"
ext { ext {
openTelemetryVersion = "1.0.0" //these versions are defined in gradle.properties
openTelemetryAlphaVersion = "1.0.0-alpha" openTelemetryVersion = project.properties["io.opentelemetry.version"]
openTelemetryAlphaVersion = project.properties["io.opentelemetry.version.alpha"]
grpcVersion = '1.34.1' grpcVersion = '1.34.1'
protobufVersion = '3.11.4' protobufVersion = '3.11.4'
protocVersion = protobufVersion protocVersion = protobufVersion

View File

@ -0,0 +1,2 @@
io.opentelemetry.version=1.0.0
io.opentelemetry.version.alpha=1.0.0-alpha