Skip to content

Commit 1815a18

Browse files
authored
Merge pull request #768 from GIScience/fix/upgrade-to-java11
Fix/upgrade to java11
2 parents 8705cd4 + d27c369 commit 1815a18

File tree

4 files changed

+71
-9
lines changed

4 files changed

+71
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: java
2-
jdk: openjdk8
2+
jdk: openjdk11
33

44
sudo: required
55
dist: trusty

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
2323
### Changed
2424
- Improve recommended weighting for cycling and walking profiles ([#665](https://github.com/GIScience/openrouteservice/issues/665))
2525
- Restructure AdditionWeighting
26+
- Upgrade to Java 11
2627
### Deprecated
2728
- Use recommended weighting instead of fastest ([#763](https://github.com/GIScience/openrouteservice/issues/763))
2829

openrouteservice-api-tests/pom.xml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,47 @@
1212

1313
<properties>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<maven.compiler.target>1.8</maven.compiler.target>
1516
</properties>
1617

1718
<build>
1819
<plugins>
1920
<plugin>
2021
<artifactId>maven-compiler-plugin</artifactId>
21-
<version>3.3</version>
22+
<version>3.8.0</version>
2223
<configuration>
2324
<source>1.8</source>
2425
<target>1.8</target>
26+
<!--compilerArgs>
27+
<arg>add-modules=java.xml.bind</arg>
28+
</compilerArgs-->
2529
</configuration>
2630
</plugin>
2731
<plugin>
2832
<groupId>org.apache.maven.plugins</groupId>
2933
<artifactId>maven-surefire-plugin</artifactId>
30-
<version>2.20.1</version>
34+
<version>2.21.0</version>
3135
<configuration>
3236
<excludes>
3337
<exclude>**/locations/ParametersValidationTest.java</exclude>
3438
<exclude>**/locations/ResultsValidationTest.java</exclude>
3539
</excludes>
40+
<dependencies><dependency>
41+
<groupId>org.ow2.asm</groupId>
42+
<artifactId>asm</artifactId>
43+
<version>6.2</version>
44+
</dependency></dependencies>
3645
</configuration>
3746
</plugin>
47+
<plugin>
48+
<groupId>org.codehaus.mojo</groupId>
49+
<artifactId>versions-maven-plugin</artifactId>
50+
<version>2.5</version>
51+
<configuration>
52+
<generateBackupPoms>false</generateBackupPoms>
53+
</configuration>
54+
</plugin>
55+
3856
</plugins>
3957
</build>
4058

@@ -86,5 +104,15 @@
86104
<version>1.13</version>
87105
<scope>test</scope>
88106
</dependency>
107+
<dependency>
108+
<groupId>org.ow2.asm</groupId>
109+
<artifactId>asm</artifactId>
110+
<version>6.2</version>
111+
</dependency>
112+
<dependency>
113+
<groupId>javax.xml.bind</groupId>
114+
<artifactId>jaxb-api</artifactId>
115+
<version>2.4.0-b180725.0427</version>
116+
</dependency>
89117
</dependencies>
90118
</project>

openrouteservice/pom.xml

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2828
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2929

30+
<prerequisites>
31+
<!-- Java 11 upgrade -->
32+
<maven>3.0</maven>
33+
</prerequisites>
3034
<modelVersion>4.0.0</modelVersion>
3135
<groupId>org.heigit.ors</groupId>
3236
<artifactId>openrouteservice</artifactId>
@@ -44,6 +48,7 @@
4448
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
4549
<project.timestamp>${maven.build.timestamp}</project.timestamp>
4650
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format>
51+
<maven.compiler.target>1.8</maven.compiler.target>
4752
</properties>
4853
<scm>
4954
<url>[email protected]:GIScience/openrouteservice.git</url>
@@ -85,6 +90,14 @@
8590
</testResources>
8691

8792
<plugins>
93+
<plugin>
94+
<!-- Java 11 upgrade -->
95+
<groupId>org.codehaus.mojo</groupId>
96+
<artifactId>versions-maven-plugin</artifactId>
97+
<configuration>
98+
<generateBackupPoms>false</generateBackupPoms>
99+
</configuration>
100+
</plugin>
88101
<plugin>
89102
<groupId>org.apache.maven.plugins</groupId>
90103
<artifactId>maven-antrun-plugin</artifactId>
@@ -106,15 +119,15 @@
106119
</plugin>
107120
<plugin>
108121
<artifactId>maven-compiler-plugin</artifactId>
109-
<version>3.3</version>
122+
<version>3.8.1</version>
110123
<configuration>
111124
<source>1.8</source>
112125
<target>1.8</target>
113126
</configuration>
114127
</plugin>
115128
<plugin>
116129
<artifactId>maven-war-plugin</artifactId>
117-
<version>2.6</version>
130+
<version>3.2.3</version>
118131
<configuration>
119132
<warSourceDirectory>WebContent</warSourceDirectory>
120133
<webXml>WebContent/WEB-INF/web.xml</webXml>
@@ -155,26 +168,27 @@
155168
</plugin>
156169
<plugin><!-- clean up from war:inplace -->
157170
<artifactId>maven-clean-plugin</artifactId>
158-
<version>2.5</version>
171+
<version>3.1.0</version>
159172
<configuration>
160173
</configuration>
161174
</plugin>
162175
<plugin>
163176
<groupId>org.apache.maven.plugins</groupId>
164177
<artifactId>maven-deploy-plugin</artifactId>
165-
<version>2.8.2</version>
178+
<version>3.0.0-M1</version>
166179
</plugin>
167180
<plugin>
168181
<groupId>org.apache.maven.plugins</groupId>
169182
<artifactId>maven-jar-plugin</artifactId>
170-
<version>2.6</version>
183+
<version>3.2.0</version>
171184
</plugin>
172185

173186
<plugin>
174187
<groupId>org.apache.maven.plugins</groupId>
175188
<artifactId>maven-surefire-plugin</artifactId>
189+
<version>2.22.0</version>
176190
<configuration>
177-
<argLine>-Duser.language=en -Duser.region=US</argLine>
191+
<argLine>-Duser.language=en -Duser.region=US -Dillegal-access=permit</argLine>
178192
</configuration>
179193
</plugin>
180194
</plugins>
@@ -190,6 +204,25 @@
190204
</repositories>
191205

192206
<dependencies>
207+
<dependency>
208+
<!-- Java 11 upgrade -->
209+
<groupId>javax.annotation</groupId>
210+
<artifactId>javax.annotation-api</artifactId>
211+
<version>1.3.2</version>
212+
</dependency>
213+
<dependency>
214+
<!-- Java 11 upgrade -->
215+
<groupId>javax.xml.bind</groupId>
216+
<artifactId>jaxb-api</artifactId>
217+
<version>2.3.1</version>
218+
</dependency>
219+
<dependency>
220+
<!-- Java 11 upgrade -->
221+
<groupId>org.glassfish.jaxb</groupId>
222+
<artifactId>jaxb-runtime</artifactId>
223+
<version>2.3.0</version>
224+
</dependency>
225+
193226
<dependency>
194227
<groupId>org.apache.commons</groupId>
195228
<artifactId>commons-compress</artifactId>

0 commit comments

Comments
 (0)