diff --git a/.github/workflows/executables.yml b/.github/workflows/executables.yml index 95c3e2e..94bffc2 100644 --- a/.github/workflows/executables.yml +++ b/.github/workflows/executables.yml @@ -37,7 +37,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: 'Build Native Image' - run: mvn package -P native-image + run: mvn package -P native env: GITHUB_ACTOR: ${{ github.actor }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index a483909..13efc8a 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ A simple command line utility allowing to process JSON-LD, RDF, and CBOR-LD, doc ## Features * [JSON-LD 1.1](https://www.w3.org/TR/json-ld/) -* [CBOR-LD 1.0](https://digitalbazaar.github.io/cbor-ld-spec/) +* [CBOR-LD 1.0](https://json-ld.github.io/cbor-ld-spec/) ## Installation -[Downloads](https://github.com/filip26/ld-cli/releases/tag/v0.8.0) +[Downloads](https://github.com/filip26/ld-cli/releases/) ```bash > unzip ld-cli-....zip @@ -71,11 +71,10 @@ All PR's welcome! ### Building -1. [Install GraalVM and Native Image](https://www.graalvm.org/java/quickstart/) - - download and unpack ```graalvm-ce-java17-[platform]-[version].tar.gz``` +1. [Install GraalVM and Native Image](https://www.graalvm.org/latest/docs/) + - download and unpack ```graalvm-jdk-....tar.gz``` - set ```JAVA_HOME``` and ```PATH``` env variables - - ```gu install native-image``` -3. ```mvn clean package -P native-image``` +3. ```mvn clean package -Pnative``` 4. ```./target/ld-cli``` diff --git a/pom.xml b/pom.xml index 074fac0..00cacd3 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 com.apicatalog ld-cli - 0.9.0-SNAPSHOT + 0.9.0 jar A Command Line Processor for Linked Data Processing @@ -34,7 +34,9 @@ 24.0.2 4.7.6 1.2.0 - 1.18 + + 2.4.1 + 5.10.3 @@ -118,6 +120,7 @@ -Aproject=${project.groupId}/${project.artifactId} + true @@ -132,6 +135,14 @@ default-jar + + + + com.apicatalog.App + true + + + maven-surefire-plugin @@ -163,6 +174,48 @@ + + native + + + + org.graalvm.buildtools + native-maven-plugin + 0.10.2 + true + + + + --no-server --no-fallback + --report-unsupported-elements-at-runtime + -H:+UnlockExperimentalVMOptions + -H:+ReportExceptionStackTraces + -H:+AddAllCharsets + -H:ReflectionConfigurationFiles=${project.basedir}/graal.json + -H:IncludeResourceBundles=org.glassfish.json.messages + -H:IncludeResources=.*/.*jsonld$ + + + + + build-native + + compile-no-fork + + package + + + test-native + + test + + test + + + + + + native-image diff --git a/src/main/java/com/apicatalog/cli/App.java b/src/main/java/com/apicatalog/cli/App.java index e0a10e0..f336494 100644 --- a/src/main/java/com/apicatalog/cli/App.java +++ b/src/main/java/com/apicatalog/cli/App.java @@ -37,7 +37,7 @@ version = { "ld-cli 0.9.0 https://github.com/filip26/ld-cli", "titanium-json-ld 1.4.1 https://github.com/filip26/titanium-json-ld", - "iridium-cbor-ld 0.2.0 https://github.com/filip26/iridium-cbor-ld", + "iridium-cbor-ld 0.2.2 https://github.com/filip26/iridium-cbor-ld", } ) public final class App {