Skip to content

Commit

Permalink
feat(scripting): Make the logger available by default
Browse files Browse the repository at this point in the history
This allows to use e.g. `logger.debug { ... }` even from the top level of
scripts.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed May 21, 2024
1 parent 6ae4429 commit 84aa5b0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class OrtScriptCompilationConfiguration : ScriptCompilationConfiguration({
compilerOptions("-jvm-target", Environment().javaVersion.substringBefore('.'))

defaultImports(
"org.apache.logging.log4j.kotlin.logger",
"org.ossreviewtoolkit.utils.common.*",
"org.ossreviewtoolkit.utils.ort.*",
"java.util.*"
Expand Down

0 comments on commit 84aa5b0

Please sign in to comment.