Skip to content

Releases: sbt/sbt-native-packager

AutoPlugins

11 Apr 15:44
Compare
Choose a tag to compare

Features

This release comes with a bunch of new features.

  • configuration with sbt AutoPlugins
  • improved docker API
  • javapackager integration
  • more robust and stable bat scripts
  • more predefined configuration plugins, e.g. ClasspathJarPlugin and LauncherJarPlugin
  • improved docs

Breaking changes

  • Java 7 or higher required
  • JavaAppPackaging configuration works with application.ini
  • JavaServerAppPackaging configuration via etc-default works the way it should: by sourcing the etc-default. See 1.0.0-RC1 Release Notes

Special thanks

This release wouldn't have been possible without the astonishing help of all our contributors.
We would especially like to thank

  • @nazoking / @bjuric / @tartakynov for all the windows support
  • @dwhjames for all the last-minute rpm fixes
  • @metasim for his javapackager integration
  • and everybody else for fixing the small things in order to provide a better UX

you are amazing!

Commits and the issues they fixed since v1.0.0-RC2

Issue(s) Commit Message
7e8d703 Fix warnings from rpm lint - fix warning from start script about [lockfile name]
1dd153c Fixing docs with newest changes
#529 155d126 fix for issue #529 - use numeric rather than string test in conditional
0f579d6 fix: templating for /etc/sysconfig/ path $prog is undefined at this point
45bc5db fix SystemV init script template for rpm packaging Main fix is to make use of th
08d5bd5 fix use of app_name and exec vars in systemv start-rpm-template It looks like a

Pull requests since v1.0.0-RC2

Pull Request(s) Commit Message
#454 890a383 Trying travis-ci container architecture for faster builds.Trying travis-ci cont
#537 9c19636 fix use of app_name and exec vars in systemv start-rpm-templatefix use of app_n
#538 1e96478 expand the doc for the start script template varsexpand the doc for the start s
#539 c85254c make use of stopService loader function in rpm preun templatemake use of stopSe
#540 3fb8d03 User_systemd test added for daemon user in systemd #436test added for daemon use
#541 a243197 fix SystemV init script template for rpm packagingfix SystemV init script templ
#542 b58609f A Vagrant+Ansible automated test project A Vagrant+Ansible automated test proje
#543 a1b438c Optimize Travis scriptOptimize Travis script
#544 f0c2540 fix for issue #529fix for issue #529
#546 80ef17d Fixing docs with newest changesFixing docs with newest changes
#547 9a9621e Fix warnings from rpm lintFix warnings from rpm lint
#550 6623a14 Release preparationsRelease preparations

A big thank you to all the contributors!

# Author
12 Daniel James
7 Nepomuk Seiler
1 Alexey Kardapoltsev

Full Changes since 0.8.0

Commits and the issues they fixed since v0.8.0

Issue(s) Commit Message
#276 #453 #472 #489 c52f906 Merge branch 'master' into feature/javapackager-format * master:
f5ab978 Merge branch 'master' into fix/windows-bat-script
8b0f4ae Merge branch 'master' into fix/bashscript-location Conflicts:
7e8d703 Fix warnings from rpm lint - fix warning from start script about [lockfile name]
1dd153c Fixing docs with newest changes
#529 155d126 fix for issue #529 - use numeric rather than string test in conditional
0f579d6 fix: templating for /etc/sysconfig/ path $prog is undefined at this point
45bc5db fix SystemV init script template for rpm packaging Main fix is to make use of th
08d5bd5 fix use of app_name and exec vars in systemv start-rpm-template It looks like a
05696a4 Fix and improve docs for rpmAutoreq and rpmAutoprov - fix and improve sbt settin
#82 62362c2 FIX #82 adding the ability to specify jvm options via sbt
75eb2ac Fix bug in PR-524.
0b377bc Fix incorrect information in RPM Plugin docs.
13bd807 Fix typos in the documentation
6908b16 Fix typo scirpt to be script
0bd8d8a fix test for jdk1.7.0_25, jdk1.8.0_20
#502 e2d5bd7 FIX #502 Removing JAVA_OPTS
#482 88bd5ad FIX #482 simple error, nasty solution. Works for the moment, but needs more atte
6f8e958 Adding windows tags and fixing tests
#466 30d08b7 FIX #466 adding the easy configuration, see if it works
f7f32b8 Fixed corrupted Windows Icon and commented maintainer setting in the packager ex
#495 0883937 Fix #495. Enhanced locateJDKPackagerTool to work on Windows when SBT is runnin
#276 2c39fc4 FIX #276 creating directories as necessary and specify top level dir and sadly r
#472 138510c Revert "[fix #472] /etc/default/<package-name> should be shell script setting en
#489 [aacce7f](https://github.co...
Read more

