-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish universal tgz artifact only #349
Comments
Hi, Can you post the related settings of your |
@muuki88 That's true, I've included import com.typesafe.sbt.SbtNativePackager._
val myReleaseSettings = Seq(
sources in(Compile, doc) := Seq.empty,
publishArtifact in(Compile, packageDoc) := false,
publishArtifact in(Compile, packageSrc) := false
) ++ deploymentSettings Also I've tried to add |
I have the same question. I'm using Play framework 2.3.5 and I want to disable the publish of the zip file. I want only the tgz file. Thank you! |
The //--use sbt-native-packager default java application
packageArchetype.java_application
//--a dummy task to hold the result of the universal:packageBin to stop the circular dependency issue
val packageZip = taskKey[File]("package-zip")
//--hard coded result of "universal:packageBin"
packageZip := (baseDirectory in Compile).value / "target" / "universal" / (name.value + "-" + version.value + ".zip")
//--label the zip artifact as a zip instead of the default jar
artifact in (Universal, packageZip) ~= { (art:Artifact) => art.copy(`type` = "zip", extension = "zip") }
//--add the artifact so it is included in the publishing tasks
addArtifact(artifact in (Universal, packageZip), packageZip in Universal)
//--make sure the zip gets made before the publishing commands for the added artifacts
publish <<= (publish) dependsOn (packageBin in Universal)
publishM2 <<= (publishM2) dependsOn (packageBin in Universal)
publishLocal <<= (publishLocal) dependsOn (packageBin in Universal) The key pieces of this solution came from a comment from yanns and dgrandes |
I will close this issue as @drxcc provided a nice workaround for import com.typesafe.sbt.packager.SettingsHelper._
makeDeploymentSettings(Universal, packageBin in Universal, "zip") or // however this will enabled everything
enablePlugins(UniversalDeployPlugin) |
I tried
The source code for SettingsHelper.makeDeploymentSettings seems to leave out |
Yeah. I think the API is older than the |
Hi guys,
I'm using version 0.6.4 of the plugin (provided by Play Framework 2.2.x) and tried to disable publishing of universal zip artifact using the following setting:
but
zip
is still being published along withtgz
when I rununiversal:publish
.Am I missing something?
Thanks in advance!
The text was updated successfully, but these errors were encountered: