Fix Spotless failing with InvocationTargetException on JDK 16 (#73246)
This commit is contained in:
parent
b23dfe29d5
commit
0b03f694a3
|
@ -42,7 +42,7 @@ plugins {
|
||||||
id 'elasticsearch.fips'
|
id 'elasticsearch.fips'
|
||||||
id 'elasticsearch.internal-testclusters'
|
id 'elasticsearch.internal-testclusters'
|
||||||
id 'elasticsearch.run'
|
id 'elasticsearch.run'
|
||||||
id "com.diffplug.spotless" version "5.12.0" apply false
|
id "com.diffplug.spotless" version "5.12.5" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
org.gradle.warning.mode=none
|
org.gradle.warning.mode=none
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
org.gradle.jvmargs=-XX:+HeapDumpOnOutOfMemoryError -Xss2m
|
# We need to declare --add-exports to make spotless working seamlessly with jdk16
|
||||||
|
org.gradle.jvmargs=-XX:+HeapDumpOnOutOfMemoryError -Xss2m --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
|
||||||
|
|
||||||
# Disable duplicate project id detection
|
# Disable duplicate project id detection
|
||||||
# See https://docs.gradle.org/current/userguide/upgrading_version_6.html#duplicate_project_names_may_cause_publication_to_fail
|
# See https://docs.gradle.org/current/userguide/upgrading_version_6.html#duplicate_project_names_may_cause_publication_to_fail
|
||||||
|
|
Loading…
Reference in New Issue