Upgrade Gatling to 3.16

MSAL

Upgrade Gatling 3.x simulations written in Scala, Java or Kotlin to Gatling 3.16, following the upgrade guides from 3.0 onward. Changes needing a judgement call are left alone: Gatling 3.10 requires Java 11, gatling-maven-plugin 4 no longer compiles Scala so Maven projects with Scala simulations need the scala-maven-plugin, and JMS moved to jakarta.jms in 3.14. The ${} Expression Language in ElFileBody template files is not rewritten either. Also left alone: the io.gatling.gradle plugin must be declared after the java, scala or kotlin plugin since 3.11, and the IDE launcher classes Engine and Recorder that build a GatlingPropertiesBuilder or RecorderPropertiesBuilder need rewriting to pass command line arguments to Gatling.main and GatlingRecorder.main, since the builders were removed in 3.10.

org.openrewrite.java.testing.gatling.UpgradeToGatling3_16
mod run . --recipe=org.openrewrite.java.testing.gatling.UpgradeToGatling3_16

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.