Skip to content

Releases: sbt/sbt-native-packager

Mark non-native dependencies as "provided"

09 Jan 19:50
Compare
Choose a tag to compare

JDeb & Spotify-Docker marked as "provided"

We marked both dependencies as provided to avoid unnecessary dependencies you either need nor want.
Both introduced issues with logging on the sbt-level as well.

Migration

If you used either the JDebPackaging or DockerSpotifyClientPlugin autoplugins you need to add the dependencies your self. In your plugins.sbt add the following

// if you use JDeb
libraryDependencies += "org.vafer" % "jdeb" % "1.3" artifacts (Artifact("jdeb", "jar", "jar"))

// if you use Spotify Docker
libraryDependencies += "com.spotify" % "docker-client" % "3.2.1"

Proguard documentation

@mikebridge added documentation on how to use sbt-proguard along with sbt-assembly
and sbt-native-packager

http://www.scala-sbt.org/sbt-native-packager/topics/custom.html#proguard

Commits and the issues they fixed since v1.1.0-M1

Issue(s) Commit Message

Pull requests since v1.1.0-M1

Pull Request(s) Commit Message
#719 852e4b4 Mark docker and jdeb as provided dependenciesMark docker and jdeb as provided d
#720 409497a Adding ant dependency for jdkpackager builds. Follow up to #719Adding ant depen
#721 21ad738 Add Proguard example to Custom Package Format documentationAdd Proguard example

A big thank you to all the contributors!

# Author
9 Nepomuk Seiler
2 Mike Bridge

Unify rpm/debian maintainer scripts

13 Dec 22:26
Compare
Choose a tag to compare
Pre-release

Maintainer Scripts

The rpm and debian maintainer scripts have grown over the past years in sbt-native-packager. There settings for rpm scriplets (e.g. rpmPre) with hard to use types (Option[String]) or no helper methods for the debianMaintainerScripts.

With this milestone we introduce a new task-setting:

maintainerScripts: Map[String, Seq[String]]

This will serve as the low level data-structure for all package formats that use maintainer scripts. We have plenty of docs to support you:

To give you a peak what it looked before and after

Before

rpmPostun := rpmPost.value.map { content =>
  s"""|$content
     |echo 'hello, world
     |""".stripMargin
  }.orElse {
   Option("""echo 'hello, world"
   """.stripMargin)
  }

After

import RpmConstants._
maintainerScripts in Rpm := maintainerScriptsAppend((maintainerScripts in Rpm).value)(
   Postun -> "echo 'hello, world'"
)

Commits and the issues they fixed since v1.0.6

Issue(s) Commit Message
007ddf4 Fixing sphinx formatting error

Pull requests since v1.0.6

Pull Request(s) Commit Message
#625 57c938d Unify maintainerScriptsUnify maintainerScripts
#713 07290f5 Bumped version number in Installation section.Bumped version number in Installa
#715 7c2b66e Travis: build on OS X (take 2)Travis: build on OS X (take 2)

A big thank you to all the contributors!

# Author
2 Nepomuk Seiler
2 Lars Hupel
1 Simeon H.K. Fitch

RPM / Ash / Debian Fixes

07 Dec 19:57
Compare
Choose a tag to compare

Commits and the issues they fixed since v1.0.5

Issue(s) Commit Message
#702 a037519 FIX #702, pass arguments loaded from script conf file
089bd32 fix SystemV init script template for debian packaging For processes that manage

Pull requests since v1.0.5

Pull Request(s) Commit Message
#697 301dea4 PIDFILE fix SystemV init script template for debian packagingfix SystemV init sc
#700 5f4ced3 Removed default-jre | java6-runtime dependency in jdeb packagingRemoved default
#701 6548810 Different start script replacements for different system loadersDifferent start
#704 d2509a7 Options AshScriptPlugin - pass arguments loaded from script conf fileAshScriptPl
#705 3f8051d Update README URLs based on HTTP redirectsUpdate README URLs based on HTTP redi
#708 db9b0bb Improve docs on deploying different pkg formatsImprove docs on deploying differ
#711 45bc15f Ensure systemd works with RPM relocatable packagesEnsure systemd works with RPM

