For now only use bundled signatures from minJavaVersion (#11834)

# Conflicts:
#	gradle/validation/forbidden-apis.gradle
This commit is contained in:
Uwe Schindler 2022-10-02 17:52:49 +02:00
parent aae293437f
commit e5a226ec7c
1 changed files with 4 additions and 2 deletions

View File

@ -74,10 +74,12 @@ allprojects { prj ->
}
// Configure defaults for the MR-JAR feature sourceSets by setting java version and ignore missing classes
// TODO: Get hold of warning messages, see https://github.com/policeman-tools/forbidden-apis/issues/207
// TODO:
// - Get hold of warning messages, see https://github.com/policeman-tools/forbidden-apis/issues/207
// - Allow using newer bundled signatures, see: https://github.com/policeman-tools/forbidden-apis/issues/207
tasks.matching { it.name == "forbiddenApisMain19" }.all {
failOnMissingClasses = false
targetCompatibility = 19
targetCompatibility = rootProject.minJavaVersion
}
// Configure defaults for sourceSets.test