1
0
mirror of https://github.com/google/nomulus synced 2026-05-28 10:40:44 +00:00

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.
This commit is contained in:
Lai Jiang
2019-06-25 22:19:36 -04:00
committed by GitHub
parent 16b0c420a2
commit 33a7808e9e

View File

@@ -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'
}