ARTEMIS-2109: require JDK 8 for release, enforce use of JDK8 or 11+ otherwise, rename profiles for consistency and clarity, remove superflous/incorrect managed plugin versions
Update CI to only use the release profile for building examples on JDK8, use noRun profile otherwise. Does the exact same in terms of setting properties for the examples build, just doesnt engage the parent release profile which enforces JDK8.
This commit is contained in:
parent
8fe1bb1c83
commit
6e2b5dc8f2
20
.travis.yml
20
.travis.yml
|
@ -1,9 +1,19 @@
|
|||
language: java
|
||||
install: true
|
||||
jdk:
|
||||
- openjdk8
|
||||
- openjdk11
|
||||
- openjdk14
|
||||
matrix:
|
||||
include:
|
||||
- os: linux
|
||||
jdk: openjdk8
|
||||
env:
|
||||
- EXAMPLES_PROFILE="release"
|
||||
- os: linux
|
||||
jdk: openjdk11
|
||||
env:
|
||||
- EXAMPLES_PROFILE="noRun"
|
||||
- os: linux
|
||||
jdk: openjdk14
|
||||
env:
|
||||
- EXAMPLES_PROFILE="noRun"
|
||||
|
||||
# clean out Artemis artifacts from the cache
|
||||
before_install:
|
||||
|
@ -16,7 +26,7 @@ script:
|
|||
- set -e
|
||||
- mvn -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Pfast-tests -Pextra-tests -Ptests-CI -B install -q
|
||||
- cd examples
|
||||
- mvn install -Prelease install -B -q
|
||||
- mvn install -P${EXAMPLES_PROFILE} -B -q
|
||||
|
||||
cache:
|
||||
directories:
|
||||
|
|
15
pom.xml
15
pom.xml
|
@ -901,7 +901,7 @@
|
|||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>jdk18</id>
|
||||
<id>jdk8</id>
|
||||
<activation>
|
||||
<jdk>1.8</jdk>
|
||||
</activation>
|
||||
|
@ -911,9 +911,9 @@
|
|||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>java9on</id>
|
||||
<id>jdk11on</id>
|
||||
<activation>
|
||||
<jdk>[9,)</jdk>
|
||||
<jdk>[11,)</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
|
@ -1013,7 +1013,6 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.4</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-java</id>
|
||||
|
@ -1022,9 +1021,9 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<!-- we need java8 when building the release -->
|
||||
<requireJavaVersion>
|
||||
<version>1.8.0</version>
|
||||
<version>[1.8, 9)</version>
|
||||
<message>JDK 8 is required when building the release</message>
|
||||
</requireJavaVersion>
|
||||
</rules>
|
||||
</configuration>
|
||||
|
@ -1562,7 +1561,6 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.4</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-java</id>
|
||||
|
@ -1572,7 +1570,8 @@
|
|||
<configuration>
|
||||
<rules>
|
||||
<requireJavaVersion>
|
||||
<version>1.8.0</version>
|
||||
<version>[1.8, 9),[11,)</version>
|
||||
<message>You must use either JDK 8 or JDK 11+ when building</message>
|
||||
</requireJavaVersion>
|
||||
</rules>
|
||||
</configuration>
|
||||
|
|
Loading…
Reference in New Issue