LUCENE-9650: disable errorprone on jdk16+ (#2171)

This commit is contained in:
Dawid Weiss 2020-12-28 23:20:52 +01:00 committed by GitHub
parent 4160ceda2e
commit 38c9d2ab76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,7 @@ JavaInstallation altJvm = {
// Set up root project's property.
rootProject.ext.runtimeJava = altJvm
rootProject.ext.runtimeJavaVersion = altJvm.javaVersion
if (!currentJvm.javaExecutable.equals(altJvm.javaExecutable)) {
// Set up java toolchain tasks to use the alternative Java.

View File

@ -15,6 +15,12 @@
* limitations under the License.
*/
// LUCENE-9650: Errorprone on master/gradle no longer works with JDK-16
if (rootProject.runtimeJavaVersion > JavaVersion.VERSION_15) {
logger.warn("WARNING: errorprone disabled (won't work with JDK ${rootProject.runtimeJavaVersion})")
return
}
allprojects { prj ->
plugins.withType(JavaPlugin) {
prj.apply plugin: 'net.ltgt.errorprone'