You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2022/10/02 15:52:57 UTC

[lucene] branch branch_9x updated: For now only use bundled signatures from minJavaVersion (#11834)

This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 88ba7cf3d46 For now only use bundled signatures from minJavaVersion (#11834)
88ba7cf3d46 is described below

commit 88ba7cf3d46a0988b7bd9440eea7378b39272512
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Sun Oct 2 17:52:49 2022 +0200

    For now only use bundled signatures from minJavaVersion (#11834)
---
 gradle/validation/forbidden-apis.gradle | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gradle/validation/forbidden-apis.gradle b/gradle/validation/forbidden-apis.gradle
index 3ffdcfea900..c124895ec1e 100644
--- a/gradle/validation/forbidden-apis.gradle
+++ b/gradle/validation/forbidden-apis.gradle
@@ -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