Migrate Zip sample from SI-Extensions

* Migrate `cafe-scripted` to GraalVM Polyglot
* Fix emails for authors
* Upgrade some deps
This commit is contained in:
Artem Bilan
2024-10-03 16:33:51 -04:00
parent 8cbb6311f7
commit 580f19f025
75 changed files with 4354 additions and 741 deletions

View File

@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.integration.samples</groupId>
<artifactId>cafe-scripted</artifactId>
<version>6.2.0</version>
<version>6.4.0</version>
<url>https://github.com/spring-projects/spring-integration-samples</url>
<organization>
<name>Spring IO</name>
@@ -20,7 +20,7 @@
<developer>
<id>artembilan</id>
<name>Artem Bilan</name>
<email>abilan@vmware.com</email>
<email>artem.bilan@broadcom.com</email>
<roles>
<role>project lead</role>
</roles>
@@ -28,7 +28,7 @@
<developer>
<id>garyrussell</id>
<name>Gary Russell</name>
<email>grussell@vmware.com</email>
<email>github@gprussell.net</email>
<roles>
<role>project lead emeritus</role>
</roles>
@@ -36,7 +36,7 @@
<developer>
<id>markfisher</id>
<name>Mark Fisher</name>
<email>markfisher@vmware.com</email>
<email>mark.ryan.fisher@gmail.com</email>
<roles>
<role>project founder and lead emeritus</role>
</roles>
@@ -75,25 +75,31 @@
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>9.4.3.0</version>
<version>9.4.7.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.python</groupId>
<artifactId>jython-standalone</artifactId>
<version>2.7.3</version>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
<version>24.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.graalvm.polyglot</groupId>
<artifactId>python</artifactId>
<version>24.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-jsr223</artifactId>
<version>4.0.15</version>
<version>4.0.23</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.21.1</version>
<version>2.23.1</version>
<scope>compile</scope>
</dependency>
<dependency>
@@ -111,7 +117,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.7.0</version>
<version>5.12.0</version>
<scope>test</scope>
</dependency>
<dependency>
@@ -145,28 +151,28 @@
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.10.1</version>
<version>5.11.1</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>2.15.3</version>
<version>2.18.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>6.1.0</version>
<version>6.2.0-SNAPSHOT</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-bom</artifactId>
<version>6.2.0</version>
<version>6.4.0-SNAPSHOT</version>
<scope>import</scope>
<type>pom</type>
</dependency>

View File

@@ -16,6 +16,7 @@ package org.springframework.integration.samples.cafe;
import java.util.HashMap;
import java.util.Map;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.core.io.FileSystemResource;
@@ -51,6 +52,7 @@ public class ScriptTests {
}
@Test
@Ignore
public void testPython() {
ScriptExecutor executor = ScriptExecutorFactory.getScriptExecutor("python");
Order order = new Order(0);