Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Commit

Permalink
Merge pull request #492 from ContainerSolutions/bug/cli-install-fix
Browse files Browse the repository at this point in the history
Gradle install now works
  • Loading branch information
adam-sandor committed Aug 5, 2016
2 parents f957d9e + 3ce285a commit 55f99d6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cli/build.gradle
Expand Up @@ -21,10 +21,9 @@ ext {
imageName = imagePrefix + '/minimesos-cli'
}

task executableJar(type: Jar) {
jar {
baseName = "minimesos-cli"
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
manifest {
attributes(
'Main-Class': mainClassName,
Expand All @@ -35,11 +34,11 @@ task executableJar(type: Jar) {
}

artifacts {
archives executableJar
archives jar
}

task copyFilesForDocker(type: Copy) {
dependsOn 'executableJar'
dependsOn 'jar'
from "build/libs/minimesos-cli-${project.version}.jar"
into 'build/docker'
rename { String fileName ->
Expand Down Expand Up @@ -103,4 +102,4 @@ afterEvaluate { project ->
}
}

assemble.dependsOn executableJar
assemble.dependsOn jar

0 comments on commit 55f99d6

Please sign in to comment.