disable annotation processor for docs (#30610)
* disable annotation processor for docs Could not find evidence that the log4j annotation processor is used. The compiler flag enables the Gradle 5.0 behavior Closes #30476 * Disable annotation processors for all tests * remove redundant `-proc:none` already handled by required plugins * Revert unintentional changes
This commit is contained in:
parent
314cd6feaf
commit
638383dc44
|
@ -24,6 +24,7 @@ import org.elasticsearch.gradle.BuildPlugin
|
|||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.api.plugins.JavaBasePlugin
|
||||
import org.gradle.api.tasks.compile.JavaCompile
|
||||
|
||||
/**
|
||||
* Configures the build to compile against Elasticsearch's test framework and
|
||||
|
@ -49,5 +50,12 @@ public class StandaloneTestPlugin implements Plugin<Project> {
|
|||
test.testClassesDir project.sourceSets.test.output.classesDir
|
||||
test.mustRunAfter(project.precommit)
|
||||
project.check.dependsOn(test)
|
||||
|
||||
project.tasks.withType(JavaCompile) {
|
||||
// This will be the default in Gradle 5.0
|
||||
if (options.compilerArgs.contains("-processor") == false) {
|
||||
options.compilerArgs << '-proc:none'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue