Skip to content

Commit 9c88508

Browse files
author
Laurent Ploix
committed
Make generated code relative
Remove the absolute path from compiler options as it's not needed and we want the Gardle tasks to be cache-able
1 parent 801b013 commit 9c88508

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

x-pack/plugin/esql/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dependencies {
4848
* them and *then* compile them.
4949
*/
5050
tasks.named("compileJava").configure {
51-
options.compilerArgs.addAll(["-s", "${projectDir}/src/main/java/generated"])
51+
options.generatedSourceOutputDirectory = file("src/main/java/generated")
5252
}
5353

5454
tasks.named("javadoc").configure {

x-pack/plugin/esql/compute/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ dependencies {
1010
testImplementation(project(xpackModule('ql')))
1111
}
1212

13+
1314
tasks.named("compileJava").configure {
14-
options.compilerArgs.addAll(["-s", "${projectDir}/src/main/generated"])
15+
options.generatedSourceOutputDirectory = file("src/main/generated")
1516
}
1617

1718
tasks.named('checkstyleMain').configure {

0 commit comments

Comments
 (0)