Skip to content

Commit

Permalink
For now only use bundled signatures from minJavaVersion (#11834)
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed Oct 2, 2022
1 parent eebf24d commit 88ba7cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gradle/validation/forbidden-apis.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +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
failOnUnresolvableSignatures = false
targetCompatibility = 19
targetCompatibility = rootProject.minJavaVersion
}

// Configure defaults for sourceSets.test
Expand Down

0 comments on commit 88ba7cf

Please sign in to comment.