diff --git a/.gitignore b/.gitignore index 218a76cd00..9f59c7f282 100644 --- a/.gitignore +++ b/.gitignore @@ -42,6 +42,7 @@ out.svg /java/org/ruby_lang/prism/AbstractNodeVisitor.java /java/org/ruby_lang/prism/Loader.java /java/org/ruby_lang/prism/Nodes.java +/java-wasm/src/test/resources/prism.wasm /lib/prism/compiler.rb /lib/prism/dispatcher.rb /lib/prism/dot_visitor.rb diff --git a/java-wasm/README.md b/java-wasm/README.md index 2ff93a66d7..1c9eaee85e 100644 --- a/java-wasm/README.md +++ b/java-wasm/README.md @@ -1,5 +1,7 @@ This dir contains the chicory-prism artifact, a version of prism compiled to WASM and then AOT compiled to JVM bytecode by the Chicory project. +## Building + Generate the templated sources: ``` @@ -21,3 +23,7 @@ mvn -f java-wasm/pom.xml clean package This should build the chicory-wasm jar file and pass some basic tests. The jar will be under `java-wasm/target/chicory-prism-#####-SNAPSHOT.jar` or can be installed by using `install` instead of `pacakge` in the `mvn` command line above. + +## Releasing + +Pass `-Prelease` to enable release plugins for Maven Central (optional for snapshots) and run the `deploy` target for `mvn`. diff --git a/java-wasm/pom.xml b/java-wasm/pom.xml index 587e094ab7..67c9316f77 100644 --- a/java-wasm/pom.xml +++ b/java-wasm/pom.xml @@ -62,10 +62,64 @@ org.jruby jruby-complete - 10.0.2.0 + 10.0.3.0 + + + release + + + + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + none + + + + maven-gpg-plugin + 3.2.4 + + + sign-artifacts + verify + + sign + + + + + + --pinentry-mode + loopback + + + + + + + + @@ -97,26 +151,26 @@ - org.apache.maven.plugins - maven-surefire-plugin - 3.5.4 + org.apache.maven.plugins + maven-surefire-plugin + 3.5.4 org.codehaus.mojo build-helper-maven-plugin 3.6.1 - - generate-sources - - add-source - - - - ../java - - - + + generate-sources + + add-source + + + + ../java + + + @@ -136,6 +190,15 @@ + + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 + true + + central + + diff --git a/java-wasm/src/test/resources/prism.wasm b/java-wasm/src/test/resources/prism.wasm deleted file mode 100755 index 6d712590fc..0000000000 Binary files a/java-wasm/src/test/resources/prism.wasm and /dev/null differ