Author: kiwiwings
Date: Thu Jun 16 22:56:05 2022
New Revision: 1901995
URL: http://svn.apache.org/viewvc?rev=1901995&view=rev
Log:
apply https://github.com/policeman-tools/forbidden-apis/issues/191
Modified:
poi/trunk/build.gradle
Modified: poi/trunk/build.gradle
URL:
http://svn.apache.org/viewvc/poi/trunk/build.gradle?rev=1901995&r1=1901994&r2=1901995&view=diff
==============================================================================
--- poi/trunk/build.gradle (original)
+++ poi/trunk/build.gradle Thu Jun 16 22:56:05 2022
@@ -30,16 +30,16 @@ buildscript {
dependencies {
classpath
'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.4.0.2513'
- classpath 'de.thetaphi:forbiddenapis:3.3'
}
}
plugins {
id 'base'
- id "com.dorongold.task-tree" version "2.1.0"
- id('org.nosphere.apache.rat') version '0.7.1'
+ id 'com.dorongold.task-tree' version '2.1.0'
+ id 'org.nosphere.apache.rat' version '0.7.1'
id 'distribution'
- id "com.github.spotbugs" version "5.0.8"
+ id "com.github.spotbugs" version '5.0.8'
+ id 'de.thetaphi.forbiddenapis' version '3.3'
id 'com.github.jk1.dependency-license-report' version '2.0'
}
@@ -445,12 +445,17 @@ subprojects {
signaturesFiles =
files('../src/resources/devtools/forbidden-signatures.txt')
ignoreFailures = false
suppressAnnotations = [ 'org.apache.poi.util.SuppressForbidden' ]
- // forbiddenapis bundled signatures max supported version is 14
- // targetCompatibility =
(JavaVersion.VERSION_14.isCompatibleWith(JavaVersion.current()) ?
JavaVersion.current() : JavaVersion.VERSION_14)
+ }
+
+ forbiddenApisTest {
+ // forbiddenapis bundled signatures max supported version is 17
+ // also see
https://github.com/policeman-tools/forbidden-apis/issues/191
+ targetCompatibility =
(JavaVersion.VERSION_17.isCompatibleWith(JavaVersion.current()) ?
JavaVersion.current() : JavaVersion.VERSION_17)
}
forbiddenApisMain {
signaturesFiles +=
files('../src/resources/devtools/forbidden-signatures-prod.txt')
+ targetCompatibility =
(JavaVersion.VERSION_17.isCompatibleWith(JavaVersion.current()) ?
JavaVersion.current() : JavaVersion.VERSION_17)
}
task jenkins
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]