Skip to content

Commit dfd53b3

Browse files
Raibaznwbirnie
authored andcommitted
Updated dependencies to make the build run on JDK9+ (#58)
* Updated dependencies to make the build run on JDK9+ * Version bumps for jar and assembly plugins and forbiddenapi
1 parent 2d83ed8 commit dfd53b3

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

google-ads/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,13 @@
120120
<version>0.27</version>
121121
<scope>test</scope>
122122
</dependency>
123+
124+
<!-- Java EE Modules deprecated since JDK 9 -->
125+
<dependency>
126+
<groupId>javax.annotation</groupId>
127+
<artifactId>javax.annotation-api</artifactId>
128+
<version>1.3.2</version>
129+
</dependency>
130+
123131
</dependencies>
124132
</project>

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<plugin>
8585
<groupId>org.apache.maven.plugins</groupId>
8686
<artifactId>maven-enforcer-plugin</artifactId>
87-
<version>1.3.1</version>
87+
<version>3.0.0-M2</version>
8888
<executions>
8989
<execution>
9090
<id>enforce-versions</id>
@@ -107,7 +107,7 @@
107107
<plugin>
108108
<groupId>org.apache.maven.plugins</groupId>
109109
<artifactId>maven-compiler-plugin</artifactId>
110-
<version>3.3</version>
110+
<version>3.8.0</version>
111111
<configuration>
112112
<source>1.8</source>
113113
<target>1.8</target>
@@ -121,7 +121,7 @@
121121
<plugin>
122122
<groupId>org.apache.maven.plugins</groupId>
123123
<artifactId>maven-source-plugin</artifactId>
124-
<version>2.1.2</version>
124+
<version>3.0.1</version>
125125
<executions>
126126
<execution>
127127
<phase>package</phase>
@@ -134,26 +134,26 @@
134134
<plugin>
135135
<groupId>org.apache.maven.plugins</groupId>
136136
<artifactId>maven-javadoc-plugin</artifactId>
137-
<version>2.8</version>
137+
<version>3.0.1</version>
138138
<configuration>
139139
<maxmemory>1024m</maxmemory>
140140
<reportOutputDirectory>.</reportOutputDirectory>
141141
<destDir>javadocs</destDir>
142142
<!-- Disable doclint. See http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html -->
143-
<additionalparam>-Xdoclint:none</additionalparam>
143+
<doclint>none</doclint>
144144
<!-- Only show warnings and errors. -->
145145
<quiet>true</quiet>
146146
</configuration>
147147
</plugin>
148148
<plugin>
149149
<groupId>org.apache.maven.plugins</groupId>
150150
<artifactId>maven-assembly-plugin</artifactId>
151-
<version>2.6</version>
151+
<version>3.1.1</version>
152152
</plugin>
153153
<plugin>
154154
<groupId>org.apache.maven.plugins</groupId>
155155
<artifactId>maven-jar-plugin</artifactId>
156-
<version>2.6</version>
156+
<version>3.1.1</version>
157157
</plugin>
158158
<plugin>
159159
<!--
@@ -184,7 +184,7 @@
184184
<plugin>
185185
<groupId>de.thetaphi</groupId>
186186
<artifactId>forbiddenapis</artifactId>
187-
<version>2.3</version>
187+
<version>2.6</version>
188188
<configuration>
189189
<!--
190190
If the used Java version is too new, don't fail, just do nothing.

0 commit comments

Comments
 (0)