Skip to content

Commit 81e7919

Browse files
committed
Enable fail on compiler warnings
1 parent 1cbcd1e commit 81e7919

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,17 @@
165165
<artifactId>maven-surefire-plugin</artifactId>
166166
<version>3.5.3</version>
167167
</plugin>
168+
<plugin>
169+
<groupId>org.apache.maven.plugins</groupId>
170+
<artifactId>maven-compiler-plugin</artifactId>
171+
<configuration>
172+
<failOnWarning>true</failOnWarning>
173+
<compilerArgs>
174+
<arg>-Xlint:all</arg>
175+
<arg>-Xlint:-processing</arg>
176+
</compilerArgs>
177+
</configuration>
178+
</plugin>
168179
</plugins>
169180
</pluginManagement>
170181
<plugins>

start-site-verification/src/test/java/io/spring/start/site/DependencyResolver.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -73,6 +73,7 @@ final class DependencyResolver {
7373

7474
private final RepositorySystem repositorySystem;
7575

76+
@SuppressWarnings("deprecation")
7677
DependencyResolver(Path localRepositoryLocation) {
7778
try {
7879
ServiceLocator serviceLocator = createServiceLocator();
@@ -168,6 +169,7 @@ private String getVersion(String groupId, String artifactId, String version, Lis
168169
return null;
169170
}
170171

172+
@SuppressWarnings("deprecation")
171173
private static ServiceLocator createServiceLocator() {
172174
DefaultServiceLocator locator = MavenRepositorySystemUtils.newServiceLocator();
173175
locator.addService(RepositorySystem.class, DefaultRepositorySystem.class);

0 commit comments

Comments
 (0)