提交 af7673dd 编写于 作者: B Brian Clozel

Polish build

Issue: SPR-15885
上级 f6023c22
...@@ -91,20 +91,17 @@ configure(allprojects) { project -> ...@@ -91,20 +91,17 @@ configure(allprojects) { project ->
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
} }
compileJava.options*.compilerArgs = [ def compilerArgs = [
"-Xlint:serial", "-Xlint:varargs", "-Xlint:cast", "-Xlint:classfile", "-Xlint:serial", "-Xlint:varargs", "-Xlint:cast", "-Xlint:classfile",
"-Xlint:dep-ann", "-Xlint:divzero", "-Xlint:empty", "-Xlint:finally", "-Xlint:dep-ann", "-Xlint:divzero", "-Xlint:empty", "-Xlint:finally",
"-Xlint:overrides", "-Xlint:path", "-Xlint:processing", "-Xlint:static", "-Xlint:overrides", "-Xlint:path", "-Xlint:processing", "-Xlint:static",
"-Xlint:try", "-Xlint:fallthrough", "-Xlint:rawtypes", "-Xlint:deprecation", "-Xlint:try", "-Xlint:fallthrough", "-Xlint:rawtypes", "-Xlint:deprecation",
"-Xlint:unchecked", "-Xlint:-options", "-Werror" "-Xlint:unchecked", "-Xlint:-options"
] ]
compileTestJava.options*.compilerArgs = [ compileJava.options*.compilerArgs = compilerArgs + "-Werror"
"-Xlint:serial", "-Xlint:-varargs", "-Xlint:cast", "-Xlint:classfile",
"-Xlint:dep-ann", "-Xlint:divzero", "-Xlint:empty", "-Xlint:finally", compileTestJava.options*.compilerArgs = compilerArgs
"-Xlint:overrides", "-Xlint:path", "-Xlint:processing", "-Xlint:static",
"-Xlint:try", "-Xlint:-fallthrough", "-Xlint:-rawtypes", "-Xlint:-deprecation",
"-Xlint:-unchecked", "-Xlint:-options"]
compileJava { compileJava {
sourceCompatibility = 1.8 sourceCompatibility = 1.8
...@@ -128,7 +125,7 @@ configure(allprojects) { project -> ...@@ -128,7 +125,7 @@ configure(allprojects) { project ->
// classes with the "$" pattern; otherwise, using -Dtest.single=MyTests to // classes with the "$" pattern; otherwise, using -Dtest.single=MyTests to
// run MyTests by itself will fail if MyTests contains any inner classes. // run MyTests by itself will fail if MyTests contains any inner classes.
exclude(["**/Abstract*.class", '**/*$*']) exclude(["**/Abstract*.class", '**/*$*'])
reports.junitXml.destination = file("$buildDir/test-results") reports.junitXml.setDestination(file("$buildDir/test-results"))
} }
repositories { repositories {
...@@ -244,12 +241,6 @@ configure(rootProject) { ...@@ -244,12 +241,6 @@ configure(rootProject) {
applyMavenExclusions = false applyMavenExclusions = false
} }
// TODO: DetectSplitPackagesPlugin fails in line 154 due to method not found on java.io.File.
// TODO: Possibly related to user rights or OS differences; passes on local Windows machine.
// detectSplitPackages {
// projectsToScan -= project(":spring-instrument-tomcat")
// }
// don't publish the default jar for the root project // don't publish the default jar for the root project
configurations.archives.artifacts.clear() configurations.archives.artifacts.clear()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册