Open nsutcliffe opened 2 months ago
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").
show javaOptions
List("-Dsome-property=true")
When using the plugin as follows:
and then running this command from SBT Shell:
It shows javaOptions as an empty list, that isList().
List()
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")
Please find this bug reproduced in this repository.
rpm --version
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:
I expect, when running the SBT shell command
show javaOptions
, for javaOptions to beList("-Dsome-property=true")
.Actual behaviour
When using the plugin as follows:
and then running this command from SBT Shell:
show javaOptions
It shows javaOptions as an empty list, that is
List()
.If, however, I do the following:
Then javaOptions will be
List("-Dsome-property=true")
Information
Please find this bug reproduced in this repository.
rpm --version
) N/A