From 1fff26f8aa9df3068119e48549b2d8b7459886d3 Mon Sep 17 00:00:00 2001 From: Tal Levy Date: Wed, 13 Jul 2016 16:07:12 -0700 Subject: [PATCH] fix: move vendor tasks to be checked after configuration time --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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