Use javaOptions in build.sbt

29 Mar 12:18
Compare
Choose a tag to compare
Pre-release

Change: etc-default -> application.ini

We changed the shape of etc-default as it is meant to be.
There are two different configuration files now.

setting location description
bashScriptEnvConfigLocation /etc/default/appname sourced by init scripts
bashScriptConfigLocation app_home/conf/application.ini parsed by bash script

The setting value is the default value provided by sbt-native-packager. In order to
get picked up by sbt-native-packager put the files in these places:

file directory
etc-default src/templates/
application.ini src/universal/conf

For the full discussion see #473 (with prs #510 and #526 )

Change: dockerfile/java:latest -> java:latest

Docker is creating an official repo. See blog post. We already included this change with #533

Commits and the issues they fixed since v1.0.0-RC1

Issue(s) Commit Message
05696a4 Fix and improve docs for rpmAutoreq and rpmAutoprov - fix and improve sbt settin
#82 62362c2 FIX #82 adding the ability to specify jvm options via sbt
75eb2ac Fix bug in PR-524.
0b377bc Fix incorrect information in RPM Plugin docs.
13bd807 Fix typos in the documentation
6908b16 Fix typo scirpt to be script
0bd8d8a fix test for jdk1.7.0_25, jdk1.8.0_20
#502 e2d5bd7 FIX #502 Removing JAVA_OPTS

Pull requests since v1.0.0-RC1

Pull Request(s) Commit Message
#503 aa85388 FIX #502 Removing JAVA_OPTSFIX #502 Removing JAVA_OPTS
#507 4467d31 fix appveyor test fix appveyor test
#510 48b0c19 FIX #82 adding the ability to specify jvm options via sbtFIX #82 adding the abi
#512 bd05e79 Basic image generation detection test for JDKPackagerPlugin.Basic image generat
#514 d42e2e2 Added launcher jar pluginAdded launcher jar plugin
#517 86d4611 Fix typo 'scirpt' to be 'script'Fix typo 'scirpt' to be 'script'
#519 7be0d83 Fix typos in the documentationFix typos in the documentation
#523 b478aa5 Fix incorrect information in RPM Plugin docs.Fix incorrect information in RPM P
#524 0d72913 Codacy recommended cleanup.Codacy recommended cleanup.
#525 e6891b9 Revert "Codacy recommended cleanup."Revert "Codacy recommended cleanup."
#526 3a2a576 Added support for environment configuration file.Added support for environment
#528 e9cfbe4 Codacy fixesCodacy fixes
#532 a22bf58 Fix #531: Simplify stop() function on Debian based systems.Fix #531: Simplify s
#533 f60e1a4 !Update default dockerBaseImage to official repo!Update default dockerBaseImage
#534 8b043cd Fix and improve docs for rpmAutoreq and rpmAutoprovFix and improve docs for rpm
#535 496cbb3 Improvements to RPM documentationImprovements to RPM documentation

A big thank you to all the contributors!

# Author
9 Nepomuk Seiler
5 Myyk Seok
2 Daniel James
1 James Roper
1 Ugo Bataillard
1 Daniel Wegener
1 Fabian M. Borschel
1 Jonas Fonseca
1 Simeon H.K. Fitch
1 nazoking
0 Alexey Kardapoltsev

JavaPackager Enhancements

24 Feb 21:43
Compare
Choose a tag to compare
Pre-release

Java 7 or higher required

This is our first release moving away from java 6. If you need java 6
compatibility, please join the discussion at #498

Commits and the issues they fixed since v1.0.0-M5

Issue(s) Commit Message
#276 #453 #472 #489 c52f906 Merge branch 'master' into feature/javapackager-format * master:
#482 88bd5ad FIX #482 simple error, nasty solution. Works for the moment, but needs more atte
6f8e958 Adding windows tags and fixing tests
#466 30d08b7 FIX #466 adding the easy configuration, see if it works
f7f32b8 Fixed corrupted Windows Icon and commented maintainer setting in the packager ex
#495 0883937 Fix #495. Enhanced locateJDKPackagerTool to work on Windows when SBT is runnin

Pull requests since v1.0.0-M5

Pull Request(s) Commit Message
#493 7da3f21 Wip/appveyor windows testsWip/appveyor windows tests
#494 4a94ec7 Added translation of jvmopts contents and enhanced example app.Added translat
#496 6d9f82f Fix #495. Enhanced locateJDKPackagerTool to work on Windows when SBT...Fix #4
#505 ad8f87c Scriptconf-482 FIX #482 simple error, nasty solution. Works for the moment, but

