These are chat archives for sbt/sbt

13th
Jul 2015
Jason Zaugg
@retronym
Jul 13 2015 02:35
@dwijnand My patch was against 2.11.x and hadn’t been merged forward to 2.12.x in time for the first staged release of 2.12.0-M2. It will defintely be in M3, and might even be in the M2 if we decide to rebuild the milestone to include that patch.
Dale Wijnand
@dwijnand
Jul 13 2015 07:02
Ah that makes more sense. Thanks
Jacek Laskowski
@jaceklaskowski
Jul 13 2015 11:06
hi
anybody familiar with sbt-native-packager?
I need to disable tgz from packagedArtifacts
Pierre Dal-Pra
@pdalpra
Jul 13 2015 11:06
yep
Jacek Laskowski
@jaceklaskowski
Jul 13 2015 11:06
right now
it generates zip and tgz
they’re in packagedArtifacts in (Universal, packageBin)
I thought I’d filterNot for tgz
but doesn’t seem to be working
Pierre Dal-Pra
@pdalpra
Jul 13 2015 11:07
Jacek Laskowski
@jaceklaskowski
Jul 13 2015 11:07
it’s about adding
an artifact
I’d like to remove one
ah, wait
I’m using an auto-plugin
so it may be overriden by the plugin itself
once it’s applied later
Pierre Dal-Pra
@pdalpra
Jul 13 2015 11:08
yep, but this does not include the default artifacts, so this only adds the zip one
Jacek Laskowski
@jaceklaskowski
Jul 13 2015 11:10
let me think about it
thanks
my bad, it is not automatically activated
Jacek Laskowski
@jaceklaskowski
Jul 13 2015 11:11
but I do need it :)
so I activated it myself :)
I just need to disable generating tgz
Pierre Dal-Pra
@pdalpra
Jul 13 2015 11:12
Yep, but that is exactly what add tgz for you, so if you do no enable it, and add the artifact manually... tada it works :)
Jacek Laskowski
@jaceklaskowski
Jul 13 2015 11:12
sure
so now I’m going to remove just this package
okey
I could not enable it
and do the mappings myself
lemme check
Jacek Laskowski
@jaceklaskowski
Jul 13 2015 12:31
figured it out
autoplugin was enabled
and my settings were overriden by UniversalDeployPlugin as it was enabled in build.sbt
I hence had to re-set packagedArtifacts:
// Disable tgz as set by UniversalDeployPlugin
packagedArtifacts in Universal := {
  (packagedArtifacts in Universal).value.filterNot { case (a, f) =>
    a.extension == "tgz" }
}
jaceklaskowski @jaceklaskowski yes, I know it could be prettier with ~= :)