A big thank you to all the contributors!

# Author
2 Yann Simon
2 Alexey Kardapoltsev
2 Ugo Matrangolo
1 ReadmeCritic
1 Felix Satyaputra
1 pkaczor
0 Nepomuk Seiler

RPM and JavaServer enhancements

11 Nov 21:37
Compare
Choose a tag to compare

Commits and the issues they fixed since v1.0.4

Issue(s) Commit Message
2d11a7c Upgrade spotify docker-client to 3.2.1 Using the spotify docker client in Play 2
64728ad Fix systemv restartService function
2e2bc12 Trying to fix race condition in jar/classpath-jar test Ensure actor system is
e8f49a2 Relocatable rpm symlink fix When creating relocatable RPM packages, the symlink
50f943d fix typo on document remove duplicate colon
#637 328f14a fix issue #637
#661 d3ae71f Ensure application is running on the installed directory in the RPM-based distri
f8fbfd1 Ensure RPM preinst script continues normally when rpmPrefix is not declared Use
#662 5d488bf FIX #662 and make universal archive options customizable
e6a1e13 Support for relocatable RPMs Save the value of RPM_INSTALL_PREFIX into applica
3bd5fb3 FIX archetype documentation

Pull requests since v1.0.4

Pull Request(s) Commit Message
#656 334416e Make the log file generated by application daemon configurable in RPM based Sys
#658 f742f83 Local Use spotify docker-client for docker:publishLocal goalUse spotify docker-c
#661 8e5a2cc Support for relocatable RPMsSupport for relocatable RPMs
#664 22e542c Add test for relocatable rpm behaviourAdd test for relocatable rpm behaviour
#666 a16c9ec FIX #662 and make universal archive options customizableFIX #662 and make unive
#667 1305e89 WIP - DON'T MERGE - Reinstate and deprecate older methods to preserve binary ba
#668 1f946ac .0.5-M2 Fixes for RPM related functionality in 1.0.5-M2Fixes for RPM related fun
#669 f7cb03e fix issue #637fix issue #637
#674 bf173d5 fix typo on documentfix typo on document
#675 14229a8 defaultLinuxLogsLocation not applied to start-rpm-templatedefaultLinuxLogsLocat
#677 4ae24bf Added rpm-build as a Requirement for *.rpmAdded rpm-build as a Requirement for
#680 34570ac Ensure pidfile dir on systemv rpm template existsEnsure pidfile dir on systemv
#685 43c36c7 Relocatable rpm symlink fixRelocatable rpm symlink fix
#691 737f00d Allow to override systemd start script nameAllow to override systemd start scri
#693 d10beef Upgrade spotify docker-client to 3.2.1Upgrade spotify docker-client to 3.2.1
#694 0ac59b6 Service-fix Fix systemv restartService functionFix systemv restartService functi

A big thank you to all the contributors!

# Author
9 Felix Satyaputra
4 Nepomuk Seiler
2 Michal Rozar
1 finlob
1 Greg Bougeard
1 giabao
1 Schmitt Christian
1 Louis-Philippe Querel
1 Seongduk CHEON
1 Greg BOUGEARD
1 Martin Carolan

RPM, Upstart, SystemD

07 Nov 15:32
Compare
Choose a tag to compare
RPM, Upstart, SystemD Pre-release
Pre-release

This commits fixes bug in systemv and rpm (relocatable rpms) and adds the option to renamen the linuxStartScript.

Commits and the issues they fixed since v1.0.5-M3

Issue(s) Commit Message
2e2bc12 Trying to fix race condition in jar/classpath-jar test Ensure actor system is
e8f49a2 Relocatable rpm symlink fix When creating relocatable RPM packages, the symlink
50f943d fix typo on document remove duplicate colon
#637 328f14a fix issue #637

Pull requests since v1.0.5-M3

