Using the latest sources of gatling-sbt-plugin-demo and running the simulation computerdatabase.ComputerDatabaseSimulation gives the following warnings.
Gatling / testOnly computerdatabase.ComputerDatabaseSimulation
[warn] -target is deprecated: Use -release instead to compile against the correct platform API.
GitHub - gatling/gatling-sbt-plugin-demo: Showcase of the Gatling Plugin for SBT
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.
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.