Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package maven-script-interpreter for 
openSUSE:Factory checked in at 2026-09-11 18:04:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/maven-script-interpreter (Old)
 and      /work/SRC/openSUSE:Factory/.maven-script-interpreter.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "maven-script-interpreter"

Fri Sep 11 18:04:11 2026 rev:7 rq:1377340 version:1.8

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/maven-script-interpreter/maven-script-interpreter.changes
        2026-04-23 17:13:42.947153269 +0200
+++ 
/work/SRC/openSUSE:Factory/.maven-script-interpreter.new.1265/maven-script-interpreter.changes
      2026-09-11 18:07:31.401382950 +0200
@@ -1,0 +2,23 @@
+Sat Sep  5 13:42:29 UTC 2026 - Fridrich Strba <[email protected]>
+
+- Upgrade to version 1.8
+  * New features and improvements
+    + Allow interpreters to target a specific bytecode version
+  * Maintenance
+    + Inherit the maven-invoker-plugin version from the parent
+    + Port the site documentation from APT to Markdown
+  * Dependency updates
+    + Bump org.apache.groovy:groovy from 4.0.31 to 4.0.33
+    + Bump apache/maven-gh-actions-shared/.github/workflows/
+      /release-drafter.yml from 4 to 5
+    + Bump apache/maven-gh-actions-shared/.github/workflows/
+      /stale.yml from 4 to 5
+    + Bump apache/maven-gh-actions-shared/.github/workflows/
+      /maven-verify.yml from 4 to 5
+    + Bump apache/maven-gh-actions-shared/.github/workflows/
+      /pr-automation.yml from 4 to 5
+    + Bump org.apache.maven.shared:maven-shared-components from 47
+      to 49
+    + Bump commons-io:commons-io from 2.21.0 to 2.22.0
+
+-------------------------------------------------------------------

Old:
----
  maven-script-interpreter-1.7-source-release.zip

New:
----
  maven-script-interpreter-1.8-source-release.zip

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ maven-script-interpreter.spec ++++++
--- /var/tmp/diff_new_pack.mWmFaL/_old  2026-09-11 18:07:32.085411678 +0200
+++ /var/tmp/diff_new_pack.mWmFaL/_new  2026-09-11 18:07:32.087411762 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           maven-script-interpreter
-Version:        1.7
+Version:        1.8
 Release:        0
 Summary:        Maven Script Interpreter
 License:        Apache-2.0

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.mWmFaL/_old  2026-09-11 18:07:32.121413190 +0200
+++ /var/tmp/diff_new_pack.mWmFaL/_new  2026-09-11 18:07:32.124413316 +0200
@@ -1,6 +1,6 @@
-mtime: 1776926565
-commit: 42ff4fbd685e2a6ff1ec298c34c673aab502159b649c29e2baa1c3e6bca40663
-url: https://src.opensuse.org/java-packages/maven-script-interpreter.git
-revision: 42ff4fbd685e2a6ff1ec298c34c673aab502159b649c29e2baa1c3e6bca40663
+mtime: 1788616025
+commit: f970277aa145567fd6ff760715b2196da327cd2ee04d2c34b1490d492ac229df
+url: https://src.opensuse.org/java-packages/maven-script-interpreter
+revision: f970277aa145567fd6ff760715b2196da327cd2ee04d2c34b1490d492ac229df
 projectscmsync: https://src.opensuse.org/java-packages/_ObsPrj
 

++++++ build.specials.obscpio ++++++

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-09-05 15:47:05.000000000 +0200
@@ -0,0 +1 @@
+.osc

