Skip to content

Commit

Permalink
fix: move vendor tasks to be checked after configuration time
Browse files Browse the repository at this point in the history
  • Loading branch information
talevy committed Jul 13, 2016
1 parent d13f03e commit 1fff26f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 1fff26f

Please sign in to comment.