A big thank you to all the contributors!

# Author
8 Nepomuk Seiler
5 Simeon H.K. Fitch

Docker API and JDK 8 javapackager

15 Feb 01:00
Compare
Choose a tag to compare
Pre-release

This will be the last milestone before the first release candidates.
Noteable changes are

  • Refactoring of the docker API. You can now access the raw docker commands via the dockerCommands task
  • Adding experimental support for the JDK8 javapackager tool.
  • Upgrading to Java 7, which allows us to remove system calls like chmod and replace it with a platform independent java solution

Commits and the issues they fixed since v1.0.0-M4

Issue(s) Commit Message
#276 2c39fc4 FIX #276 creating directories as necessary and specify top level dir and sadly r
#472 138510c Revert "[fix #472] /etc/default/<package-name> should be shell script setting en
#489 aacce7f FIX #489: Small fix in documentation
4deb3e3 Fixing -jvm-debug flags so that they use args compatible with the latest JDKs, i
#472 520ffaf [fix #472] /etc/default/<package-name> should be shell script setting envars
a77c22e Fix broken link to Docker help.
#469 0510814 FIX #469 missing colons
#460 35a0bda FIX #460

Pull requests since v1.0.0-M4

Pull Request(s) Commit Message
#462 45bd546 WaitProcessOnStop wait for process to stop or timeout in systemv init scriptwait
#463 ef8f75a Docker maintainer is no longer requiredDocker maintainer is no longer required
#464 e2081da Added missing statement in archetypes docAdded missing statement in archetypes
#470 1582800 FIX #469 missing colonsFIX #469 missing colons
#473 0e957d1 EtcDefaultAsShell [fix #472] /etc/default/<package-name> should be shell script
#474 53c0c46 DockerLink Fix broken link to Docker help.Fix broken link to Docker help.
#478 582a7f4 [Fix #476] Fixing -jvm-debug flags so that they use args compatible with the la
#486 bcc2552 Wip/docker refactoringWip/docker refactoring
#487 974d91b Upgrading to java 7 and using posix nio APIUpgrading to java 7 and using posix
#490 3bd5e93 FIX #489: Small fix in documentationFIX #489: Small fix in documentation
#491 5b41248 EtcDefaultAsShell Revert "[fix #472] /etc/default/<package-name> should be shell
#492 b26c8e7 Experimental support for formats generated by the JDK 8 javapackager tool.Exp

A big thank you to all the contributors!

# Author
12 Nepomuk Seiler
6 Simeon H.K. Fitch
4 dhardy92
1 Артем Тартакынов
1 Ben McCann
1 Jateen Joshi
1 The Gitter Badger
1 Alexey Kardapoltsev
1 mhughes

Docker/Windows/Bash Updates

08 Jan 19:06
Compare
Choose a tag to compare
Pre-release

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

Issue(s) Commit Message
f5ab978 Merge branch 'master' into fix/windows-bat-script
fa95ee6 windows bat exit code fix Return exit code 1 in windows bat script if java appli
#443 758bc6d FIX #443 Refactor documentation. Work in progress
#435 141c075 FIX #435 Adding loader and control functions
16b8c52 fixed the wrong check (due to delayed expansion) in bat-template
9283051 FIX install command in upstart to use daemon_group
#432 5b9c385 Update README.md FIX #432
2082723 Fix typo in debian:packageBin.

Pull requests since v1.0.0-M3

Pull Request(s) Commit Message
#424 300ed33 Docker mappings - incomplete?Docker mappings - incomplete?
#427 0fea5fc Add documentation about Play 2 packaging as deb- and rpm-packagesAdd documentat
#429 49fd0a3 Fix typo in debian:packageBin.Fix typo in debian:packageBin.
#430 3c2e49c Add the required import.Add the required import.
#431 59c2b9f Made -agentlib options before the classpath in the bash script.Made -agentlib o
#434 9660112 FIX install command in upstart to use daemon_groupFIX install command in upstar
#439 47692e1 FIX #435 Adding loader and control functionsFIX #435 Adding loader and control
#440 12cfcb4 Fix/windows bat scriptFix/windows bat script
#441 b8b8248 Run the systemd service as the created & specified daemon userRun the systemd s
#442 353a11a #415 custom mainclass for Windows#415 custom mainclass for Windows
#444 2bed3c1 FIX #443 Refactor documentation. Work in progressFIX #443 Refactor documentatio
#446 34802cf Replace bash image with java’s in akka-bash-templateReplace bash image with jav
#448 f3672bc Stipulation of docker version in documentationStipulation of docker version in
#449 ae7c5d5 add support for uid and gidadd support for uid and gid
#450 9f330b8 fixes a typo leading to bad replacementfixes a typo leading to bad replacement
#452 5fdf04c Fixing update-latest to work with docker 1.3 and greaterFixing update-latest to
#457 7f86b4f Using --startas instead of --exec now in order to make start script idempot
#458 e0968b5 Back to specific directory for ADD commandBack to specific directory for ADD co

