Skip to content

Commit fc29ca2

Browse files
committed
fixup! -Xlint:-removal on jdk8
Signed-off-by: Sam Gammon <[email protected]>
1 parent 0d0638b commit fc29ca2

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

Diff for: guava-tests/pom.xml

+21-10
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,6 @@
7474
<plugins>
7575
<plugin>
7676
<artifactId>maven-compiler-plugin</artifactId>
77-
<executions>
78-
<execution>
79-
<id>default-testCompile</id>
80-
<configuration>
81-
<compilerArgs>
82-
<compilerArg>-Xlint:-removal</compilerArg>
83-
</compilerArgs>
84-
</configuration>
85-
</execution>
86-
</executions>
8777
</plugin>
8878
<plugin>
8979
<artifactId>maven-source-plugin</artifactId>
@@ -140,4 +130,25 @@
140130
</plugin>
141131
</plugins>
142132
</build>
133+
<profiles>
134+
<profile>
135+
<id>jvm11plus</id>
136+
<activation>
137+
<jdk>[11,]</jdk>
138+
</activation>
139+
<build>
140+
<plugins>
141+
<plugin>
142+
<artifactId>maven-compiler-plugin</artifactId>
143+
<configuration>
144+
<compilerArgs combine.self="append" combine.children="append">
145+
<arg>-Xlint:-removal</arg>
146+
<arg>-Xlint:-options</arg>
147+
</compilerArgs>
148+
</configuration>
149+
</plugin>
150+
</plugins>
151+
</build>
152+
</profile>
153+
</profiles>
143154
</project>

0 commit comments

Comments
 (0)