@@ -221,7 +221,7 @@ task buildElasticsearchLocalDistro(dependsOn: unzipDownloadedElasticsearchSource
221
221
errorOutput = funneler. funnelInstance
222
222
}
223
223
224
- def esSource = " /Users/mashhur/Dev/elastic/ elasticsearch/"
224
+ def esSource = " ${ buildDir } / elasticsearch-source /"
225
225
def esBuildDir = " ${ esSource} /build"
226
226
227
227
inputs. dir esSource
@@ -261,7 +261,6 @@ task buildElasticsearchLogstashBridge(type: Exec) {
261
261
description " builds logstash-bridge lib module"
262
262
263
263
dependsOn buildElasticsearchLocalDistro
264
- mustRunAfter buildElasticsearchLocalDistro
265
264
266
265
def logFile = project. file(" ${ buildDir} /logstash-bridge-build.log" )
267
266
doFirst {
@@ -270,7 +269,7 @@ task buildElasticsearchLogstashBridge(type: Exec) {
270
269
errorOutput = funneler. funnelInstance
271
270
}
272
271
273
- def esSource = " /Users/mashhur/Dev/elastic/ elasticsearch/"
272
+ def esSource = " ${ buildDir } / elasticsearch-source /"
274
273
def esBuildDir = " ${ esSource} /build"
275
274
276
275
inputs. dir esSource
@@ -359,14 +358,14 @@ task shadeElasticsearchLogstashBridge(type: com.github.jengelman.gradle.plugins.
359
358
description " Shades the Elasticsearch logstash-bridge jar"
360
359
361
360
dependsOn buildElasticsearchLogstashBridge
362
-
363
- from(" /Users/mashhur/Dev/elastic/ elasticsearch/libs/logstash-bridge/build/distributions" ) {
361
+
362
+ from(" ${ buildDir } / elasticsearch-source /libs/logstash-bridge/build/distributions" ) {
364
363
include " elasticsearch-logstash-bridge-*.jar"
365
364
}
366
-
365
+
367
366
archiveFileName = " elasticsearch-logstash-bridge-shaded.jar"
368
367
destinationDirectory = file(" ${ buildDir} /shaded" )
369
-
368
+
370
369
exclude ' **/module-info.class'
371
370
}
372
371
0 commit comments