diff --git a/.github/workflows/Release-Snapshot-On-OSSRH.yml b/.github/workflows/Release-Snapshot-On-Maven-Central.yml similarity index 94% rename from .github/workflows/Release-Snapshot-On-OSSRH.yml rename to .github/workflows/Release-Snapshot-On-Maven-Central.yml index 7d59585..020cf5f 100644 --- a/.github/workflows/Release-Snapshot-On-OSSRH.yml +++ b/.github/workflows/Release-Snapshot-On-Maven-Central.yml @@ -20,6 +20,7 @@ name: Release snapshots on Central on: + workflow_dispatch: # Allow manual trigger for expired snapshot push: branches: - 'develop' diff --git a/.github/workflows/Shared-Deploy-Snapshot-Components.yml b/.github/workflows/Shared-Deploy-Snapshot-Components.yml index 9f082f0..6bd43ee 100644 --- a/.github/workflows/Shared-Deploy-Snapshot-Components.yml +++ b/.github/workflows/Shared-Deploy-Snapshot-Components.yml @@ -45,19 +45,19 @@ jobs: steps: - name: Checkout ${{ github.event.repository.name }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: ${{ github.event.repository.name }} fetch-depth: 0 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: distribution: 'temurin' java-version: '21' - name: Setup Maven - uses: s4u/maven-settings-action@v3.1.0 + uses: s4u/maven-settings-action@v4.0.0 with: sonatypeSnapshots: false githubServer: false @@ -69,7 +69,7 @@ jobs: }] - name: Checkout riseclipse-developper - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: riseclipse/riseclipse-developer path: riseclipse-developer diff --git a/.github/workflows/Shared-Deploy-Snapshot-Tools.yml b/.github/workflows/Shared-Deploy-Snapshot-Tools.yml index 3b4434b..02e55fa 100644 --- a/.github/workflows/Shared-Deploy-Snapshot-Tools.yml +++ b/.github/workflows/Shared-Deploy-Snapshot-Tools.yml @@ -54,20 +54,20 @@ jobs: steps: - name: Checkout ${{ github.event.repository.name }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: ${{ github.event.repository.name }} ref: develop fetch-depth: 0 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: distribution: "temurin" java-version: "21" - name: Checkout riseclipse-developper - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: riseclipse/riseclipse-developer path: riseclipse-developer @@ -119,7 +119,7 @@ jobs: id: release_artifacts - name: Send email about this new development version - uses: dawidd6/action-send-mail@v5 + uses: dawidd6/action-send-mail@v15 with: server_address: smtp.gmail.com # Server port, default 25: @@ -137,5 +137,10 @@ jobs: # Required sender full name (address can be skipped): from: riseclipse@gmail.com # Optional plain body: - body: The new development version is available at ${{ steps.release_artifacts.outputs.html_url }} + body: | + Hi, + A new development version is available at ${{ steps.release_artifacts.outputs.html_url }}. + See changes at "${{ github.event.repository.name }}/blob/develop/CHANGELOG.md" + ---- + The RiseClipse Team (https://riseclipse.github.io/) diff --git a/.github/workflows/Shared-Pre-Release-GH.yml b/.github/workflows/Shared-Pre-Release-GH.yml index 190b917..fb8c2a5 100644 --- a/.github/workflows/Shared-Pre-Release-GH.yml +++ b/.github/workflows/Shared-Pre-Release-GH.yml @@ -40,10 +40,10 @@ jobs: run: sudo apt-get install -y rename - name: Checkout ${{ github.event.repository.name }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Download artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: path: ${{ github.workspace }}/artifacts diff --git a/.github/workflows/Shared-Prepare-Next-Dev-Tools.yml b/.github/workflows/Shared-Prepare-Next-Dev-Tools.yml index 1c46db0..ce48e2a 100644 --- a/.github/workflows/Shared-Prepare-Next-Dev-Tools.yml +++ b/.github/workflows/Shared-Prepare-Next-Dev-Tools.yml @@ -51,19 +51,19 @@ jobs: steps: - name: Checkout ${{ github.event.repository.name }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: ${{ github.event.repository.name }} - name: Checkout riseclipse-developper - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: riseclipse/riseclipse-developer path: riseclipse-developer ref: master - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: distribution: 'temurin' java-version: '21' @@ -124,14 +124,14 @@ jobs: id: artifact_name - name: Upload artifact 1 - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ steps.artifact_name.outputs.artifact_1_filename }}-${{ steps.get_version.outputs.project_version }}.jar path: ${{ github.workspace }}/${{ steps.artifact_name.outputs.artifact_1_no_ext }}-${{ steps.get_version.outputs.project_version }}.jar - name: Upload artifact 2 if exists if: "${{ inputs.jarPath2 != '' }}" - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ steps.artifact_name.outputs.artifact_2_filename }}-${{ steps.get_version.outputs.project_version }}.jar path: ${{ github.workspace }}/${{ steps.artifact_name.outputs.artifact_2_no_ext }}-${{ steps.get_version.outputs.project_version }}.jar @@ -155,7 +155,7 @@ jobs: git commit -m "[actions] prepare next development version ${{ github.event.repository.name }}-${{ steps.next_version.outputs.project_version }}" - name: Create Pull Request - uses: peter-evans/create-pull-request@v7 + uses: peter-evans/create-pull-request@v8 with: base: master branch: do_release diff --git a/.github/workflows/Shared-Release-On-DockerHub.yml b/.github/workflows/Shared-Release-On-DockerHub.yml index 3d7d42a..c027a57 100644 --- a/.github/workflows/Shared-Release-On-DockerHub.yml +++ b/.github/workflows/Shared-Release-On-DockerHub.yml @@ -54,16 +54,16 @@ jobs: run: sudo apt-get install rename - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v4 # NB: Needs to contain a Dockerfile at root of repository - name: Checkout ${{ github.event.repository.name }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: ${{ github.event.repository.name }} - name: Download artifacts - uses: dawidd6/action-download-artifact@v9 + uses: dawidd6/action-download-artifact@v18 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: Pre-Release-and-Prepare-Next-Dev.yml @@ -76,13 +76,13 @@ jobs: rename 's/.jar//' *.jar - name: Log in to Docker Hub - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker image with given tag - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: ${{ github.workspace }}/${{ github.event.repository.name }} push: true @@ -90,7 +90,7 @@ jobs: - name: Build and push Docker image with latest tag if: inputs.release_latest - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v7 with: context: ${{ github.workspace }}/${{ github.event.repository.name }} push: true diff --git a/.github/workflows/Shared-Release-On-Maven-Central.yml b/.github/workflows/Shared-Release-On-Maven-Central.yml index d473371..f72d7f2 100644 --- a/.github/workflows/Shared-Release-On-Maven-Central.yml +++ b/.github/workflows/Shared-Release-On-Maven-Central.yml @@ -42,12 +42,12 @@ jobs: steps: - name: Checkout ${{ github.event.repository.name }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 # Adapted from # https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-Apache-Maven - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: distribution: 'temurin' java-version: '21' @@ -88,7 +88,7 @@ jobs: git push --tags - name: Create Pull Request - uses: peter-evans/create-pull-request@v7 + uses: peter-evans/create-pull-request@v8 with: base: master branch: do_release diff --git a/.github/workflows/Shared-Release-On-RiseClipseWeb.yml b/.github/workflows/Shared-Release-On-RiseClipseWeb.yml index c2e082f..8f1e6a6 100644 --- a/.github/workflows/Shared-Release-On-RiseClipseWeb.yml +++ b/.github/workflows/Shared-Release-On-RiseClipseWeb.yml @@ -50,12 +50,12 @@ jobs: run: sudo apt-get install rename - name: Checkout ${{ github.event.repository.name }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: ${{ github.event.repository.name }} - name: Download artifacts - uses: dawidd6/action-download-artifact@v9 + uses: dawidd6/action-download-artifact@v18 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: Pre-Release-and-Prepare-Next-Dev.yml diff --git a/.github/workflows/Shared-Validate-Release.yml b/.github/workflows/Shared-Validate-Release.yml index 295d582..e4d00b1 100644 --- a/.github/workflows/Shared-Validate-Release.yml +++ b/.github/workflows/Shared-Validate-Release.yml @@ -42,10 +42,10 @@ jobs: run: sudo apt-get install -y rename - name: Checkout ${{ github.event.repository.name }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Download artifact from other workflow - uses: dawidd6/action-download-artifact@v9 + uses: dawidd6/action-download-artifact@v18 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: Pre-Release-and-Prepare-Next-Dev.yml @@ -67,6 +67,8 @@ jobs: rename 's/.jar//' *.jar - name: Release artifacts + # The github repository of this action is now archived! + # TODO: find another uses: ncipollo/release-action@v1 with: replacesArtifacts: true diff --git a/.github/workflows/Shared-Verify-Components.yml b/.github/workflows/Shared-Verify-Components.yml index 91e3212..23026fa 100644 --- a/.github/workflows/Shared-Verify-Components.yml +++ b/.github/workflows/Shared-Verify-Components.yml @@ -41,13 +41,13 @@ jobs: steps: - name: Checkout ${{ github.event.repository.name }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: ${{ github.event.repository.name }} fetch-depth: 0 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: distribution: 'temurin' java-version: '21' diff --git a/.github/workflows/Shared-Verify-Tools.yml b/.github/workflows/Shared-Verify-Tools.yml index 0c3cf0f..63d137b 100644 --- a/.github/workflows/Shared-Verify-Tools.yml +++ b/.github/workflows/Shared-Verify-Tools.yml @@ -53,20 +53,20 @@ jobs: steps: - name: Checkout ${{ github.event.repository.name }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: ${{ github.event.repository.name }} fetch-depth: 0 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: distribution: "temurin" java-version: "21" cache: "maven" - name: Checkout riseclipse-developper - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: riseclipse/riseclipse-developer path: riseclipse-developer @@ -118,14 +118,14 @@ jobs: id: artifacts_metadata - name: Upload artifact 1 - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ steps.artifacts_metadata.outputs.artifact_1_filename }} path: ${{ steps.artifacts_metadata.outputs.artifact_1_path }} - name: Upload artifact 2 if exists if: "${{ inputs.jar_path_2 != '' }}" - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ${{ steps.artifacts_metadata.outputs.artifact_2_filename }} path: ${{ steps.artifacts_metadata.outputs.artifact_2_path }} diff --git a/build_locally.sh b/build_locally.sh new file mode 100755 index 0000000..c3a5fa3 --- /dev/null +++ b/build_locally.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +# Exit on error +set -e + +# Trap SIGINT (Ctrl+C) and exit the script +trap 'echo -e "\nScript interrupted. Exiting..."; exit 130' SIGINT + +GOALS=$* + +cd ../riseclipse-developer +mvn $GOALS +cd ../riseclipse-developer/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2 +mvn $GOALS +cd .. +cd ../riseclipse-main +mvn $GOALS +cd ../riseclipse-editor +mvn $GOALS +cd ../riseclipse-validator-ocl +mvn $GOALS +cd ../riseclipse-metamodel-scl2003 +mvn $GOALS +cd ../riseclipse-metamodel-nsd2016 +mvn $GOALS +cd ../riseclipse-metamodel-cim +mvn $GOALS +cd ../riseclipse-metamodel-cgmes-3-0-0 +mvn $GOALS +cd ../riseclipse-validator-scl2003 +mvn $GOALS +cd ../riseclipse-validator-cgmes-3-0-0 +mvn $GOALS +cd ../riseclipse-distribution +mvn $GOALS +mvn -Pupdate-site $GOALS +mvn -Prcp $GOALS diff --git a/fr.centralesupelec.edf.riseclipse.developer.eclipse/fr.centralesupelec.edf.riseclipse.developer.eclipse.target b/fr.centralesupelec.edf.riseclipse.developer.eclipse/fr.centralesupelec.edf.riseclipse.developer.eclipse.target index 71cf84e..a3ec2e5 100644 --- a/fr.centralesupelec.edf.riseclipse.developer.eclipse/fr.centralesupelec.edf.riseclipse.developer.eclipse.target +++ b/fr.centralesupelec.edf.riseclipse.developer.eclipse/fr.centralesupelec.edf.riseclipse.developer.eclipse.target @@ -1,7 +1,7 @@ - + @@ -35,14 +35,6 @@ - - - - - - - - @@ -60,6 +52,18 @@ + + + + + + + + + + + + diff --git a/fr.centralesupelec.edf.riseclipse.developer.eclipse/fr.centralesupelec.edf.riseclipse.developer.eclipse.tpd b/fr.centralesupelec.edf.riseclipse.developer.eclipse/fr.centralesupelec.edf.riseclipse.developer.eclipse.tpd index ea2049b..f3be9c0 100644 --- a/fr.centralesupelec.edf.riseclipse.developer.eclipse/fr.centralesupelec.edf.riseclipse.developer.eclipse.tpd +++ b/fr.centralesupelec.edf.riseclipse.developer.eclipse/fr.centralesupelec.edf.riseclipse.developer.eclipse.tpd @@ -35,14 +35,6 @@ location "http://download.eclipse.org/releases/2024-12" eclipse-2024-12 { org.eclipse.jdt.debug org.eclipse.jdt.launching org.eclipse.jface - org.eclipse.ocl.common - org.eclipse.ocl.pivot - org.eclipse.ocl.pivot.uml - org.eclipse.ocl.xtext.base - org.eclipse.ocl.xtext.completeocl - org.eclipse.ocl.xtext.essentialocl - org.eclipse.ocl.xtext.oclinecore - org.eclipse.ocl.xtext.oclstdlib org.eclipse.osgi org.eclipse.osgi.compatibility.state org.eclipse.swt @@ -60,6 +52,18 @@ location "http://download.eclipse.org/releases/2024-12" eclipse-2024-12 { org.eclipse.xtext.util } +location "https://github.com/riseclipse/org.eclipse.ocl/releases/download/nightly/" ocl-with-extended-stdlib { + org.eclipse.ocl.common + org.eclipse.ocl.tools.feature.group + org.eclipse.ocl.pivot + org.eclipse.ocl.pivot.uml + org.eclipse.ocl.xtext.base + org.eclipse.ocl.xtext.completeocl + org.eclipse.ocl.xtext.essentialocl + org.eclipse.ocl.xtext.oclinecore + org.eclipse.ocl.xtext.oclstdlib +} + location "https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.34.0" orbit-2024-12 { org.apache.commons.cli org.apache.commons.lang3 diff --git a/fr.centralesupelec.edf.riseclipse.developer.maven/pom.xml b/fr.centralesupelec.edf.riseclipse.developer.maven/pom.xml index 0d40709..007e413 100644 --- a/fr.centralesupelec.edf.riseclipse.developer.maven/pom.xml +++ b/fr.centralesupelec.edf.riseclipse.developer.maven/pom.xml @@ -82,6 +82,11 @@ http://download.eclipse.org/releases/2024-12 p2 + + ocl-with-extended-stdlib + https://github.com/riseclipse/org.eclipse.ocl/releases/download/nightly/ + p2 + license-feature http://download.eclipse.org/cbi/updates/license/ @@ -90,7 +95,7 @@ - 1.2.16 + 1.2.17-SNAPSHOT org.apache.maven.plugins 3.4.0 @@ -110,7 +115,7 @@ org.eclipse.tycho - 4.0.10 + 4.0.13 0.7.0 @@ -148,13 +153,13 @@ 3.12.200 2.3.100 3.35.0 - 1.22.0 - 1.22.0 - 1.22.0 - 1.22.0 - 1.22.0 - 1.22.0 - 1.22.0 + 1.23.0 + 1.23.0 + 1.23.0 + 1.23.0 + 1.23.0 + 1.23.0 + 1.23.0 1.2.1000 3.22.0 3.128.0 diff --git a/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2/pom.xml b/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2/pom.xml index 7558a51..348351a 100644 --- a/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2/pom.xml +++ b/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2/pom.xml @@ -42,13 +42,13 @@ io.github.riseclipse fr.centralesupelec.edf.riseclipse.developer.p2_to_m2 - 1.2.16 + 1.2.17-SNAPSHOT pom io.github.riseclipse fr.centralesupelec.edf.riseclipse.developer.maven - 1.2.16 + 1.2.17-SNAPSHOT diff --git a/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2/src/main/resources/riseclipse.aggr b/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2/src/main/resources/riseclipse.aggr index 76c2881..04e5c9f 100644 --- a/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2/src/main/resources/riseclipse.aggr +++ b/fr.centralesupelec.edf.riseclipse.developer.p2_to_m2/src/main/resources/riseclipse.aggr @@ -31,19 +31,23 @@ - + - - - - - - - + + + + + + + + + + +