From 33a7808e9e5d3bd1921ec744e8f2392f0cfe6686 Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Tue, 25 Jun 2019 22:19:36 -0400 Subject: [PATCH] Disable Javadoc and tests in Java 12 (#135) The API is deprecated and removed in Java 12. Do not build these classes when using Java 12, till we migrate to the new API. --- core/build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/build.gradle b/core/build.gradle index 1003ce512..d7af05b6f 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -58,12 +58,24 @@ sourceSets { main { java { srcDirs += generatedDir + // Javadoc API is deprecated and removed in Java 12. + // TODO(jianglai): re-enable after migrating to the new Javadoc API + if ((JavaVersion.current().majorVersion as Integer) > 11) { + exclude 'google/registry/documentation/**' + } } resources { exclude '**/*.xjb' } } test { + java { + // Javadoc API is deprecated and removed in Java 12. + // TODO(jianglai): re-enable after migrating to the new Javadoc API + if ((JavaVersion.current().majorVersion as Integer) > 11) { + exclude 'google/registry/documentation/**' + } + } resources { exclude '**/*.xjb', '**/*.xsd' }