A big thank you to all the contributors!

# Author
10 Nepomuk Seiler
3 Christopher Hunt
3 Artem Tartakynov
2 Branko Juric
2 Artem Pyanykh
2 Robert Boll
2 Ashley Penney
1 Артем Тартакынов
1 Michal Rus
1 nefilim
1 Jim Tang
1 nazoking
1 Oleg Ilyenko
0 Alexey Kardapoltsev

Version 0.8.0

08 Jan 20:18
Compare
Choose a tag to compare

Commits and the issues they fixed since v0.7.6

Issue(s) Commit Message
763c1c8 Merge branch 'master' into fix/bash-batfile-name
7c6f6ec Fixing update-latest to work with docker 1.3 and greater
#435 1b55f1c FIX #435 Adding loader and control functions
6b44f17 windows bat exit code fix Return exit code 1 in windows bat script if java appli
062af53 fix import Conflicts:
00e870b fix test
6a7a131 fix windows batch argument probrem. the shift command of cmd.exe is not shift
7f5c66b Fix example code in GettingStartedServers/MyFirstProject
99b5fd7 Fix permissions and group for /var/run/${{app_name}} folder in SystemV init scri
9192cb7 fix typo in mappings example
#372 2d2aa36 FIX #372: On upgrade service is stopped twice
#358 3d63d6e Rebasing and fixing tests on master. Adding changes discussed in #358
#312 df909ea FIX #285 FIX #287 FIX #52 FIX #312 Improved docs for packageMappings in Universa
#295 e3d4614 FIX #295 Adding documentation for docker tags
#318 98e4e58 FIX #318 Wildcard match on errorcode
32f6fe2 Fix typos in getting started docs
94cc080 fix rpm tests with new /etc/default permissions
7bb0bb5 Fix typo in 'MyFirstProject'
8ac8257 fix minor spelling mistakes
d3de8f7 Fixed wrong archive name in jdeb packaging
76bc6b6 Fix RPM System User Deletion on Upgrade
29fc5aa fixing empty directory mapping test
#324 a5b7015 FIX #324 adding empty dirs to deb package
#322 75583fe FIX #322 adding permissions to jdeb packaging
#304 492a8b7 FIX #304 adding requirements for debian packaging
#217 22a691a FIX #217 Introduced executableScriptName setting
#301 9122098 FIX #301
9f87bb1 Adding more settings and fixing settings description
#188 8d9a305 Clean up name delegation in the plugin. A few rules: * Each configuration shoul
#292 1f46265 Fixes #292 - Not feeding new isSnapshot value to ivy configuration.

Pull requests since v0.7.6

Pull Request(s) Commit Message
#250 53d3cd8 Clean up name delegation in the plugin. A few rules:Clean up name delegation i
#298 37d0f44 Fixes #292 - Not feeding new isSnapshot value to ivy configuration.Fixes #292 -
#299 3d8b37e Adding docs for name-delegation in #250Adding docs for name-delegation in #250
#300 90c5697 Update README now that 0.7.2 is releasedUpdate README now that 0.7.2 is release
#303 05208e1 .12 Removing sbt 0.12.x supportRemoving sbt 0.12.x support
#305 bb5fea8 Remove cross-build configuration from build.sbt.Remove cross-build configuratio
#307 dd95154 .3 Upgrade to jdeb 1.3 to stop old version of slf4j from being pulled inUpgrade
#308 459b788 Adding docker tests to release scriptAdding docker tests to release script
#311 aab0858 FIX #304 adding requirements for debian packagingFIX #304 adding requirements f
#315 da1e957 No need for importNo need for import
#317 0af1b28 flag to update latest tagflag to update latest tag
#319 8950f15 Custom mainclassCustom mainclass
#321 1f78f2a maintainer should be in Docker or Dockerfile will write an empty valuemaintaine
#323 e09d65a FIX #322 adding permissions to jdeb packagingFIX #322 adding permissions to jde
#325 a6325f6 FIX #324 adding empty dirs to deb packageFIX #324 adding empty dirs to deb pack
#326 b6dbe19 Fix RPM System User Deletion on UpgradeFix RPM System User Deletion on Upgrade
#328 d334c80 Fixed wrong archive name in jdeb packagingFixed wrong archive name in jdeb pack
#332 3a35214 Implemented the changelog to RPMImplemented the changelog to RPM
#333 9ebb44b Added support for classifiers in multiproject buildsAdded support for classifie
#337 51e948b change plugin version to 0.7.5-RC1 in documen...
Read more

