Skip to content

Commit

Permalink
build.gradle: distributions task: artifact should place contents at a…
Browse files Browse the repository at this point in the history
…rtifact root, not in folder within artifact
  • Loading branch information
jmartin-sul committed Jul 25, 2016
1 parent 9f3f80b commit 31505da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ distributions {
contents {
from(deploymentJar)
from { 'lib/runtime/' }
// "into" is the destination dir within the distribution artifact, not the
// destination for the artifact. so the jar files will all end up in the root
// of the artifact (instead of a directory named after artifactVersionString, which
// is the default). e.g. "dlss-wowza-v0.4.1.tar" would contain "dlss-wowza-v0.4.1.jar"
// (as opposed to "dlss-wowza-v0.4.1/dlss-wowza-v0.4.1.jar").
// https://docs.gradle.org/current/javadoc/org/gradle/api/distribution/Distribution.html
// https://docs.gradle.org/current/javadoc/org/gradle/api/file/CopySpec.html
into { '/' }
}
}
}

0 comments on commit 31505da

Please sign in to comment.