Skip to content

Commit a7c39d0

Browse files
committed
Ensure library can still be used with Java 8
1 parent f8f2c12 commit a7c39d0

File tree

2 files changed

+31
-20
lines changed

2 files changed

+31
-20
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: java
22
jdk:
3+
- openjdk8
34
- openjdk9
45
- openjdk11
56
- openjdk12

pom.xml

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<scm.url>scm:git:[email protected]:codehaus-plexus/plexus-languages.git</scm.url>
4343
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4444
<javaVersion>7</javaVersion>
45-
<project.build.outputTimestamp>2020-02-19T01:26:21Z</project.build.outputTimestamp>
45+
<project.build.outputTimestamp>2020-01-20T18:52:37Z</project.build.outputTimestamp>
4646
</properties>
4747

4848
<build>
@@ -79,25 +79,6 @@
7979
<topSiteURL>${scm.url}</topSiteURL>
8080
</configuration>
8181
</plugin>
82-
<plugin>
83-
<groupId>org.apache.maven.plugins</groupId>
84-
<artifactId>maven-enforcer-plugin</artifactId>
85-
<executions>
86-
<execution>
87-
<id>enforce-java</id>
88-
<goals>
89-
<goal>enforce</goal>
90-
</goals>
91-
<configuration>
92-
<rules>
93-
<requireJavaVersion>
94-
<version>9</version>
95-
</requireJavaVersion>
96-
</rules>
97-
</configuration>
98-
</execution>
99-
</executions>
100-
</plugin>
10182
</plugins>
10283
</build>
10384

@@ -120,4 +101,33 @@
120101
</plugins>
121102
</reporting>
122103

104+
<profiles>
105+
<profile>
106+
<id>plexus-release</id>
107+
<build>
108+
<plugins>
109+
<plugin>
110+
<groupId>org.apache.maven.plugins</groupId>
111+
<artifactId>maven-enforcer-plugin</artifactId>
112+
<version>3.0.0-M1</version>
113+
<executions>
114+
<execution>
115+
<id>enforce-java</id>
116+
<goals>
117+
<goal>enforce</goal>
118+
</goals>
119+
<configuration>
120+
<rules>
121+
<requireJavaVersion>
122+
<version>9</version>
123+
</requireJavaVersion>
124+
</rules>
125+
</configuration>
126+
</execution>
127+
</executions>
128+
</plugin>
129+
</plugins>
130+
</build>
131+
</profile>
132+
</profiles>
123133
</project>

0 commit comments

Comments
 (0)