Skip to content

Commit

Permalink
Version bump and adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlasov committed Oct 5, 2024
1 parent c39aac8 commit 53f7e8d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 50 deletions.
38 changes: 21 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.nasdanika</groupId>
<version>2024.9.0-SNAPSHOT</version>
<version>2024.10.0</version>
<artifactId>cli-launcher</artifactId>
<packaging>jar</packaging>
<name>Nasdanika CLI launcher</name>
Expand All @@ -27,48 +27,52 @@
<dependency>
<groupId>org.nasdanika.html</groupId>
<artifactId>app-model-gen-cli</artifactId>
<version>2024.9.0-SNAPSHOT</version>
<version>2024.10.0</version>
</dependency>
<dependency>
<groupId>org.nasdanika.models.java</groupId>
<artifactId>cli</artifactId>
<version>2024.8.0</version>
<version>2024.10.0</version>
</dependency>
<dependency>
<groupId>org.nasdanika.models.rules</groupId>
<artifactId>cli</artifactId>
<version>2024.8.0</version>
<version>2024.10.0</version>
</dependency>
<dependency>
<groupId>org.nasdanika.models.architecture</groupId>
<artifactId>model</artifactId>
<version>2024.8.0</version>
<version>2024.10.0</version>
</dependency>
<dependency>
<groupId>org.nasdanika.core</groupId>
<artifactId>http</artifactId>
<version>2024.9.0-SNAPSHOT</version>
<version>2024.10.0</version>
</dependency>
<dependency>
<groupId>org.nasdanika.core</groupId>
<artifactId>groovy</artifactId>
<version>2024.10.0</version>
</dependency>
<dependency>
<groupId>org.nasdanika.core</groupId>
<artifactId>maven</artifactId>
<version>2024.9.0-SNAPSHOT</version>
<version>2024.10.0</version>
</dependency>
<dependency>
<groupId>org.nasdanika.models.echarts</groupId>
<artifactId>graph</artifactId>
<version>2024.8.0</version>
<version>2024.10.0</version>
</dependency>
<dependency>
<groupId>org.nasdanika.models.ecore</groupId>
<artifactId>cli</artifactId>
<version>2024.8.0</version>
<version>2024.10.0</version>
</dependency>

<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>4.0.22</version>
<version>4.0.23</version>
<type>pom</type>
</dependency>

Expand All @@ -83,13 +87,13 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.10.2</version>
<version>5.11.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.10.2</version>
<version>5.11.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -108,7 +112,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.7.1</version>
<version>3.8.0</version>
<executions>
<execution>
<id>copy-dependencies</id>
Expand All @@ -129,7 +133,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.3.0</version>
<version>3.5.0</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -187,7 +191,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.7.0</version>
<version>3.10.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down Expand Up @@ -242,7 +246,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<version>3.2.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down

This file was deleted.

23 changes: 23 additions & 0 deletions src/test/java/org/nasdanika/launcher/tests/TestGroovy.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import javax.script.ScriptException;

import org.junit.jupiter.api.Test;
import org.nasdanika.common.Invocable;

public class TestGroovy {

Expand Down Expand Up @@ -40,5 +41,27 @@ def annotatedMethod() {
}
}
}

@Test
public void testAnomymous() throws ScriptException {
String source = """
new org.nasdanika.common.Invocable() {
def invoke(Object... args) {
System.out.println(args);
args[0] + 55;
}
}
""";

ScriptEngineManager sem = new ScriptEngineManager();
ScriptEngine scriptEngine = sem.getEngineByName("groovy");
Object result = scriptEngine.eval(source);
Object resultResult = ((Invocable) result).invoke(33);
System.out.println(resultResult);
}


}

0 comments on commit 53f7e8d

Please sign in to comment.