Replace Gatling ${} Expression Language with #{}
MSALGatling 3.7 deprecated the ${} Expression Language syntax, as it clashes with Scala and Kotlin string interpolation, and 3.11 stopped interpreting it altogether. Rewrite ${...} to #{...} in the plain string literals of Java, Kotlin and Scala sources using Gatling, dropping the backslash Kotlin needed as in "\${id}". Kotlin string templates and Scala interpolated strings such as s"${name}" are left alone, as are strings only passed to methods of other libraries, such as System.getProperty("url", "${URL}").
org. openrewrite. java. testing. gatling. ReplaceGatlingDollarExpressionLanguagemod run . --recipe= org. openrewrite. java. testing. gatling. ReplaceGatlingDollarExpressionLanguageInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.