- Enable parallel builds
- Remove `clean`
- Remove `--no-daemon`
- Remove `--refresh-dependencies` This refreshes all dependencies not just
dependencies that change. spring-build-conventions has been updated to
set the cache time of snapshots and changing modules to be 0, so that is
always updated.
Closes gh-8113
sh "./gradlew sonarqube -PexcludeProjects='**/samples/**' -Dsonar.projectKey='spring-security-${env.BRANCH_NAME}' -Dsonar.projectName='spring-security-${env.BRANCH_NAME}' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --stacktrace"
}
}
} catch(Exception e) {
@ -56,7 +56,7 @@ try {
@@ -56,7 +56,7 @@ try {
sh "git clean -dfx"
try {
withEnv(["JAVA_HOME=${ tool 'jdk8' }"]) {
sh "./gradlew clean test -PforceMavenRepositories=snapshot -PspringVersion='5.+' -PreactorVersion=Dysprosium-BUILD-SNAPSHOT -PspringDataVersion=Lovelace-BUILD-SNAPSHOT -PlocksDisabled --refresh-dependencies --no-daemon --stacktrace"
sh "./gradle test -PforceMavenRepositories=snapshot -PspringVersion='5.+' -PreactorVersion=Dysprosium-BUILD-SNAPSHOT -PspringDataVersion=Lovelace-BUILD-SNAPSHOT -PlocksDisabled --stacktrace"
}
} catch(Exception e) {
currentBuild.result = 'FAILED: snapshots'
@ -72,7 +72,7 @@ try {
@@ -72,7 +72,7 @@ try {
sh "git clean -dfx"
try {
withEnv(["JAVA_HOME=${ tool 'jdk9' }"]) {
sh "./gradlew clean test --refresh-dependencies --no-daemon --stacktrace"
sh "./gradle test --stacktrace"
}
} catch(Exception e) {
currentBuild.result = 'FAILED: jdk9'
@ -88,7 +88,7 @@ try {
@@ -88,7 +88,7 @@ try {
sh "git clean -dfx"
try {
withEnv(["JAVA_HOME=${ tool 'jdk10' }"]) {
sh "./gradlew clean test --refresh-dependencies --no-daemon --stacktrace"