Skip to content

Commit d8bfa28

Browse files
committed
Make unit/integration tests Java 12 compatible
1 parent 8759478 commit d8bfa28

File tree

28 files changed

+22
-242
lines changed

28 files changed

+22
-242
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ under the License.
253253
<plugin>
254254
<groupId>org.apache.maven.plugins</groupId>
255255
<artifactId>maven-invoker-plugin</artifactId>
256+
<version>3.2.0</version>
256257
<executions>
257258
<execution>
258259
<id>integration-test</id>

src/it/MCOMPILER-157/annotation-user/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ under the License.
5252
<plugin>
5353
<artifactId>maven-compiler-plugin</artifactId>
5454
<configuration>
55-
<source>1.6</source>
56-
<target>1.6</target>
5755
<annotationProcessors>
5856
<annotationProcessor>org.issue.SimpleAnnotationProcessor</annotationProcessor>
5957
</annotationProcessors>

src/it/MCOMPILER-157/invoker.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
invoker.java.version = 1.6+
19-
invoker.goals=clean process-test-classes
18+
invoker.goals=process-test-classes

src/it/MCOMPILER-157/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ under the License.
4242
<groupId>org.apache.maven.plugins</groupId>
4343
<artifactId>maven-compiler-plugin</artifactId>
4444
<version>@project.version@</version>
45-
<configuration>
46-
<source>1.6</source>
47-
<target>1.6</target>
48-
</configuration>
4945
</plugin>
5046
</plugins>
5147
</pluginManagement>

src/it/MCOMPILER-203-processorpath/annotation-user/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ under the License.
5050
<plugin>
5151
<artifactId>maven-compiler-plugin</artifactId>
5252
<configuration>
53-
<source>1.6</source>
54-
<target>1.6</target>
5553
<annotationProcessors>
5654
<annotationProcessor>org.issue.SimpleAnnotationProcessor</annotationProcessor>
5755
</annotationProcessors>

src/it/MCOMPILER-203-processorpath/invoker.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
invoker.java.version = 1.6+
19-
invoker.goals=clean process-test-classes
18+
invoker.goals=process-test-classes
2019
invoker.goals.2=process-test-classes

src/it/MCOMPILER-203-processorpath/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ under the License.
4242
<groupId>org.apache.maven.plugins</groupId>
4343
<artifactId>maven-compiler-plugin</artifactId>
4444
<version>@project.version@</version>
45-
<configuration>
46-
<source>1.6</source>
47-
<target>1.6</target>
48-
</configuration>
4945
</plugin>
5046
</plugins>
5147
</pluginManagement>

src/it/MCOMPILER-224/annotation-user/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ under the License.
4949
<artifactId>maven-compiler-plugin</artifactId>
5050
<configuration>
5151
<showWarnings>true</showWarnings>
52-
<source>1.6</source>
53-
<target>1.6</target>
5452
<annotationProcessors>
5553
<annotationProcessor>org.issue.MCompiler224AnnotationProcessor</annotationProcessor>
5654
</annotationProcessors>

src/it/MCOMPILER-224/invoker.properties

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/it/MCOMPILER-260_customArguments/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
<artifactId>maven-compiler-plugin</artifactId>
4141
<version>@project.version@</version>
4242
<configuration>
43-
<source>1.6</source>
44-
<target>1.6</target>
4543
<compilerArgs>
4644
<arg>-Xmaxwarns</arg>
4745
<arg>7</arg>

src/it/MCOMPILER-270_release/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<artifactId>maven-compiler-plugin</artifactId>
4949
<version>@project.version@</version>
5050
<configuration>
51-
<release>6</release>
51+
<release>${java.specification.version}</release>
5252
</configuration>
5353
</plugin>
5454
</plugins>

src/it/MCOMPILER-275_separate-moduleinfo/invoker.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
invoker.java.version = 9+
18+
invoker.toolchain.jdk.version=9

src/it/MCOMPILER-275_separate-moduleinfo/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
<exclude>module-info.java</exclude>
7070
</excludes>
7171
<!-- ideally this would be 1.5, but with CI's it is hard to have a proper toolchains.xml in place -->
72-
<source>1.6</source>
73-
<target>1.6</target>
72+
<source>8</source>
73+
<target>8</target>
7474
</configuration>
7575
</execution>
7676
</executions>

src/it/MCOMPILER-332_release10/invoker.properties

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/it/MCOMPILER-332_release10/pom.xml

Lines changed: 0 additions & 57 deletions
This file was deleted.

src/it/MCOMPILER-332_release10/src/main/java/MyClass.java

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/it/MCOMPILER-332_release10/src/test/java/MyTest.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/it/MCOMPILER-332_release10/verify.groovy

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/it/error-prone-compiler/invoker.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
invoker.java.version = 1.8+,!11
18+
invoker.java.version = 1.8+,!11,!12
1919
invoker.goals = clean compile
2020
invoker.buildResult = failure

src/it/jdk16-annotation/invoker.properties

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/it/jdk16-annotation/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ under the License.
4040
</configuration>
4141
</execution>
4242
</executions>
43-
<configuration>
44-
<source>1.6</source>
45-
<target>1.6</target>
46-
</configuration>
4743
</plugin>
4844
</plugins>
4945
</build>

src/it/mcompiler-120/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ under the License.
4747
<artifactId>maven-compiler-plugin</artifactId>
4848
<version>@project.version@</version>
4949
<configuration>
50-
<source>1.6</source>
51-
<target>1.6</target>
5250
<verbose>true</verbose>
5351
<debug>true</debug>
5452
<optimize>true</optimize>

src/it/mcompiler-135/invoker.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
invoker.goals = clean compile
19-
invoker.java.version = 1.6+
18+
invoker.goals=compile

src/it/mcompiler-135/pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,10 @@ under the License.
3333
<version>@project.version@</version>
3434
<configuration>
3535
<fork>true</fork>
36-
<source>1.6</source>
37-
<target>1.6</target>
38-
<compilerArguments>
39-
<Averbose>true</Averbose>
40-
<AaddResDir>src/main/webapp</AaddResDir>
41-
</compilerArguments>
36+
<compilerArguments>
37+
<Averbose>true</Averbose>
38+
<AaddResDir>src/main/webapp</AaddResDir>
39+
</compilerArguments>
4240
</configuration>
4341
</plugin>
4442
</plugins>

src/it/mcompiler-179/invoker.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
invoker.goals = clean compile
18+
invoker.goals = compile
1919
invoker.buildResult = failure
20-
invoker.java.version = 1.6+

src/it/mcompiler-179/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ under the License.
3838
<artifactId>maven-compiler-plugin</artifactId>
3939
<version>@project.version@</version>
4040
<configuration>
41-
<source>1.6</source>
42-
<target>1.6</target>
4341
<compilerArgument>-Xlint:all</compilerArgument>
4442
<compilerArguments>
4543
<Werror />

src/it/multirelease-patterns/singleproject-toolchains/invoker.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
invoker.java.version = 9+
1817
invoker.goals = verify -Pmulti-jar
18+
invoker.toolchain.jdk.version=9

0 commit comments

Comments
 (0)