Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Fix release gradle task.
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Lautenschlager committed Jan 16, 2018
1 parent 7377c23 commit 1e4bd13
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions chronix-server-bin/build.gradle
Expand Up @@ -37,7 +37,6 @@ task downloadAndUnzipFile(dependsOn: downloadZipFile, type: Copy) {
into chronixBuildDir
}
task copyCoreToSolr(dependsOn: downloadAndUnzipFile, type: Copy) {
println "$confDir"
into "$chronixBuildDir/solr-${solrVersion}/server/solr"
from "$confDir/solr"
}
Expand Down Expand Up @@ -135,7 +134,7 @@ task recopyApplicationLibs(type: Copy) {
}

task downloadAndBuildChronix(dependsOn: copyIntegrationRuntimeLibs) {
println "Downloading Solr and copy chronix stuff."
//nothing in here
}

/**
Expand Down Expand Up @@ -200,7 +199,7 @@ task stopSolr(type: ExecWait) {
task deleteUnusedDirs(type: Delete) {

//delete the following dirs
def solrDir = "$buildDir/solr-${solrVersion}/"
def solrDir = "$chronixBuildDir/solr-${solrVersion}/"

delete "$solrDir/docs"
delete "$solrDir/example"
Expand All @@ -215,7 +214,7 @@ task deleteUnusedDirs(type: Delete) {
}

task buildRelease(dependsOn: deleteUnusedDirs, type: Zip) {
def solrDir = "$buildDir/solr-${solrVersion}/"
def solrDir = "$chronixBuildDir/solr-${solrVersion}/"
from("$solrDir")
into "chronix-solr-${solrVersion}" // note that this specifies path *in* the archive
destinationDir file("chronix-${project.version}") // directory that you want your archive to be placed in
Expand Down

0 comments on commit 1e4bd13

Please sign in to comment.