Skip to content

Commit 507d752

Browse files
committed
Fix build failures
1 parent 2b3cfd6 commit 507d752

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/BuildPlugin.groovy

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,11 @@ class BuildPlugin implements Plugin<Project> {
414414

415415
Test integrationTest = project.tasks.create('integrationTest', RestTestRunnerTask.class)
416416
integrationTest.dependsOn(itestJar)
417-
integrationTest.doFirst {
418-
integrationTest.systemProperty("es.hadoop.job.jar", itestJar.getArchiveFile().get().asFile.absolutePath)
417+
418+
itestJar.configure { Jar jar ->
419+
integrationTest.doFirst {
420+
integrationTest.systemProperty("es.hadoop.job.jar", jar.getArchiveFile().get().asFile.absolutePath)
421+
}
419422
}
420423

421424
integrationTest.testClassesDirs = project.sourceSets.itest.output.classesDirs

0 commit comments

Comments
 (0)