From f865c8af83e07434719e7355b9d7a110ca299bfd Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Sun, 12 Apr 2020 16:25:39 +0200 Subject: [PATCH] LUCENE-9077: add a :solr:packaging:dev task that assembles a 'development' image of Solr from which nothing is removed upon consecutive rebuild. --- solr/packaging/build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/solr/packaging/build.gradle b/solr/packaging/build.gradle index d30b065ce8b..88956390770 100644 --- a/solr/packaging/build.gradle +++ b/solr/packaging/build.gradle @@ -25,6 +25,7 @@ plugins { ext { distDir = file("$buildDir/solr-${version}") + devDir = file("$buildDir/dev") } configurations { @@ -108,5 +109,13 @@ task toDir(type: Sync) { } } +task dev(type: Copy) { + description "Assemble Solr distribution into 'development' folder at ${devDir}" + group "build" + + from toDir.outputs + into devDir +} + assemble.dependsOn toDir