diff --git a/build.gradle b/build.gradle index 4d915f8c..f8f60502 100644 --- a/build.gradle +++ b/build.gradle @@ -51,7 +51,7 @@ task run (type: JavaExec, dependsOn: classes){ classpath = sourceSets.main.runtimeClasspath } -task generateGemJarRequiresFile { +task generateGemJarRequiresFile << { File jars_file = file('lib/logstash-input-beats_jars.rb') jars_file.newWriter().withWriter { w -> w << "# AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.\n\n" @@ -63,7 +63,7 @@ task generateGemJarRequiresFile { } } -task vendor { +task vendor << { String vendorPathPrefix = "vendor/jar-dependencies" configurations.runtime.allDependencies.each { dep -> File f = configurations.runtime.filter { it.absolutePath.contains("${dep.group}/${dep.name}/${dep.version}") }.singleFile