From a3aca5f40535856c3a80e56da41f51f74a908028 Mon Sep 17 00:00:00 2001 From: andreatp Date: Wed, 25 Mar 2026 15:12:11 +0000 Subject: [PATCH] Use chicory-compiler-maven-plugin moduleInterface instead of annotation processor Replace the @WasmModuleInterface annotation-based approach with the new moduleInterface config on the chicory-compiler-maven-plugin, removing the need for the chicory annotations dependency, annotation processor, and WasmResource template. Co-Authored-By: Claude Opus 4.6 (1M context) --- core/pom.xml | 20 ++----------------- .../quickjs4j/core/WasmResource.java | 7 ------- .../io/roastedroot/quickjs4j/core/Engine.java | 2 -- pom.xml | 1 - processor/pom.xml | 1 - 5 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 core/src/main/java-templates/io/roastedroot/quickjs4j/core/WasmResource.java diff --git a/core/pom.xml b/core/pom.xml index 7de7809..7570701 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -14,11 +14,6 @@ QuickJs4J - - com.dylibso.chicory - annotations - ${chicory.version} - com.dylibso.chicory runtime @@ -73,6 +68,7 @@ io.roastedroot.quickjs4j.core.JavyPluginModule ../javy_quickjs4j_plugin.wasm + io.roastedroot.quickjs4j.core.Engine @@ -92,19 +88,6 @@ - - org.apache.maven.plugins - maven-compiler-plugin - - - - com.dylibso.chicory - annotations-processor - ${chicory.version} - - - - org.codehaus.mojo templating-maven-plugin @@ -117,6 +100,7 @@ + diff --git a/core/src/main/java-templates/io/roastedroot/quickjs4j/core/WasmResource.java b/core/src/main/java-templates/io/roastedroot/quickjs4j/core/WasmResource.java deleted file mode 100644 index ca04eda..0000000 --- a/core/src/main/java-templates/io/roastedroot/quickjs4j/core/WasmResource.java +++ /dev/null @@ -1,7 +0,0 @@ -package io.roastedroot.quickjs4j.core; - -public final class WasmResource { - public static final String absoluteFile = "file://${project.basedir}/../javy_quickjs4j_plugin.wasm"; - - private WasmResource() {} -} diff --git a/core/src/main/java/io/roastedroot/quickjs4j/core/Engine.java b/core/src/main/java/io/roastedroot/quickjs4j/core/Engine.java index c02f606..8c54876 100644 --- a/core/src/main/java/io/roastedroot/quickjs4j/core/Engine.java +++ b/core/src/main/java/io/roastedroot/quickjs4j/core/Engine.java @@ -2,7 +2,6 @@ import static java.nio.charset.StandardCharsets.UTF_8; -import com.dylibso.chicory.annotations.WasmModuleInterface; import com.dylibso.chicory.log.Logger; import com.dylibso.chicory.log.SystemLogger; import com.dylibso.chicory.runtime.ByteArrayMemory; @@ -26,7 +25,6 @@ import java.util.Map; import java.util.function.Function; -@WasmModuleInterface(WasmResource.absoluteFile) public final class Engine implements AutoCloseable { private static final int ALIGNMENT = 1; diff --git a/pom.xml b/pom.xml index 41dc2a6..adc3d73 100644 --- a/pom.xml +++ b/pom.xml @@ -98,7 +98,6 @@ true 11 - true diff --git a/processor/pom.xml b/processor/pom.xml index 5e9b22c..7348f65 100644 --- a/processor/pom.xml +++ b/processor/pom.xml @@ -42,7 +42,6 @@ true 11 - true -proc:none