Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, windows-2022]
os: [ubuntu-24.04, windows-2025]
runs-on: ${{ matrix.os }}
steps:
- name: Enable Long Paths in Git (Linux)
Expand All @@ -16,11 +16,11 @@ jobs:
if: runner.os == 'Windows'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6
with:
submodules: true
- name: Setup JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
Expand All @@ -29,7 +29,7 @@ jobs:
run: ./mvnw clean package
- name: Store P2 Repository
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v6
with:
name: p2-jamopp
path: jamopp.p2/target/repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly_on_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
uses: ./.github/workflows/build.yml
deploy-nightly:
needs: build
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Download P2 Repository
uses: actions/download-artifact@v3
uses: actions/download-artifact@v6
with:
name: p2-jamopp
path: p2-jamopp
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ on:
type: string
jobs:
release:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6
- name: Setup JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Build Packages (without tests)
run: ./mvnw clean package -Dmaven.test.skip=true
run: ./mvnw -P build-deploy clean package -Dmaven.test.skip=true
- name: Build Deploy Path
shell: bash
run: echo "DEPLOY_PATH=$( echo '${{ secrets.DEPLOYMENT_REMOTE_TARGET }}/extended-java-model-parser-and-printer' )" >> $GITHUB_ENV
Expand All @@ -36,19 +36,19 @@ jobs:
release-version: ${{ inputs.release-version }}
link-path: ${{ env.DEPLOY_PATH }}
- name: Setup Apache Maven Central
uses: actions/setup-java@3.6.0
uses: actions/setup-java@4.7.1
with:
java-version: 17
distribution: 'temurin'
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
server-id: central
server-username: CENTRAL_USERNAME
server-password: CENTRAL_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
cache: 'maven'
- name: Deploy to Apache Maven Central
run: mvn -Pdeploy-mvn-central deploy
run: mvn -P deploy-mvn-central deploy
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
MAVEN_GPG_PASSPHRASE: $${{ secrets.MAVEN_GPG_PASSPHRASE }}
106 changes: 93 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,29 @@
<packaging>pom</packaging>
<name>Extended JaMoPP Parent</name>
<description>This package acts as the parent module for all extended JaMoPP modules.</description>
<url>https://github.com/MDSD-Tools/TheExtendedJavaModelParserAndPrinter</url>

<licenses>
<license>
<name>Eclipse Public License - v 1.0</name>
<url>https://www.eclipse.org/org/documents/epl-v10.html</url>
</license>
</licenses>

<developers>
<developer>
<name>Martin Armbruster</name>
<email>martin.armbruster@kit.edu</email>
<organization>MCSE, KIT</organization>
<organizationUrl>https://mcse.kastel.kit.edu</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/MDSD-Tools/TheExtendedJavaModelParserAndPrinter.git</connection>
<developerConnection>scm:git:https://github.com/MDSD-Tools/TheExtendedJavaModelParserAndPrinter.git</developerConnection>
<url>https://github.com/MDSD-Tools/TheExtendedJavaModelParserAndPrinter/tree/main</url>
</scm>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down Expand Up @@ -161,8 +184,8 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-sources-plugin</artifactId>
<version>3.2.1</version>
<artifactId>maven-source-plugin</artifactId>
<version>3.4.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -199,29 +222,75 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.12.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>build-deploy</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<tags>
<tag>
<name>model</name>
<placement>a</placement>
<head>Model</head>
</tag>
<tag>
<name>generated</name>
<placement>a</placement>
<head>Generated</head>
</tag>
<tag>
<name>ordered</name>
<placement>a</placement>
<head>Ordered</head>
</tag>
</tags>
<doclint>all,-missing</doclint>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>deploy-mvn-central</id>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<version>3.2.7</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand All @@ -238,6 +307,17 @@
</gpgArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.9.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down