From d02c464c2ebb05f202ac5eb3cd9faf9ecceef0fa Mon Sep 17 00:00:00 2001 From: Hamza JGUERIM Date: Tue, 27 Apr 2021 18:12:15 +0100 Subject: [PATCH 1/9] Working On GraalVM Support.. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 508de8c..00a8871 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.0.0 + 3.1.1 attach-javadocs From f1dea8cfd54f33b305b63f46e3cd977069162a13 Mon Sep 17 00:00:00 2001 From: Hamza JGUERIM Date: Sat, 1 May 2021 19:47:51 +0100 Subject: [PATCH 2/9] Working On GraalVM Support.. --- pom-relocation.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom-relocation.xml b/pom-relocation.xml index b1418dc..6be6925 100644 --- a/pom-relocation.xml +++ b/pom-relocation.xml @@ -67,7 +67,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.0.0 + 3.1.1 attach-javadocs From cff32456b08f8147338926c1d02a8bd13c5332f5 Mon Sep 17 00:00:00 2001 From: Hamza JGUERIM Date: Mon, 3 May 2021 22:07:25 +0100 Subject: [PATCH 3/9] Adding GraalVM Support.. --- pom.xml | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 421e2c7..f3fd03a 100644 --- a/pom.xml +++ b/pom.xml @@ -31,6 +31,7 @@ UTF-8 1.8 1.8 + 21.1.0 @@ -111,18 +112,54 @@ argon2-jvm 2.4 + + org.graalvm.sdk + graal-sdk + ${graalvm.version} + provided + ossrh-snapshots https://oss.sonatype.org/content/repositories/snapshots/ - false - true + + false + + + true + + + native-image + + + + org.graalvm.nativeimage + native-image-maven-plugin + ${graalvm.version} + + + + native-image + + package + + + + ${project.name} + + --no-fallback --shared + + + + + + sign-artifacts From 829e94728f567395c14f1cd078b4e5403b9f0d25 Mon Sep 17 00:00:00 2001 From: Hamza JGUERIM Date: Fri, 7 May 2021 22:48:10 +0100 Subject: [PATCH 4/9] Working On GraalVM Support.. --- .../xoom/common/implnative/NativeImpl.java | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java diff --git a/src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java b/src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java new file mode 100644 index 0000000..f3956f1 --- /dev/null +++ b/src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java @@ -0,0 +1,51 @@ +package io.vlingo.xoom.common.implnative; + +import io.vlingo.xoom.common.identity.IdentityGenerator; +import io.vlingo.xoom.common.message.Message; +import io.vlingo.xoom.common.message.MessageExchangeReader; +import org.graalvm.nativeimage.c.function.CEntryPoint; +import org.graalvm.nativeimage.c.type.CCharPointer; +import org.graalvm.nativeimage.c.type.CTypeConversion; + +import java.util.Date; + +public final class NativeImpl { + @CEntryPoint(name = "Java_io_vlingo_xoom_commonnative_Native_from") + public static int from(@CEntryPoint.IsolateThreadContext long isolateId, CCharPointer message) { + final String messageString = CTypeConversion.toJavaString(message); + MessageExchangeReader.from(new Message() { + + @Override + public String id() { + // TODO Auto-generated method stub + return new IdentityGenerator.NameBasedIdentityGenerator().generate().toString(); + } + + @Override + public Date occurredOn() { + // TODO Auto-generated method stub + return null; + } + + @Override + public String payload() { + // TODO Auto-generated method stub + return messageString; + } + + @Override + public String type() { + // TODO Auto-generated method stub + return null; + } + + @Override + public String version() { + // TODO Auto-generated method stub + return null; + } + + }); + return 0; + } +} From 0a84cd6c43b9f15a96bf4c560377a24276e86691 Mon Sep 17 00:00:00 2001 From: Hamza JGUERIM Date: Sat, 8 May 2021 00:40:58 +0100 Subject: [PATCH 5/9] Adding GraalVM Dashboard Support.. --- pom.xml | 500 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 252 insertions(+), 248 deletions(-) diff --git a/pom.xml b/pom.xml index 584d60c..bb59379 100644 --- a/pom.xml +++ b/pom.xml @@ -1,255 +1,259 @@ - - 4.0.0 - io.vlingo.xoom - xoom-common - 1.7.7-SNAPSHOT - jar - xoom-common - These are just a few common tools shared across various vlingo projects. - https://github.com/vlingo/xoom-common - - - Mozilla Public License 2.0 - https://mozilla.org/MPL/2.0/ - - - - - vlingo - VLINGO XOOM Team - info@vlingo.io - vlingo - https://vlingo.io/about/#community - - - - scm:git:git://github.com/vlingo/xoom-common.git - scm:git:ssh://github.com/vlingo/xoom-common.git - http://github.com/vlingo/xoom-common/tree/master - - - UTF-8 - 1.8 - 1.8 - 21.1.0 - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.22.2 - - - firefox - - -Xmx1024m - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.2.0 - - - attach-javadocs - - jar - - - - - - - - - junit - junit - 4.13.1 - test - - - com.github.stefanbirkner - system-rules - 1.19.0 - test - - - com.google.code.gson - gson - 2.8.6 - - - com.fasterxml.uuid - java-uuid-generator - 3.3.0 - - - com.lambdaworks - scrypt - 1.4.0 - - - org.mindrot - jbcrypt - 0.4 - - - de.mkammerer - argon2-jvm - 2.10.1 - - - org.graalvm.sdk - graal-sdk - ${graalvm.version} - provided - - - - - - ossrh-snapshots - https://oss.sonatype.org/content/repositories/snapshots/ - - false - - - true - - - - - - - native-image - - - - org.graalvm.nativeimage - native-image-maven-plugin - ${graalvm.version} - - - - native-image - - package - - - - ${project.name} - - --no-fallback --shared - - - - - - - - sign-artifacts - - - signArtifacts - true - - - + + 4.0.0 + io.vlingo.xoom + xoom-common + 1.7.7-SNAPSHOT + jar + xoom-common + These are just a few common tools shared across various vlingo projects. + https://github.com/vlingo/xoom-common + + + Mozilla Public License 2.0 + https://mozilla.org/MPL/2.0/ + + + + + vlingo + VLINGO XOOM Team + info@vlingo.io + vlingo + https://vlingo.io/about/#community + + + + scm:git:git://github.com/vlingo/xoom-common.git + scm:git:ssh://github.com/vlingo/xoom-common.git + http://github.com/vlingo/xoom-common/tree/master + + + UTF-8 + 1.8 + 1.8 + 21.1.0 + + - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 - - --pinentry-mode - loopback - + + firefox + + -Xmx1024m - - - - - - - - sonatype - - - useSonatype - true - - - - - central-repository-ossrh - Snapshots Repository OSSRH - https://oss.sonatype.org/content/repositories/snapshots - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 - true - - central-repository-ossrh - https://oss.sonatype.org/ - true - - + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.2.0 + + + attach-javadocs + + jar + + + + - - - - github - - - useGitHubPackages - true - - - - - github - GitHub Packages - https://maven.pkg.github.com/vlingo/xoom-platform - - - - - - github-releases - + + + + junit + junit + 4.13.1 + test + + + com.github.stefanbirkner + system-rules + 1.19.0 + test + + + com.google.code.gson + gson + 2.8.6 + + + com.fasterxml.uuid + java-uuid-generator + 3.3.0 + + + com.lambdaworks + scrypt + 1.4.0 + + + org.mindrot + jbcrypt + 0.4 + + + de.mkammerer + argon2-jvm + 2.10.1 + + + org.graalvm.sdk + graal-sdk + ${graalvm.version} + provided + + + + - github - GitHub Packages - https://maven.pkg.github.com/vlingo/xoom-platform + ossrh-snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + false + + + true + - - - + + + + + native-image + + + + org.graalvm.nativeimage + native-image-maven-plugin + ${graalvm.version} + + + + native-image + + package + + + + ${project.name} + + --shared + -H:DashboardDump=${project.name} -H:+DashboardAll + -H:+DashboardJson -H:+DashboardPretty + + + + + + + + sign-artifacts + + + signArtifacts + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + sonatype + + + useSonatype + true + + + + + central-repository-ossrh + Snapshots Repository OSSRH + https://oss.sonatype.org/content/repositories/snapshots + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + central-repository-ossrh + https://oss.sonatype.org/ + true + + + + + + + github + + + useGitHubPackages + true + + + + + github + GitHub Packages + https://maven.pkg.github.com/vlingo/xoom-platform + + + + + + github-releases + + + github + GitHub Packages + https://maven.pkg.github.com/vlingo/xoom-platform + + + + From 8d0aa75064790089c9a7a9ae68d1915ac3e56c22 Mon Sep 17 00:00:00 2001 From: Hamza JGUERIM Date: Tue, 11 May 2021 04:25:16 +0100 Subject: [PATCH 6/9] Fixing Indentation.. --- pom.xml | 498 +++++++++--------- .../xoom/common/implnative/NativeImpl.java | 76 +-- 2 files changed, 287 insertions(+), 287 deletions(-) diff --git a/pom.xml b/pom.xml index bb59379..65456aa 100644 --- a/pom.xml +++ b/pom.xml @@ -1,259 +1,259 @@ - 4.0.0 - io.vlingo.xoom - xoom-common - 1.7.7-SNAPSHOT - jar - xoom-common - These are just a few common tools shared across various vlingo projects. - https://github.com/vlingo/xoom-common - - - Mozilla Public License 2.0 - https://mozilla.org/MPL/2.0/ - - - - - vlingo - VLINGO XOOM Team - info@vlingo.io - vlingo - https://vlingo.io/about/#community - - - - scm:git:git://github.com/vlingo/xoom-common.git - scm:git:ssh://github.com/vlingo/xoom-common.git - http://github.com/vlingo/xoom-common/tree/master - - - UTF-8 - 1.8 - 1.8 - 21.1.0 - - + 4.0.0 + io.vlingo.xoom + xoom-common + 1.7.7-SNAPSHOT + jar + xoom-common + These are just a few common tools shared across various vlingo projects. + https://github.com/vlingo/xoom-common + + + Mozilla Public License 2.0 + https://mozilla.org/MPL/2.0/ + + + + + vlingo + VLINGO XOOM Team + info@vlingo.io + vlingo + https://vlingo.io/about/#community + + + + scm:git:git://github.com/vlingo/xoom-common.git + scm:git:ssh://github.com/vlingo/xoom-common.git + http://github.com/vlingo/xoom-common/tree/master + + + UTF-8 + 1.8 + 1.8 + 21.1.0 + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + firefox + + -Xmx1024m + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.2.0 + + + attach-javadocs + + jar + + + + + + + + + junit + junit + 4.13.1 + test + + + com.github.stefanbirkner + system-rules + 1.19.0 + test + + + com.google.code.gson + gson + 2.8.6 + + + com.fasterxml.uuid + java-uuid-generator + 3.3.0 + + + com.lambdaworks + scrypt + 1.4.0 + + + org.mindrot + jbcrypt + 0.4 + + + de.mkammerer + argon2-jvm + 2.10.1 + + + org.graalvm.sdk + graal-sdk + ${graalvm.version} + provided + + + + + + ossrh-snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + false + + + true + + + + + + + native-image + + + + org.graalvm.nativeimage + native-image-maven-plugin + ${graalvm.version} + + + + native-image + + package + + + + ${project.name} + + --shared + -H:DashboardDump=${project.name} -H:+DashboardAll + -H:+DashboardJson -H:+DashboardPretty + + + + + + + + sign-artifacts + + + signArtifacts + true + + + - - org.apache.maven.plugins - maven-surefire-plugin - 2.22.2 + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + - - firefox - - -Xmx1024m + + --pinentry-mode + loopback + - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - - jar - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.2.0 - - - attach-javadocs - - jar - - - - + + + - - - - junit - junit - 4.13.1 - test - - - com.github.stefanbirkner - system-rules - 1.19.0 - test - - - com.google.code.gson - gson - 2.8.6 - - - com.fasterxml.uuid - java-uuid-generator - 3.3.0 - - - com.lambdaworks - scrypt - 1.4.0 - - - org.mindrot - jbcrypt - 0.4 - - - de.mkammerer - argon2-jvm - 2.10.1 - - - org.graalvm.sdk - graal-sdk - ${graalvm.version} - provided - - - - + + + + sonatype + + + useSonatype + true + + + + + central-repository-ossrh + Snapshots Repository OSSRH + https://oss.sonatype.org/content/repositories/snapshots + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + central-repository-ossrh + https://oss.sonatype.org/ + true + + + + + + + github + + + useGitHubPackages + true + + + - ossrh-snapshots - https://oss.sonatype.org/content/repositories/snapshots/ - - false - - - true - + github + GitHub Packages + https://maven.pkg.github.com/vlingo/xoom-platform - - - - - native-image - - - - org.graalvm.nativeimage - native-image-maven-plugin - ${graalvm.version} - - - - native-image - - package - - - - ${project.name} - - --shared - -H:DashboardDump=${project.name} -H:+DashboardAll - -H:+DashboardJson -H:+DashboardPretty - - - - - - - - sign-artifacts - - - signArtifacts - true - - - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - - - sign-artifacts - verify - - sign - - - - --pinentry-mode - loopback - - - - - - - - - - sonatype - - - useSonatype - true - - - - - central-repository-ossrh - Snapshots Repository OSSRH - https://oss.sonatype.org/content/repositories/snapshots - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 - true - - central-repository-ossrh - https://oss.sonatype.org/ - true - - - - - - - github - - - useGitHubPackages - true - - - - - github - GitHub Packages - https://maven.pkg.github.com/vlingo/xoom-platform - - - - - - github-releases - - - github - GitHub Packages - https://maven.pkg.github.com/vlingo/xoom-platform - - - - + + + + + github-releases + + + github + GitHub Packages + https://maven.pkg.github.com/vlingo/xoom-platform + + + + diff --git a/src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java b/src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java index f3956f1..5c562d6 100644 --- a/src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java +++ b/src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java @@ -10,42 +10,42 @@ import java.util.Date; public final class NativeImpl { - @CEntryPoint(name = "Java_io_vlingo_xoom_commonnative_Native_from") - public static int from(@CEntryPoint.IsolateThreadContext long isolateId, CCharPointer message) { - final String messageString = CTypeConversion.toJavaString(message); - MessageExchangeReader.from(new Message() { - - @Override - public String id() { - // TODO Auto-generated method stub - return new IdentityGenerator.NameBasedIdentityGenerator().generate().toString(); - } - - @Override - public Date occurredOn() { - // TODO Auto-generated method stub - return null; - } - - @Override - public String payload() { - // TODO Auto-generated method stub - return messageString; - } - - @Override - public String type() { - // TODO Auto-generated method stub - return null; - } - - @Override - public String version() { - // TODO Auto-generated method stub - return null; - } - - }); - return 0; - } + @CEntryPoint(name = "Java_io_vlingo_xoom_commonnative_Native_from") + public static int from(@CEntryPoint.IsolateThreadContext long isolateId, CCharPointer message) { + final String messageString = CTypeConversion.toJavaString(message); + MessageExchangeReader.from(new Message() { + + @Override + public String id() { + // TODO Auto-generated method stub + return new IdentityGenerator.NameBasedIdentityGenerator().generate().toString(); + } + + @Override + public Date occurredOn() { + // TODO Auto-generated method stub + return null; + } + + @Override + public String payload() { + // TODO Auto-generated method stub + return messageString; + } + + @Override + public String type() { + // TODO Auto-generated method stub + return null; + } + + @Override + public String version() { + // TODO Auto-generated method stub + return null; + } + + }); + return 0; + } } From 26374f3380b9ddfe15e3188fff9b39b4aa0c7775 Mon Sep 17 00:00:00 2001 From: Hamza JGUERIM Date: Wed, 19 May 2021 19:57:03 +0100 Subject: [PATCH 7/9] Refactoring.. --- .../implnative/{NativeImpl.java => NativeBuildEntryPoint.java} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/main/java/io/vlingo/xoom/common/implnative/{NativeImpl.java => NativeBuildEntryPoint.java} (96%) diff --git a/src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java b/src/main/java/io/vlingo/xoom/common/implnative/NativeBuildEntryPoint.java similarity index 96% rename from src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java rename to src/main/java/io/vlingo/xoom/common/implnative/NativeBuildEntryPoint.java index 5c562d6..4617480 100644 --- a/src/main/java/io/vlingo/xoom/common/implnative/NativeImpl.java +++ b/src/main/java/io/vlingo/xoom/common/implnative/NativeBuildEntryPoint.java @@ -9,7 +9,7 @@ import java.util.Date; -public final class NativeImpl { +public final class NativeBuildEntryPoint { @CEntryPoint(name = "Java_io_vlingo_xoom_commonnative_Native_from") public static int from(@CEntryPoint.IsolateThreadContext long isolateId, CCharPointer message) { final String messageString = CTypeConversion.toJavaString(message); From c91a2023a511479c9977392ed1b9545d54d3952e Mon Sep 17 00:00:00 2001 From: Hamza JGUERIM Date: Wed, 19 May 2021 21:05:35 +0100 Subject: [PATCH 8/9] Refactoring.. --- .../{implnative => nativebuild}/NativeBuildEntryPoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/main/java/io/vlingo/xoom/common/{implnative => nativebuild}/NativeBuildEntryPoint.java (96%) diff --git a/src/main/java/io/vlingo/xoom/common/implnative/NativeBuildEntryPoint.java b/src/main/java/io/vlingo/xoom/common/nativebuild/NativeBuildEntryPoint.java similarity index 96% rename from src/main/java/io/vlingo/xoom/common/implnative/NativeBuildEntryPoint.java rename to src/main/java/io/vlingo/xoom/common/nativebuild/NativeBuildEntryPoint.java index 4617480..3761713 100644 --- a/src/main/java/io/vlingo/xoom/common/implnative/NativeBuildEntryPoint.java +++ b/src/main/java/io/vlingo/xoom/common/nativebuild/NativeBuildEntryPoint.java @@ -1,4 +1,4 @@ -package io.vlingo.xoom.common.implnative; +package io.vlingo.xoom.common.nativebuild; import io.vlingo.xoom.common.identity.IdentityGenerator; import io.vlingo.xoom.common.message.Message; From 35aef5eaffafbb343e2f9ba93852f314e815f834 Mon Sep 17 00:00:00 2001 From: Hamza JGUERIM Date: Thu, 20 May 2021 09:23:44 +0100 Subject: [PATCH 9/9] Refactoring.. --- .../xoom/common => }/nativebuild/NativeBuildEntryPoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/main/java/{io/vlingo/xoom/common => }/nativebuild/NativeBuildEntryPoint.java (96%) diff --git a/src/main/java/io/vlingo/xoom/common/nativebuild/NativeBuildEntryPoint.java b/src/main/java/nativebuild/NativeBuildEntryPoint.java similarity index 96% rename from src/main/java/io/vlingo/xoom/common/nativebuild/NativeBuildEntryPoint.java rename to src/main/java/nativebuild/NativeBuildEntryPoint.java index 3761713..536f3d2 100644 --- a/src/main/java/io/vlingo/xoom/common/nativebuild/NativeBuildEntryPoint.java +++ b/src/main/java/nativebuild/NativeBuildEntryPoint.java @@ -1,4 +1,4 @@ -package io.vlingo.xoom.common.nativebuild; +package nativebuild; import io.vlingo.xoom.common.identity.IdentityGenerator; import io.vlingo.xoom.common.message.Message;