Windows and JDeb Fixes

26 Nov 23:04
Compare
Choose a tag to compare
Pre-release

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

Issue(s) Commit Message
897f2b6 fix import
28c665d fix test
5067a40 fix windows batch argument probrem. the shift command of cmd.exe is not shift
#394 bfde849 FIX #394 adding tests for native packaging with 0440 permissions
#405 9974c1f FIX #405: Script replacements doesn't work with jdeb packaging
ab49d7e fix too long classpaths in script(bat/bash). Create manifest.jar it contains Cla
20c8f79 Fix typo contstruct -> construct. Fix typo contstruct -> construct.

Pull requests since v1.0.0-M2

Pull Request(s) Commit Message
#393 54d16c6 fix windows batch argument probrem.fix windows batch argument probrem.
#397 268d010 fix too long classpaths in script(bat/bash).fix too long classpaths in script(b
#404 e96b23b Fix typo contstruct -> construct.Fix typo contstruct -> construct.
#406 51ae6b1 FIX #405: Script replacements doesn't work with jdeb packagingFIX #405: Script
#408 83b0706 FIX #394 adding tests for native packaging with 0440 permissionsFIX #394 adding
#411 996ac61 Better Entrypoint SupportBetter Entrypoint Support

A big thank you to all the contributors!

# Author
8 nazoking
3 Nepomuk Seiler
3 Michael Hamrah
1 falmp
1 Alexey Kardapoltsev

v0.8.0-RC2: Revert "Enforcing java-6 for now"

26 Nov 22:49
Compare
Choose a tag to compare

Commits and the issues they fixed since v0.8.0-RC1

Issue(s) Commit Message
062af53 fix import Conflicts:
00e870b fix test
6a7a131 fix windows batch argument probrem. the shift command of cmd.exe is not shift

Pull requests since v0.8.0-RC1

Pull Request(s) Commit Message
#393 - fix windows batch argument probrem
#390 - Setting maintainer for Docker images can be optional.

A big thank you to all the contributors!

# Author
6 nazoking
3 Nepomuk Seiler
1 Gary Coady

Windows fixes

26 Nov 22:47
Compare
Choose a tag to compare
Windows fixes Pre-release
Pre-release

Commits and the issues they fixed since v0.7.6

Issue(s) Commit Message
8f55e50 fix import Conflicts:
b417223 fix test
17a9a49 fix windows batch argument probrem. the shift command of cmd.exe is not shift

Pull requests since v0.7.6

Pull Request(s) Commit Message
#393 - fix windows batch argument probrem

A big thank you to all the contributors!

# Author
6 nazoking
2 Nepomuk Seiler

Autoplugins #2

08 Nov 11:03
Compare
Choose a tag to compare
Autoplugins #2 Pre-release
Pre-release

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

Issue(s) Commit Message
8b0f4ae Merge branch 'master' into fix/bashscript-location Conflicts:
#391 d4034dc FIX #391 Fixing all lintian errors and some warnings
#388 c312307 FIX #388 remove dependencies to chmod.

Pull requests since v1.0.0-M1

Pull Request(s) Commit Message
#387 8a3f2b2 Update README.mdUpdate README.md
#389 62fde8f Remove AutoPlugin triggers from plugins.Remove AutoPlugin triggers from plugins
#390 5bc1f6e Setting maintainer for Docker images can be optional.Setting maintainer for Doc
#392 af32138 Relocated the scope for common docker settingsRelocated the scope for common do
#399 2ce164c FIX #388 remove dependencies to chmod.FIX #388 remove dependencies to chmod.
#400 dc24421 FIX #391 Fixing all lintian errors and some warningsFIX #391 Fixing all lintian
#401 7139ba1 Not hardcoding bashscript config location #398Not hardcoding bashscript config
#403 017b2c6 Play backward compatibility issuePlay backward compatibility issue

A big thank you to all the contributors!

# Author
6 Nepomuk Seiler
4 Gary Coady
2 Christopher Hunt
1 Levi Notik
0 Josh Suereth