Skip to content

Commit

Permalink
Merge pull request #215 from FIUS/feature/maven_central_deployment
Browse files Browse the repository at this point in the history
migrate to maven central publishing
  • Loading branch information
nk-coding authored Jul 8, 2024
2 parents 2503a9a + 6c98ee9 commit 71e03d4
Show file tree
Hide file tree
Showing 18 changed files with 199 additions and 351 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/deploySettings.xml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/releaseToGithubPackages.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/releaseToMavenCentral.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish package to Maven Central
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: central
server-username: MAVEN_CENTRAL_USER
server-password: MAVEN_CENTRAL_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_CENTRAL_GPG_PASSPHRASE
- name: Publish package
run: ./mvnw deploy -Pdeploy
env:
MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
MAVEN_CENTRAL_GPG_PASSPHRASE: ${{ secrets.MAVEN_CENTRAL_GPG_PASSPHRASE }}

117 changes: 0 additions & 117 deletions .mvn/wrapper/MavenWrapperDownloader.java

This file was deleted.

20 changes: 18 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar
2 changes: 1 addition & 1 deletion ICGE-Log/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>icge</artifactId>
<version>2.3.8</version>
</parent>
Expand Down
12 changes: 10 additions & 2 deletions ICGE-ManualStart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>icge</artifactId>
<version>2.3.8</version>
</parent>
Expand All @@ -13,13 +13,21 @@
</properties>
<dependencies>
<dependency>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>icge-simulation</artifactId>
<version>${icge.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions ICGE-Simulation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>icge</artifactId>
<version>2.3.8</version>
</parent>
Expand All @@ -17,7 +17,7 @@
<artifactId>junit-jupiter-engine</artifactId>
</dependency>
<dependency>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>icge-ui</artifactId>
<version>${icge.version}</version>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions ICGE-Ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>icge</artifactId>
<version>2.3.8</version>
</parent>
Expand All @@ -17,7 +17,7 @@
<artifactId>junit-jupiter-engine</artifactId>
</dependency>
<dependency>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>icge-log</artifactId>
<version>${icge.version}</version>
</dependency>
Expand Down
2 changes: 1 addition & 1 deletion ICGE-archetype-module/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>icge-archetype-module</artifactId>
<version>1.0.0</version>
<name>Archetype for FIUS ICGE Modules </name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>ICGE</artifactId>
<version>2.3.9-Snapshot</version>
</parent>
Expand Down
2 changes: 1 addition & 1 deletion ICGE-build-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>icge</artifactId>
<version>2.3.8</version>
</parent>
Expand Down
4 changes: 2 additions & 2 deletions examples/mario/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>ICGE-Example-Mario</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ICGE Example: Mario Simulator</name>
Expand All @@ -27,7 +27,7 @@
</build>
<dependencies>
<dependency>
<groupId>de.uni-stuttgart.informatik.fius</groupId>
<groupId>de.fius</groupId>
<artifactId>ICGE-Simulation</artifactId>
<version>${icge.version}</version>
</dependency>
Expand Down
Loading

0 comments on commit 71e03d4

Please sign in to comment.