Skip to content

Commit

Permalink
getting version attributes from maven (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWesterkamp-iJUG committed Sep 23, 2022
1 parent 9d568e6 commit 549d854
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
24 changes: 21 additions & 3 deletions pom.xml
Expand Up @@ -31,7 +31,8 @@

<properties>
<inceptionYear>2022</inceptionYear>
<opentelemetry-api.version>1.14.0</opentelemetry-api.version>
<opentelemetry.spec.version>1.11.0</opentelemetry.spec.version>
<opentelemetry.java.version>1.14.0</opentelemetry.java.version>
</properties>

<issueManagement>
Expand Down Expand Up @@ -61,14 +62,14 @@
<!-- <dependency>-->
<!-- <groupId>io.opentelemetry</groupId>-->
<!-- <artifactId>opentelemetry-api</artifactId>-->
<!-- <version>${opentelemetry-api.version}</version>-->
<!-- <version>${opentelemetry.java.version}</version>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<!-- This BOM includes the opentelemetry-bom and the opentelemetry-bom-alpha -->
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-bom-alpha</artifactId>
<version>${opentelemetry-api.version}-alpha</version>
<version>${opentelemetry.java.version}-alpha</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -78,5 +79,22 @@
<modules>
<module>tracing</module>
</modules>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<configuration>
<attributes>
<otel-spec-version>${opentelemetry.spec.version}</otel-spec-version>
<otel-java-version>${opentelemetry.java.version}</otel-java-version>
</attributes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>
Expand Up @@ -28,8 +28,9 @@
ifdef::backend-pdf[]
:pagenums:
endif::[]
:otel-spec-version: 1.11.0
:otel-java-version: 1.14.0
// Attributes defined in the microprofile-telemetry (parent) maven POM:
//:otel-spec-version:
//:otel-java-version:

// == License
:sectnums!:
Expand Down

0 comments on commit 549d854

Please sign in to comment.