Changelog ns-scripting

Filter x

1.6.1 (2022-05-17)

Fixed (N/A)

  • Moved remaining dependencies to main Chocolatey package.

1.6.0 (2022-05-17)

Changed (N/A)

  • Split chocolatey packages into ns-scripting.install and ns-scripting, the latter of which provides external dependencies.
  • Switched dependency from openjdk8 to oraclejdk in main Chocolatey package.
  • Dropped minimum version on maven dependency in main Chocolatey package.

1.5.0 (2022-05-13)


  • Chocolatey packaging.

1.4.1 (2022-05-11)


  • Script file path in warnings produced by the script engine was incorrect.
  • Mapping of diagnostic information inadvertently broke script imports. With this fix, script filenames in API exceptions will only be mapped to the full path if there are no duplicate script filenames.

1.4.0 (2022-05-10)


  • When a warning and no errors are returned by the script engine, the exit code 1 was returned instead of 0.


  • Added EULA for distribution artifacts.
  • API to interact with Git.
  • exit() function alias for kotlin.system.exitProcess().


  • Improved error reporting now prints path to script file and line number for calling site when exception occurs in library functions.
  • Exceptions for internal APIs now indicate what API was called in order to have better reporting of the cause of exceptions in libraries.
  • API structure refactoring:
    • Moved API for NS scope and related executions to net.democritus.scripting.ns.
    • Moved API for Maven execution to net.democritus.scripting.maven.
    • Moved API for dir() and exec() executions to net.democritus.scripting.common.
    • Moved ScriptScope and ExecutionTemplate interfaces to net.democritus.scripting.


  • Default import of kotlin.system package.

1.3.0 (2022-05-02)


  • Command-line option --verbose to print stack traces when a JVM error occurs while executing a script.
  • kotlin.system standard API is now imported by default in all scripts.
  • File annotation MinVersion() was added to the API, which is used to verify that the NSScript engine is at least at the specified version.


  • Default log level printed from script engine is now WARN instead of ERROR.
  • By default stack traces are no longer printed if a JVM exception occurs in a script.

1.2.2 (2022-04-19)


  • nss.ps1 script for PowerShell did not function correctly.

1.2.1 (2022-04-04)


  • Script engine did not consistently detect core library on classpath.

1.2.0 (2022-04-01)


  • Signing of installer.

1.1.1 (2022-03-26)


  • Source URL in API documentation was not correct.

1.1.0 (2022-03-26)


  • The NSScript process returned code 1 reports with a severity lower than ERROR.
  • The behavior of ScriptScope.dir(Path) was not consistent with ScriptScope.dir(String).


  • Extensive KDoc documentation of the API.
  • Added support to map ~ in the script path to the user’s home directory.
  • Added support to map ~ in the the ScriptScope.dir() scope function to the user’s home directory.
  • -h/--help argument for the script engine to write command-line help to the console.
  • -V/--version argument for the script engine to write the version of ns-scripting to the console.


  • Refactored class net.democritus.scripting.scope.ScopeNestingException to net.democritus.scripting.IllegalFunctionNestingException.
  • The constructor of IllegalFunctionNestingException is no longer accessible in scripts.
  • Nesting an execution function within an execution template will now throw a IllegalFunctionNestingException.
  • ExecutionTemplate is now a sealed interface instead of a sealed class to completely hide the implementation details from scripts.
  • ScriptScope is now a sealed interface instead of a sealed class to completely hide the implementation details from scripts.
  • NSScope.expand() and NSScope.harvest() now default to pom-expansion.xml, pom-expand.xml or pom.xml if found by default if no POM file was specified.
  • The function net.democritus.scripting.scope.ScriptScope.env() was refactored to net.democritus.scripting.env().

1.0.0 (2022-03-21)

  • Initial release.