Skip to content

Commit

Permalink
Adds maven inject properties for versions in mp lra README
Browse files Browse the repository at this point in the history
  • Loading branch information
emmartins committed Jan 25, 2024
1 parent 158afd1 commit f1120eb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
10 changes: 5 additions & 5 deletions microprofile-lra/README-source.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,19 @@ Open the generated `pom.xml`.

The first thing to do is to change the minimum JDK to Java 11 and set the other relevant version properties:

[source,xml]
[source,xml,subs="attributes+"]
----
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<!-- the version for the Server -->
<version.server>31.0.0.Beta1</version.server>
<version.server>{versionServer}</version.server>
<!-- The versions for the BOMs, Packs and Plugins -->
<version.bom.ee>${version.server}</version.bom.ee>
<version.bom.microprofile>${version.server}</version.bom.microprofile>
<version.pack.cloud>5.0.0.Final</version.pack.cloud>
<version.plugin.wildfly>4.2.1.Final</version.plugin.wildfly>
<version.plugin.wildfly-jar>10.0.0.Final</version.plugin.wildfly-jar>
<version.pack.cloud>{versionPackCloud}</version.pack.cloud>
<version.plugin.wildfly>{versionPluginWildfly}</version.plugin.wildfly>
<version.plugin.wildfly-jar>{versionPluginWildflyJar}</version.plugin.wildfly-jar>
----

Next we need to setup our dependencies. Add the following section to your
Expand Down
14 changes: 5 additions & 9 deletions microprofile-lra/README.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
ifdef::env-github[]
:artifactId: microprofile-lra
endif::[]

//***********************************************************************************
// Enable the following flag to build README.html files for JBoss EAP product builds.
// Comment it out for WildFly builds.
Expand Down Expand Up @@ -1367,19 +1363,19 @@ Open the generated `pom.xml`.
The first thing to do is to change the minimum JDK to Java 11 and set the other relevant version properties:
[source,xml]
[source,xml,subs="attributes+"]
----
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<!-- the version for the Server -->
<version.server>31.0.0.Beta1</version.server>
<version.server>{versionServer}</version.server>
<!-- The versions for the BOMs, Packs and Plugins -->
<version.bom.ee>${version.server}</version.bom.ee>
<version.bom.microprofile>${version.server}</version.bom.microprofile>
<version.pack.cloud>5.0.0.Final</version.pack.cloud>
<version.plugin.wildfly>4.2.1.Final</version.plugin.wildfly>
<version.plugin.wildfly-jar>10.0.0.Final</version.plugin.wildfly-jar>
<version.pack.cloud>{versionPackCloud}</version.pack.cloud>
<version.plugin.wildfly>{versionPluginWildfly}</version.plugin.wildfly>
<version.plugin.wildfly-jar>{versionPluginWildflyJar}</version.plugin.wildfly-jar>
----
Next we need to setup our dependencies. Add the following section to your
Expand Down
15 changes: 15 additions & 0 deletions microprofile-lra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,21 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<configuration>
<!-- adds versions properties as attributes for substitutions in README.adoc source blocks -->
<attributes>
<versionServer>${version.server}</versionServer>
<versionPackCloud>${version.pack.cloud}</versionPackCloud>
<versionPluginWildfly>${version.plugin.wildfly}</versionPluginWildfly>
<versionPluginWildflyJar>${version.plugin.wildfly-jar}</versionPluginWildflyJar>
</attributes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
Expand Down

0 comments on commit f1120eb

Please sign in to comment.