Skip to content
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

JavaServerAppPackaging sometimes ignores javaOptions. #1607

Open
nsutcliffe opened this issue Apr 24, 2024 · 0 comments
Open

JavaServerAppPackaging sometimes ignores javaOptions. #1607

nsutcliffe opened this issue Apr 24, 2024 · 0 comments

Comments

@nsutcliffe
Copy link

Expected behaviour

When using the JavaServerAppPackaging plugin in SBT, I expect it to respect javaOptions specified in SBT. Specifically, when using the plugin as follows:

ThisBuild / javaOptions += "-Dsome-property=true"

Project("some-project", file("some-project").enablePlugins(JavaServerAppPackaging)

I expect, when running the SBT shell command show javaOptions, for javaOptions to be List("-Dsome-property=true").

Actual behaviour

When using the plugin as follows:

ThisBuild / javaOptions += "-Dsome-property=true"

Project("some-project", file("some-project").enablePlugins(JavaServerAppPackaging)

and then running this command from SBT Shell:

show javaOptions

It shows javaOptions as an empty list, that isList().

If, however, I do the following:

ThisBuild / javaOptions += "-Dsome-property=true"

Project("some-project", file("some-project").enablePlugins(JavaServerAppPackaging).settings(javaOptions ++= Seq())

Then javaOptions will be List("-Dsome-property=true")

Information

Please find this bug reproduced in this repository.

  • What sbt-native-packager are you using: sbt-native-packager_2.12_1.0-1.9.16 - I've confirmed bug is present on latest also (1.10.0)
  • What sbt version SBT 1.9.9
  • What is your build system MacOS
  • What package are you building (e.g. docker, rpm, ...) docker
  • What version has your build tool (find out with e.g. rpm --version) N/A
  • What is your target system (e.g. Ubuntu 16.04, CentOS 7) N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant