diff --git a/build.gradle b/build.gradle index 9ed8dee..4435319 100644 --- a/build.gradle +++ b/build.gradle @@ -87,6 +87,10 @@ java { withSourcesJar() } +tasks.withType(JavaCompile).configureEach { + options.compilerArgs.addAll "-Werror", "-Xlint:unchecked", "-Xlint:deprecation", "-Xlint:rawtypes", "-Xlint:varargs" +} + tasks.named("test").configure { useJUnitPlatform() } diff --git a/src/main/java/io/spring/gradle/dependencymanagement/internal/maven/ConfigurationModelResolver.java b/src/main/java/io/spring/gradle/dependencymanagement/internal/maven/ConfigurationModelResolver.java index 8198bb8..60b4af3 100644 --- a/src/main/java/io/spring/gradle/dependencymanagement/internal/maven/ConfigurationModelResolver.java +++ b/src/main/java/io/spring/gradle/dependencymanagement/internal/maven/ConfigurationModelResolver.java @@ -24,7 +24,6 @@ import io.spring.gradle.dependencymanagement.org.apache.maven.model.Parent; import io.spring.gradle.dependencymanagement.org.apache.maven.model.Repository; import io.spring.gradle.dependencymanagement.org.apache.maven.model.building.FileModelSource; -import io.spring.gradle.dependencymanagement.org.apache.maven.model.building.ModelSource; import io.spring.gradle.dependencymanagement.org.apache.maven.model.resolution.InvalidRepositoryException; import io.spring.gradle.dependencymanagement.org.apache.maven.model.resolution.ModelResolver; import io.spring.gradle.dependencymanagement.org.apache.maven.model.resolution.UnresolvableModelException; @@ -34,7 +33,8 @@ /** * A {@link ModelResolver} that uses a {@link Configuration} to resolve the - * {@link ModelSource} for a pom. requested model. + * {@link io.spring.gradle.dependencymanagement.org.apache.maven.model.building.ModelSource} + * for a pom. requested model. * * @author Andy Wilkinson */