Pull Request(s) Commit Message
#669 f7cb03e fix issue #637fix issue #637
#674 bf173d5 fix typo on documentfix typo on document
#675 14229a8 defaultLinuxLogsLocation not applied to start-rpm-templatedefaultLinuxLogsLocat
#677 4ae24bf Added rpm-build as a Requirement for *.rpmAdded rpm-build as a Requirement for
#680 34570ac Ensure pidfile dir on systemv rpm template existsEnsure pidfile dir on systemv
#685 43c36c7 Relocatable rpm symlink fixRelocatable rpm symlink fix
#691 737f00d Allow to override systemd start script nameAllow to override systemd start scri

A big thank you to all the contributors!

# Author
2 Michal Rozar
2 Felix Satyaputra
1 Nepomuk Seiler
1 giabao
1 Schmitt Christian
1 Louis-Philippe Querel
1 Seongduk CHEON
1 Martin Carolan

Bugfix Release

11 Sep 19:56
Compare
Choose a tag to compare
Bugfix Release Pre-release
Pre-release

Commits and the issues they fixed since v1.0.5-M2

Issue(s) Commit Message
#661 d3ae71f Ensure application is running on the installed directory in the RPM-based distri
f8fbfd1 Ensure RPM preinst script continues normally when rpmPrefix is not declared Use

Pull requests since v1.0.5-M2

Pull Request(s) Commit Message
#668 1f946ac .0.5-M2 Fixes for RPM related functionality in 1.0.5-M2Fixes for RPM related fun

A big thank you to all the contributors!

# Author
2 Felix Satyaputra
0 Nepomuk Seiler

Binary Compatibility

10 Sep 18:49
Compare
Choose a tag to compare
Binary Compatibility Pre-release
Pre-release

Commits and the issues they fixed since v1.0.5-M1

Issue(s) Commit Message

Pull requests since v1.0.5-M1

Pull Request(s) Commit Message
#667 1305e89 WIP - DON'T MERGE - Reinstate and deprecate older methods to preserve binary ba

A big thank you to all the contributors!

# Author
2 Felix Satyaputra
0 Nepomuk Seiler

Java Docker Client

09 Sep 17:07
Compare
Choose a tag to compare
Java Docker Client Pre-release
Pre-release

Commits and the issues they fixed since v1.0.4

Issue(s) Commit Message
#662 5d488bf FIX #662 and make universal archive options customizable
e6a1e13 Support for relocatable RPMs Save the value of RPM_INSTALL_PREFIX into applica
3bd5fb3 FIX archetype documentation

Pull requests since v1.0.4

Pull Request(s) Commit Message
#656 334416e Make the log file generated by application daemon configurable in RPM based Sys
#658 f742f83 Local Use spotify docker-client for docker:publishLocal goalUse spotify docker-c
#661 8e5a2cc Support for relocatable RPMsSupport for relocatable RPMs
#664 22e542c Add test for relocatable rpm behaviourAdd test for relocatable rpm behaviour
#666 a16c9ec FIX #662 and make universal archive options customizableFIX #662 and make unive

A big thank you to all the contributors!

# Author
3 Felix Satyaputra
2 Nepomuk Seiler
1 Greg Bougeard

Docker and SystemD

23 Aug 19:53
Compare
Choose a tag to compare

This release includes major improvements regarding docker and systemd.

  • New CombinedCmb for docker
  • New archetype with a custom ash script for busybox docker builds
  • Improvements for systemd

Commits and the issues they fixed since v1.0.3

Issue(s) Commit Message
2c3a851 fixed rpm scripts for systemd so application restarts after upgrade
2659076 fixed start script directory in start-rpm-template
0241881 Fixed variable names and capitalization
#644 b09a602 Fix for #644 (src/deploy in Ant classpath).
4c190b9 Added CombinedCmd and removed EnvCmd I added CombinedCmd for ONBUILD instruction
#590 d9c5eda FIX #590 fixed irritating windows documentation
9c74f70 If the /var/run (aka /run) folder doesn't exist for the PID file, create it Cent
21e2100 Deployment section, documentation fix
90843e2 Fixing application configuration

Pull requests since v1.0.3

