mirror of
https://github.com/google/nomulus.git
synced 2025-07-06 11:13:35 +02: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:
parent
16b0c420a2
commit
33a7808e9e
1 changed files with 12 additions and 0 deletions
|
@ -58,12 +58,24 @@ sourceSets {
|
||||||
main {
|
main {
|
||||||
java {
|
java {
|
||||||
srcDirs += generatedDir
|
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 {
|
resources {
|
||||||
exclude '**/*.xjb'
|
exclude '**/*.xjb'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
test {
|
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 {
|
resources {
|
||||||
exclude '**/*.xjb', '**/*.xsd'
|
exclude '**/*.xjb', '**/*.xsd'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue