diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/NamingConventionsTask.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/NamingConventionsTask.groovy index 672d208c01c..612bc568621 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/NamingConventionsTask.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/NamingConventionsTask.groovy @@ -68,6 +68,7 @@ public class NamingConventionsTask extends LoggedExec { */ project.afterEvaluate { doFirst { + args('-Djna.nosys=true') args('-cp', classpath.asPath, 'org.elasticsearch.test.NamingConventionsCheck') if (skipIntegTestInDisguise) { args('--skip-integ-tests-in-disguise')