Pull Request(s) Commit Message
#592 d64b351 FIX #590 fixed irritating windows documentationFIX #590 fixed irritating window
#604 8f7b89d tar --force-local on windowstar --force-local on windows
#608 3ee00d2 Add note about JDeb adding dependenciesAdd note about JDeb adding dependencies
#611 4fd857e If the /var/run (aka /run) folder doesn't exist for the PID file, create itIf t
#612 d6cb43d Indicate the 1.0.3 release as the last oneIndicate the 1.0.3 release as the las
#613 b78bdb3 Correct the way to give additional informations for Play appsCorrect the way to
#614 29f3113 Deployment section, documentation fixDeployment section, documentation fix
#615 c3d0bb5 use autopluging system in deployments docsuse autopluging system in deployments
#626 00d6cf9 Better formatting for messageBetter formatting for message
#627 3ef0408 Added EnvCmdAdded EnvCmd
#628 ee4406c Added CombinedCmd and removed EnvCmdAdded CombinedCmd and removed EnvCmd
#629 2bfc959 Update start-template for systemdUpdate start-template for systemd
#631 2680764 FIX #621 --system option for user/groupadd replaced with -r.FIX #621 --system o
#645 1aa3666 Fix for #644 (src/deploy in Ant classpath).Fix for #644 (src/deploy in Ant
#646 f62896f overridable bash and bat templatesoverridable bash and bat templates
#647 ea4f9cf wip/ashwip/ash
#648 3664a7b Fixed variable names and capitalizationFixed variable names and capitalization
#650 d774209 Improved rpm scripts for systemdImproved rpm scripts for systemd
#652 e1dfbf1 ash support documentationash support documentation
#653 85cbd2d Fixed start script directory in start-rpm-templateFixed start script directory

A big thank you to all the contributors!

# Author
4 Nepomuk Seiler
3 Martijn Riemers
2 Greg Zoller
2 szimano
2 Alexey Kardapoltsev
1 Damir Vandic
1 giampaolo
1 Nicolas Rémond
1 Sergey Kononenko
1 Nicolas Rémond
1 Fedor Sumkin
1 Philip Wills
1 Simeon H.K. Fitch
1 Edward Kuns
1 Michał Hamuda
0 Josh Suereth

Systemd / Windows / Docker

25 Jul 09:24
Compare
Choose a tag to compare
Pre-release

Release Notes

This is a release candidate and not a final release, because some additions in the DockerPlugin could be binary incompatible. See #627 and #628 for details.

Commits and the issues they fixed since v1.0.3

Issue(s) Commit Message
4c190b9 Added CombinedCmd and removed EnvCmd I added CombinedCmd for ONBUILD instruction
#590 d9c5eda FIX #590 fixed irritating windows documentation
9c74f70 If the /var/run (aka /run) folder doesn't exist for the PID file, create it Cent
21e2100 Deployment section, documentation fix
90843e2 Fixing application configuration

Pull requests since v1.0.3

Pull Request(s) Commit Message
#592 d64b351 FIX #590 fixed irritating windows documentationFIX #590 fixed irritating window
#604 8f7b89d tar --force-local on windowstar --force-local on windows
#608 3ee00d2 Add note about JDeb adding dependenciesAdd note about JDeb adding dependencies
#611 4fd857e If the /var/run (aka /run) folder doesn't exist for the PID file, create itIf t
#612 d6cb43d Indicate the 1.0.3 release as the last oneIndicate the 1.0.3 release as the las
#613 b78bdb3 Correct the way to give additional informations for Play appsCorrect the way to
#614 29f3113 Deployment section, documentation fixDeployment section, documentation fix
#615 c3d0bb5 use autopluging system in deployments docsuse autopluging system in deployments
#626 00d6cf9 Better formatting for messageBetter formatting for message
#627 3ef0408 Added EnvCmdAdded EnvCmd
#628 ee4406c Added CombinedCmd and removed EnvCmdAdded CombinedCmd and removed EnvCmd

A big thank you to all the contributors!

# Author
3 Nepomuk Seiler
3 Martijn Riemers
2 szimano
1 Nicolas Rémond
1 Nicolas Rémond
1 Fedor Sumkin
1 Philip Wills
1 Edward Kuns
0 Josh Suereth