diff --git a/.github/workflows/pull-request-check.yml b/.github/workflows/pull-request-check.yml index fc741019e..7f7c9e069 100644 --- a/.github/workflows/pull-request-check.yml +++ b/.github/workflows/pull-request-check.yml @@ -62,6 +62,19 @@ jobs: mvn -B verify -Pnative -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 shell: bash + - name: Switch to Temurin JDK + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + overwrite-settings: false + + - name: Test executable jar on Temurin + if: matrix.os == 'ubuntu-20.04' + run: | + cd tools/samm-cli + mvn -B -Denforcer.skip -Dskip.maven.surefire failsafe:integration-test -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 + - name: Upload executable jar # We only need one OS job to upload the jar if: matrix.os == 'ubuntu-20.04' diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow.yml index cbb0896a8..9e973fe1c 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release-workflow.yml @@ -113,6 +113,18 @@ jobs: env: PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }} + - name: Switch to Temurin JDK + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + overwrite-settings: false + + - name: Test executable jar on Temurin + run: | + cd tools/samm-cli + mvn -B -Denforcer.skip -Dskip.maven.surefire failsafe:integration-test -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 + - name: Upload staging directory and Linux binary uses: actions/upload-artifact@v3 with: diff --git a/core/esmf-aspect-model-aas-generator/pom.xml b/core/esmf-aspect-model-aas-generator/pom.xml index b0634b4b9..dc308f1b2 100644 --- a/core/esmf-aspect-model-aas-generator/pom.xml +++ b/core/esmf-aspect-model-aas-generator/pom.xml @@ -57,10 +57,5 @@ assertj-core test - - junit - junit - test - diff --git a/core/esmf-aspect-model-validator/pom.xml b/core/esmf-aspect-model-validator/pom.xml index b41801e89..e94a6bbab 100644 --- a/core/esmf-aspect-model-validator/pom.xml +++ b/core/esmf-aspect-model-validator/pom.xml @@ -51,7 +51,6 @@ org.graalvm.js js - runtime org.projectlombok diff --git a/pom.xml b/pom.xml index 1e9fc65f0..730d868e5 100644 --- a/pom.xml +++ b/pom.xml @@ -182,7 +182,6 @@ org.eclipse.esmf esmf-aspect-model-aas-generator ${project.version} - compile @@ -195,35 +194,48 @@ import - - org.hibernate.validator - hibernate-validator - ${hibernate-validator-version} - org.apache.poi poi ${poi-version} - - org.graphper - graph-support - ${graph-support-version} - - - org.graalvm.truffle - truffle-api - ${graalvm-version} - org.graalvm.js js ${graalvm-version} - + + + + org.apache.maven.shared + maven-shared-utils + [3.3.3,) + + + org.yaml + snakeyaml + [2.0,) + + + org.apache.commons + commons-compress + [1.21,) + + + commons-io + commons-io + [2.7,) + + + org.codehaus.plexus + plexus-archiver + [4.8.0,) + + + diff --git a/tools/esmf-aspect-model-maven-plugin/pom.xml b/tools/esmf-aspect-model-maven-plugin/pom.xml index d75188adf..3f6d0e7d9 100644 --- a/tools/esmf-aspect-model-maven-plugin/pom.xml +++ b/tools/esmf-aspect-model-maven-plugin/pom.xml @@ -60,14 +60,20 @@ org.apache.maven.plugin-testing maven-plugin-testing-harness - test ${maven-plugin-testing-harness-version} + test org.assertj assertj-core test + + + junit + junit + test + diff --git a/tools/samm-cli/pom.xml b/tools/samm-cli/pom.xml index 8ece14c9a..91bc920d7 100644 --- a/tools/samm-cli/pom.xml +++ b/tools/samm-cli/pom.xml @@ -32,6 +32,9 @@ org.eclipse.esmf.SammCli samm ${project.build.directory}/classes/META-INF/native-image/${project.groupId}/${project.artifactId} + + ${project.artifactId}-${project.version}-for-native false false false @@ -67,33 +70,20 @@ org.graalvm.nativeimage svm provided - - - - org.graalvm-truffle - truffle-api - - - org.graalvm.truffle - truffle-api - provided + org.graalvm.sdk + graal-sdk + ${graalvm-version} org.graalvm.js js - runtime - - - org.graalvm.truffle - truffle-api - - - org.graalvm.sdk - graal-sdk - - + + + org.graalvm.js + js-scriptengine + ${graalvm-version} @@ -226,7 +216,7 @@ org.eclipse.esmf.buildtime.Aas4jClassSetup - + ${project.build.outputDirectory}/adminshell.properties false @@ -255,12 +245,13 @@ maven-shade-plugin - default-shade + shade-for-native-image package shade + ${native-image-jar} false ${skip.maven.shade} @@ -352,6 +343,100 @@ + + default-shade + package + + shade + + + false + ${skip.maven.shade} + + + + ${main-class} + + + + + + + + org.eclipse.esmf:esmf-semantic-aspect-meta-model + + javax.annotation:jsr250-api + + + + + + *:* + + module-info.class + META-INF/* + META-INF/sisu/javax.inject.Named + META-INF/plexus/components.xml + META-INF.versions*/** + META-INF/versions*/** + META-INF/maven/** + plugin.xml + about.html + + + + + ${project.groupId}:${project.artifactId} + false + + ** + META-INF/** + git.properties + + + + org/eclipse/esmf/buildtime/** + + + + + xml-apis:xml-apis + + license/** + + + + + org.apache.xmlgraphics:batik-svgrasterizer + + org/apache/batik/apps/rasterizer/resources/rasterizer.policy + + + + + org.jboss.forge.roaster:roaster-jdt + + META-INF/native-image/** + + + + + org.eclipse.esmf:esmf-aspect-meta-model-java + + ** + + + + + jakarta.activation:jakarta.activation-api + + ** + + + + + @@ -455,18 +540,18 @@ - org.apache.maven.plugins maven-jar-plugin + build-test-jar test-jar - pre-test + process-test-classes @@ -557,7 +642,7 @@ true - ${project.build.directory}/${project.artifactId}-${project.version}.jar + ${project.build.directory}/${native-image-jar}.jar