Registry / other / groovy-jsr223

groovy-jsr223

JSON →
library3.0.25javamavenunverified

Groovy JSR 223 provides the scripting engine for Groovy, allowing it to be used as a JSR 223 scripting language in Java applications.

<dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-jsr223</artifactId> <version>3.0.25</version> </dependency>
INSTALL
IMPORT
SIG · GROOVY-JSR223
G
groovy-jsr223
otherjavav3.0.25
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ScriptEngineManager
javax.script.ScriptEngineManager

Evaluates a simple Groovy expression using the JSR 223 scripting engine.

import javax.script.ScriptEngineManager; import javax.script.ScriptEngine; public class Example { public static void main(String[] args) throws Exception { ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine engine = manager.getEngineByName("groovy"); Object result = engine.eval("2 + 2"); System.out.println(result); // prints 4 } }
Debug
Known issues
breakingGroovy 3.x requires Java 8+; Groovy 4.x requires Java 11+. Ensure compatibility with your Java version.
fix
Use Groovy 3.x for Java 8-10, or upgrade to Java 11+ for Groovy 4.x.
affects: >=4.0.0
Upgrade
Version history
3.0.25latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
groovy-jsr223 — mvn dependency:get groovy-jsr223 · libregistry