++++++ maven-script-interpreter-1.7-source-release.zip -> 
maven-script-interpreter-1.8-source-release.zip ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/maven-script-interpreter-1.7/DEPENDENCIES 
new/maven-script-interpreter-1.8/DEPENDENCIES
--- old/maven-script-interpreter-1.7/DEPENDENCIES       2026-04-14 
20:26:16.000000000 +0200
+++ new/maven-script-interpreter-1.8/DEPENDENCIES       2026-09-01 
06:09:38.000000000 +0200
@@ -14,7 +14,7 @@
 
 From: 'Apache Software Foundation' (https://apache.org)
 
-  - Apache Groovy (https://groovy-lang.org) org.apache.groovy:groovy:jar:4.0.31
+  - Apache Groovy (https://groovy-lang.org) org.apache.groovy:groovy:jar:4.0.33
     License: The Apache Software License, Version 2.0  
(https://www.apache.org/licenses/LICENSE-2.0.txt)
 
 
@@ -26,7 +26,7 @@
 
 From: 'The Apache Software Foundation' (https://www.apache.org/)
 
-  - Apache Commons IO (https://commons.apache.org/proper/commons-io/) 
commons-io:commons-io:jar:2.21.0
+  - Apache Commons IO (https://commons.apache.org/proper/commons-io/) 
commons-io:commons-io:jar:2.22.0
     License: Apache-2.0  (https://www.apache.org/licenses/LICENSE-2.0.txt)
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/maven-script-interpreter-1.7/pom.xml 
new/maven-script-interpreter-1.8/pom.xml
--- old/maven-script-interpreter-1.7/pom.xml    2026-04-14 20:26:16.000000000 
+0200
+++ new/maven-script-interpreter-1.8/pom.xml    2026-09-01 06:09:38.000000000 
+0200
@@ -22,12 +22,12 @@
   <parent>
     <groupId>org.apache.maven.shared</groupId>
     <artifactId>maven-shared-components</artifactId>
-    <version>47</version>
+    <version>49</version>
     <relativePath />
   </parent>
 
   <artifactId>maven-script-interpreter</artifactId>
-  <version>1.7</version>
+  <version>1.8</version>
 
   <name>Apache Maven Script Interpreter</name>
   <description>This component provides some utilities to interpret/execute 
some scripts for various implementations:
@@ -36,7 +36,7 @@
   <scm>
     
<connection>scm:git:https://gitbox.apache.org/repos/asf/maven-script-interpreter.git</connection>
     
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-script-interpreter.git</developerConnection>
-    <tag>maven-script-interpreter-1.7</tag>
+    <tag>maven-script-interpreter-1.8</tag>
     
<url>https://github.com/apache/maven-script-interpreter/tree/${project.scm.tag}</url>
   </scm>
   <issueManagement>
@@ -56,22 +56,21 @@
 
   <properties>
     <slf4j.version>1.7.36</slf4j.version>
-    
<project.build.outputTimestamp>2026-04-14T20:26:15Z</project.build.outputTimestamp>
+    
<project.build.outputTimestamp>2026-09-01T06:09:37Z</project.build.outputTimestamp>
 
-    <version.maven-invoker-plugin>3.9.1</version.maven-invoker-plugin>
   </properties>
 
   <dependencies>
     <dependency>
       <groupId>commons-io</groupId>
       <artifactId>commons-io</artifactId>
-      <version>2.21.0</version>
+      <version>2.22.0</version>
     </dependency>
 
     <dependency>
       <groupId>org.apache.groovy</groupId>
       <artifactId>groovy</artifactId>
-      <version>4.0.31</version>
+      <version>4.0.33</version>
     </dependency>
 
     <dependency>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/maven-script-interpreter-1.7/src/main/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreter.java
 
new/maven-script-interpreter-1.8/src/main/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreter.java
--- 
old/maven-script-interpreter-1.7/src/main/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreter.java
       2026-04-14 20:26:16.000000000 +0200
+++ 
new/maven-script-interpreter-1.8/src/main/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreter.java
       2026-09-01 06:09:38.000000000 +0200
@@ -42,6 +42,8 @@
     private final RootLoader childFirstLoader =
             new RootLoader(new URL[] {}, 
Thread.currentThread().getContextClassLoader());
 
+    private String targetBytecode;
+
     @Override
     public void setClassPath(List<String> classPath) {
         if (classPath == null || classPath.isEmpty()) {
@@ -51,6 +53,11 @@
         classPath.stream().map(this::toUrl).forEach(childFirstLoader::addURL);
     }
 
+    @Override
+    public void setTargetBytecode(String version) {
+        this.targetBytecode = version;
+    }
+
     private URL toUrl(String path) {
         try {
             return new File(path).toURI().toURL();
@@ -60,6 +67,27 @@
     }
 
     /**
+     * Maps a Maven-style release value (for example <code>"8"</code>) to the 
version string Groovy's
+     * {@link CompilerConfiguration#setTargetBytecode(String)} expects (for 
example <code>"1.8"</code>). Groovy uses
+     * the <code>"1.x"</code> form for JDK 4 through 8, and bare version 
numbers from JDK 9 onward.
+     *
+     * @param version The Maven-style release value, must not be 
<code>null</code>.
+     * @return The Groovy-compatible bytecode version string.
+     */
+    static String normalizeTargetBytecode(String version) {
+        switch (version) {
+            case "4":
+            case "5":
+            case "6":
+            case "7":
+            case "8":
+                return "1." + version;
+            default:
+                return version;
+        }
+    }
+
+    /**
      * {@inheritDoc}
      */
     @Override
@@ -76,10 +104,13 @@
                 System.setOut(scriptOutput);
             }
 
-            GroovyShell interpreter = new GroovyShell(
-                    childFirstLoader,
-                    new Binding(globalVariables),
-                    new CompilerConfiguration(CompilerConfiguration.DEFAULT));
+            CompilerConfiguration compilerConfiguration = new 
CompilerConfiguration(CompilerConfiguration.DEFAULT);
+            if (targetBytecode != null) {
+                
compilerConfiguration.setTargetBytecode(normalizeTargetBytecode(targetBytecode));
+            }
+
+            GroovyShell interpreter =
+                    new GroovyShell(childFirstLoader, new 
Binding(globalVariables), compilerConfiguration);
 
             Thread.currentThread().setContextClassLoader(childFirstLoader);
             return interpreter.evaluate(script);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/maven-script-interpreter-1.7/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptInterpreter.java
 
new/maven-script-interpreter-1.8/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptInterpreter.java
--- 
old/maven-script-interpreter-1.7/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptInterpreter.java
     2026-04-14 20:26:16.000000000 +0200
+++ 
new/maven-script-interpreter-1.8/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptInterpreter.java
     2026-09-01 06:09:38.000000000 +0200
@@ -42,6 +42,16 @@
     void setClassPath(List<String> classPath);
 
     /**
+     * Sets the target bytecode version for interpreters that support 
bytecode-level compilation. Interpreters
+     * that do not compile to a specific bytecode level (for example 
BeanShell) may ignore this.
+     *
+     * @param version The target bytecode version, may be <code>null</code> to 
use the interpreter's own default.
+     */
+    default void setTargetBytecode(String version) {
+        // no-op by default
+    }
+
+    /**
      * Evaluates the specified script.
      *
      * @param script          The script contents to evaluate, must not be 
<code>null</code>.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/maven-script-interpreter-1.7/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java
 
new/maven-script-interpreter-1.8/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java
--- 
old/maven-script-interpreter-1.7/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java
  2026-04-14 20:26:16.000000000 +0200
+++ 
new/maven-script-interpreter-1.8/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java
  2026-09-01 06:09:38.000000000 +0200
@@ -105,6 +105,18 @@
     }
 
     /**
+     * Sets the target bytecode version for the hook scripts, for interpreters 
that support bytecode-level
+     * compilation.
+     *
+     * @param version The target bytecode version, may be <code>null</code> to 
use each interpreter's own default.
+     */
+    public void setTargetBytecode(String version) {
+        if (version != null) {
+            scriptInterpreters.values().forEach(scriptInterpreter -> 
scriptInterpreter.setTargetBytecode(version));
+        }
+    }
+
+    /**
      * Sets the file encoding of the hook scripts.
      *
      * @param encoding The file encoding of the hook scripts, may be 
<code>null</code> or empty to use the platform's
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/maven-script-interpreter-1.7/src/site/apt/index.apt.vm 
new/maven-script-interpreter-1.8/src/site/apt/index.apt.vm
--- old/maven-script-interpreter-1.7/src/site/apt/index.apt.vm  2026-04-14 
20:26:16.000000000 +0200
+++ new/maven-script-interpreter-1.8/src/site/apt/index.apt.vm  1970-01-01 
01:00:00.000000000 +0100
@@ -1,150 +0,0 @@
- ------
- Introduction
- ------
- Olivier Lamy
- ------
- 2013-07-24
- ------
-
- ~~ Licensed to the Apache Software Foundation (ASF) under one
- ~~ or more contributor license agreements.  See the NOTICE file
- ~~ distributed with this work for additional information
- ~~ regarding copyright ownership.  The ASF licenses this file
- ~~ to you under the Apache License, Version 2.0 (the
- ~~ "License"); you may not use this file except in compliance
- ~~ with the License.  You may obtain a copy of the License at
- ~~
- ~~   http://www.apache.org/licenses/LICENSE-2.0
- ~~
- ~~ Unless required by applicable law or agreed to in writing,
- ~~ software distributed under the License is distributed on an
- ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~~ KIND, either express or implied.  See the License for the
- ~~ specific language governing permissions and limitations
- ~~ under the License.
-
- ~~ NOTE: For help with the syntax of this file, see:
- ~~ http://maven.apache.org/doxia/references/apt-format.html
-
-${project.name}
-
-  This component provides some utilities to interpret/execute some scripts for 
various implementations: groovy or beanshell.
-
-* Dependency declaration
-
-+---------
-<dependency>
-  <groupId>org.apache.maven.shared</groupId>
-  <artifactId>maven-script-interpreter</artifactId>
-  <version>${project.version}</version>
-</dependency>
-+---------
-
-  <<<maven-script-interpreter>>> has dependency only to core interpreters 
library,
-  all specific extensions should be added in your project.
-
-  For example, if you want to use 
{{{https://docs.groovy-lang.org/latest/html/documentation/grape.html}<<Grape>>}}
-  in a <<Groovy>> script, you must add a dependency to Ivy in your project or 
in the plugin that will invoke the script:
-
-+---------
-<dependency>
-  <groupId>org.apache.ivy</groupId>
-  <artifactId>ivy</artifactId>
-  <version>...</version>
-</dependency>
-+---------
-
-* Using ScriptRunner
-
-  <<<ScriptRunner>>> class will detect the script file to run based on 
supported extensions (<<<.bsh>>>, <<<.groovy>>>).
-
-  This class will search in the provided directory the script with the 
provided fileName and the supported extensions.
-
-  See 
{{{./apidocs/org/apache/maven/shared/scriptinterpreter/ScriptRunner.html}javadoc}}
 for <<<run(...)>>> methods.
-
-+---------
-try (ScriptRunner scriptRunner = new ScriptRunner()) {
-    scriptRunner.run("test", new File("src/test/resources/bsh-test"), 
"verify", buildContext(),
-            new FileLogger(logFile));
-}
-+---------
-
-* Mirror output from script interpreter
-
-  In order to do something more with script output, eg. log by your 
application you must implement <<<FileLoggerMirrorHandler>>>
-
-+---------
-class MyMirrorHandler implements FileLoggerMirrorHandler {
-    void consumeOutput(String message) {
-        // this method is invoked every time when flush occurs on the 
underlying stream.
-    }
-}
-+---------
-
-  Now use it:
-
-+---------
-try (ScriptRunner scriptRunner = new ScriptRunner()) {
-    scriptRunner.run("test", new File("src/test/resources/bsh-test"), 
"verify", buildContext(),
-            new FileLogger(logFile, new MyMirrorHandler()));
-}
-+---------
-
-** Global variables
-
-  Your scripts will have by default two global variables:
-
-  * <<<basedir>>>: the base directory of your script
-
-  * <<<context>>>: the build context (see below)
-
-  []
-
-   You can add more global variables as it.
-
-+---------
-try (ScriptRunner scriptRunner = new ScriptRunner()) {
-    scriptRunner.setGlobalVariable( name, value );
-    ...
-}
-+---------
-
-** Build context
-
-  You can pass some values to your script using an execution context which 
have the type <<<Map<String, ? extends Object> context>>>:
-
-+---------
-private Map<String, Object> buildContext() {
-    Map<String, Object> context = new HashMap<String, Object>();
-    context.put("foo", "bar");
-    return context;
-}
-+---------
-
-  Then values are available in scripts context:
-
-+---------
-// in your bsh script
-String value = context.get( "foo" );
-+---------
-
-    value will be "bar"
-
-+---------
-// in your Groovy script
-context.get("foo")
-+---------
-
-** Additional classpath entries
-
-  You can add some additional classpath entries for your script execution
-
-+---------
-List<String> classpathEntries = list of jar paths
-
-try (ScriptRunner scriptRunner = new ScriptRunner()) {
-    scriptRunner.setClassPath( classpathEntries );
-    scriptRunner.run("test", new File("src/test/resources/bsh-test"), 
"verify", buildContext(),
-            new FileLogger(logFile));
- }
-+---------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/maven-script-interpreter-1.7/src/site/markdown/index.md.vm 
new/maven-script-interpreter-1.8/src/site/markdown/index.md.vm
--- old/maven-script-interpreter-1.7/src/site/markdown/index.md.vm      
1970-01-01 01:00:00.000000000 +0100
+++ new/maven-script-interpreter-1.8/src/site/markdown/index.md.vm      
2026-09-01 06:09:38.000000000 +0200
@@ -0,0 +1,139 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+# ${project.name}
+
+This component provides some utilities to interpret/execute some scripts for 
various implementations: groovy or beanshell.
+
+Dependency declaration
+----------------------
+
+```unknown
+<dependency>
+  <groupId>org.apache.maven.shared</groupId>
+  <artifactId>maven-script-interpreter</artifactId>
+  <version>${project.version}</version>
+</dependency>
+```
+
+`maven-script-interpreter` has dependency only to core interpreters library, 
all specific extensions should be added in your project.
+
+For example, if you want to use 
[**Grape**](https://docs.groovy-lang.org/latest/html/documentation/grape.html) 
in a **Groovy** script, you must add a dependency to Ivy in your project or in 
the plugin that will invoke the script:
+
+```unknown
+<dependency>
+  <groupId>org.apache.ivy</groupId>
+  <artifactId>ivy</artifactId>
+  <version>...</version>
+</dependency>
+```
+
+Using ScriptRunner
+------------------
+
+`ScriptRunner` class will detect the script file to run based on supported 
extensions (`.bsh`, `.groovy`).
+
+This class will search in the provided directory the script with the provided 
fileName and the supported extensions.
+
+See 
[javadoc](./apidocs/org/apache/maven/shared/scriptinterpreter/ScriptRunner.html)
 for `run(...)` methods.
+
+```unknown
+try (ScriptRunner scriptRunner = new ScriptRunner()) {
+    scriptRunner.run("test", new File("src/test/resources/bsh-test"), 
"verify", buildContext(),
+            new FileLogger(logFile));
+}
+```
+
+Mirror output from script interpreter
+-------------------------------------
+
+In order to do something more with script output, eg. log by your application 
you must implement `FileLoggerMirrorHandler`
+
+```unknown
+class MyMirrorHandler implements FileLoggerMirrorHandler {
+    void consumeOutput(String message) {
+        // this method is invoked every time when flush occurs on the 
underlying stream.
+    }
+}
+```
+
+Now use it:
+
+```unknown
+try (ScriptRunner scriptRunner = new ScriptRunner()) {
+    scriptRunner.run("test", new File("src/test/resources/bsh-test"), 
"verify", buildContext(),
+            new FileLogger(logFile, new MyMirrorHandler()));
+}
+```
+
+#[[### Global variables]]#
+
+Your scripts will have by default two global variables:
+
+- `basedir`: the base directory of your script
+- `context`: the build context (see below)
+
+You can add more global variables as it.
+
+```unknown
+try (ScriptRunner scriptRunner = new ScriptRunner()) {
+    scriptRunner.setGlobalVariable( name, value );
+    ...
+}
+```
+
+#[[### Build context]]#
+
+You can pass some values to your script using an execution context which have 
the type `Map<String, ? extends Object> context`:
+
+```unknown
+private Map<String, Object> buildContext() {
+    Map<String, Object> context = new HashMap<String, Object>();
+    context.put("foo", "bar");
+    return context;
+}
+```
+
+Then values are available in scripts context:
+
+```unknown
+// in your bsh script
+String value = context.get( "foo" );
+```
+
+value will be "bar"
+
+```unknown
+// in your Groovy script
+context.get("foo")
+```
+
+#[[### Additional classpath entries]]#
+
+You can add some additional classpath entries for your script execution
+
+```unknown
+List<String> classpathEntries = list of jar paths
+
+try (ScriptRunner scriptRunner = new ScriptRunner()) {
+    scriptRunner.setClassPath( classpathEntries );
+    scriptRunner.run("test", new File("src/test/resources/bsh-test"), 
"verify", buildContext(),
+            new FileLogger(logFile));
+ }
+```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/maven-script-interpreter-1.7/src/test/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreterTest.java
 
new/maven-script-interpreter-1.8/src/test/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreterTest.java
--- 
old/maven-script-interpreter-1.7/src/test/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreterTest.java
   2026-04-14 20:26:16.000000000 +0200
+++ 
new/maven-script-interpreter-1.8/src/test/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreterTest.java
   2026-09-01 06:09:38.000000000 +0200
@@ -96,4 +96,24 @@
         }
         assertEquals("data", out.toString());
     }
+
+    @Test
+    void evaluateScriptWithTargetBytecode() throws Exception {
+        ByteArrayOutputStream out = new ByteArrayOutputStream();
+        try (ScriptInterpreter interpreter = new GroovyScriptInterpreter()) {
+            interpreter.setTargetBytecode("8");
+            assertEquals(
+                    Boolean.TRUE,
+                    interpreter.evaluateScript("print \"Test\"\nreturn true", 
null, new PrintStream(out)));
+        }
+        assertEquals("Test", out.toString());
+    }
+
+    @Test
+    void normalizeTargetBytecodeMapsOldJdksToDotForm() {
+        assertEquals("1.4", 
GroovyScriptInterpreter.normalizeTargetBytecode("4"));
+        assertEquals("1.8", 
GroovyScriptInterpreter.normalizeTargetBytecode("8"));
+        assertEquals("9", 
GroovyScriptInterpreter.normalizeTargetBytecode("9"));
+        assertEquals("17", 
GroovyScriptInterpreter.normalizeTargetBytecode("17"));
+    }
 }

++++++ maven-script-interpreter-build.xml ++++++
--- /var/tmp/diff_new_pack.mWmFaL/_old  2026-09-11 18:07:32.386424320 +0200
+++ /var/tmp/diff_new_pack.mWmFaL/_new  2026-09-11 18:07:32.390424488 +0200
@@ -10,7 +10,7 @@
 
   <property name="project.groupId" value="org.apache.maven.shared"/>
   <property name="project.artifactId" value="maven-script-interpreter"/>
-  <property name="project.version" value="1.7"/>
+  <property name="project.version" value="1.8"/>
   <property name="project.name" value="Apache Maven Script Interpreter"/>
   <property name="project.organization.name" value="The Apache Software 
Foundation"/>
 

Reply via email to