Not suppressing warnings in gatling-sbt-plugin-demo

Using the latest sources of gatling-sbt-plugin-demo and running the simulation computerdatabase.ComputerDatabaseSimulation gives the following warnings.

Run Task:
Gatling / testOnly computerdatabase.ComputerDatabaseSimulation

Warning Message:
[warn] -target is deprecated: Use -release instead to compile against the correct platform API.

gatling-sbt-plugin-demo(latest)
GitHub - gatling/gatling-sbt-plugin-demo: Showcase of the Gatling Plugin for SBT
scala 2.13.10
gatling 3.9.5
gatlling-sbt 4.3.2

The warning was printed using both JDK 8, 11 and 17.
Also, the warning seems to be printed only when using scala 2.13.9 or above.

After correcting the scalacOptions in build.sbt according to the warning message, the warning message is no longer output.

“-target:jvm-1.8”

“-release:8”

Is there something wrong with setting the ‘release’ option instead of the ‘target’ option?
If there is no particular reason, I think it is better to specify the ‘release’ option.

The thread below says that Gatling 3.9.2 fixed it.
However, I am using Gatling 3.9.5 and it seems that a warning message has appeared, so I created this topic.

If there is no particular reason, I think it is better to specify the ‘release’ option.

That’s just we forgot to update in this place.
Interested in contributing a PR?

The thread below says that Gatling 3.9.2 fixed it.

Unrelated. This thread was about the bundle, not the sbt plugin.

I can’t easily make a pull request due to company rules (I haven’t gotten permission for the gatling-sbt-plugin-demo repository).
I’m really sorry, but I would appreciate it if you could fix it.

Done. Thanks for reporting.

1 Like