From c706c46aec892e6239656ca6c06e495ad43b4a95 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sun, 22 May 2016 23:11:37 +0200 Subject: [PATCH] Update to forbiddenapis 2.1 --- buildSrc/build.gradle | 2 +- .../org/elasticsearch/gradle/precommit/PrecommitTasks.groovy | 3 +-- .../elasticsearch/gradle/precommit/ThirdPartyAuditTask.groovy | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index b286124bfee..623fdab3e3e 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -84,7 +84,7 @@ dependencies { compile 'com.netflix.nebula:gradle-info-plugin:3.0.3' compile 'org.eclipse.jgit:org.eclipse.jgit:3.2.0.201312181205-r' compile 'com.perforce:p4java:2012.3.551082' // THIS IS SUPPOSED TO BE OPTIONAL IN THE FUTURE.... - compile 'de.thetaphi:forbiddenapis:2.0' + compile 'de.thetaphi:forbiddenapis:2.1' compile 'com.bmuschko:gradle-nexus-plugin:2.3.1' compile 'org.apache.rat:apache-rat:0.11' } diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy index 427d3191dc5..48a4d7c26dc 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy @@ -62,9 +62,8 @@ class PrecommitTasks { private static Task configureForbiddenApis(Project project) { project.pluginManager.apply(ForbiddenApisPlugin.class) project.forbiddenApis { - internalRuntimeForbidden = true failOnUnsupportedJava = false - bundledSignatures = ['jdk-unsafe', 'jdk-deprecated', 'jdk-system-out'] + bundledSignatures = ['jdk-unsafe', 'jdk-deprecated', 'jdk-non-portable', 'jdk-system-out'] signaturesURLs = [getClass().getResource('/forbidden/jdk-signatures.txt'), getClass().getResource('/forbidden/es-all-signatures.txt')] suppressAnnotations = ['**.SuppressForbidden'] diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/ThirdPartyAuditTask.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/ThirdPartyAuditTask.groovy index 3ff5a06ad42..076a564f84a 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/ThirdPartyAuditTask.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/ThirdPartyAuditTask.groovy @@ -203,8 +203,7 @@ public class ThirdPartyAuditTask extends AntTask { Set sheistySet = getSheistyClasses(tmpDir.toPath()); try { - ant.thirdPartyAudit(internalRuntimeForbidden: false, - failOnUnsupportedJava: false, + ant.thirdPartyAudit(failOnUnsupportedJava: false, failOnMissingClasses: false, signaturesFile: new File(getClass().getResource('/forbidden/third-party-audit.txt').toURI()), classpath: classpath.asPath) {