·
3 commits
to master
since this release
Maven Script Interpreter 1.9 fixes how scripts run under the Maven Invoker Plugin: the basedir variable, Groovy class loading, and script encoding.
Behaviour changes:
- The
basedirscript variable is now the project directory, as the invoker plugin documentation describes. Before, it was the directory holding the script, so the two differed for scripts in a subdirectory. Scripts that need their own directory can use the newscriptdirvariable. - Without an explicit encoding, scripts are read as UTF-8 instead of the platform default charset.
🐛 Bug fixes
- Bind the
basedirscript variable to the project directory and addscriptdir(apache/maven-invoker-plugin#299, #212) @slachiewicz - Load Groovy's own classes parent-first, so a different Groovy version on the caller's class path no longer breaks compiled scripts (apache/maven-invoker-plugin#642, #213) @slachiewicz
- Read scripts as UTF-8 when no encoding is set (#206, #209) @elharo
FileLogger: fix theNullPointerExceptionfor a log file with no parent directory (#204, #207) @tanvir-ux
👻 Maintenance
Full changelog: maven-script-interpreter-1.8...maven-script-interpreter-1.9