Skip to content

Commit e159912

Browse files
authored
Merge pull request #36952 from vespa-engine/arnej/move-preview-compiler-arg
Restrict --enable-preview compiler arg to the searchlib module
2 parents b5b489f + 9b43da2 commit e159912

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

parent/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
<showWarnings>true</showWarnings>
9494
<showDeprecation>false</showDeprecation>
9595
<compilerArgs>
96-
<arg>${vespaCompilerArgs.preview}</arg>
9796
<arg>${vespaCompilerArgs.xlint}</arg>
9897
<arg>-Xlint:-serial</arg>
9998
<arg>-Xlint:-try</arg>

searchlib/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@
9797
<plugin>
9898
<groupId>org.apache.maven.plugins</groupId>
9999
<artifactId>maven-compiler-plugin</artifactId>
100+
<configuration>
101+
<compilerArgs>
102+
<arg>${vespaCompilerArgs.preview}</arg>
103+
<arg>${vespaCompilerArgs.xlint}</arg>
104+
<arg>-Xlint:-serial</arg>
105+
<arg>-Werror</arg>
106+
</compilerArgs>
107+
</configuration>
100108
</plugin>
101109
<plugin>
102110
<groupId>io.github.tulipcc</groupId>

0 commit comments

Comments
 (0)