Skip to content

Commit 592efdf

Browse files
committed
Ensure that we run an JDK8
Even though producing JDK7 byte code, JDK8 is required to compile as we also support and test JDK8-bundled classes like `Optional`.
1 parent 6c5de7e commit 592efdf

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
# No fancyness - we can use the new build infrastructure
2+
sudo: false
3+
14
language:
2-
java
5+
- java
6+
7+
jdk:
8+
- oraclejdk8
39

410
before_script:
511
- pip install --user codecov

pom.xml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2929
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
30-
<maven.compiler.source>1.8</maven.compiler.source>
30+
<maven.compiler.source>1.7</maven.compiler.source>
3131
<maven.compiler.target>1.7</maven.compiler.target>
3232
</properties>
3333

@@ -138,6 +138,25 @@
138138
<build>
139139
<pluginManagement>
140140
<plugins>
141+
<plugin>
142+
<groupId>org.apache.maven.plugins</groupId>
143+
<artifactId>maven-enforcer-plugin</artifactId>
144+
<executions>
145+
<execution>
146+
<id>enforce-java</id>
147+
<goals>
148+
<goal>enforce</goal>
149+
</goals>
150+
<configuration>
151+
<rules>
152+
<requireJavaVersion>
153+
<version>1.8.0</version>
154+
</requireJavaVersion>
155+
</rules>
156+
</configuration>
157+
</execution>
158+
</executions>
159+
</plugin>
141160
</plugins>
142161
</pluginManagement>
143162
<plugins>
@@ -267,7 +286,9 @@
267286
</tables>
268287
<port>${dynamodblocal.port}</port>
269288
<dist>${project.build.directory}/dynamodb-dist</dist>
270-
<arguments>-inMemory</arguments>
289+
<arguments>
290+
<argument>-inMemory</argument>
291+
</arguments>
271292
</configuration>
272293
<executions>
273294
<execution>

0 commit comments

Comments
 (0)