Skip to content

Commit 9d4fad6

Browse files
committed
migrate to ProjectUnified
1 parent 61c0552 commit 9d4fad6

File tree

46 files changed

+171
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+171
-194
lines changed
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
name: Build & Check
22

33
on:
4-
push:
5-
branches: [ master ]
6-
pull_request:
7-
branches: [ master ]
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
88

99
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
- name: Set up JDK 17
15-
uses: actions/setup-java@v4
16-
with:
17-
java-version: '17'
18-
distribution: 'temurin'
19-
cache: maven
20-
- name: Unshallow
21-
run: git fetch --unshallow --quiet
22-
- name: Build
23-
run: mvn clean package
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
- name: Set up JDK 21
15+
uses: actions/setup-java@v5
16+
with:
17+
java-version: '21'
18+
distribution: 'temurin'
19+
cache: maven
20+
- name: Unshallow
21+
run: git fetch --unshallow --quiet
22+
- name: Build
23+
run: mvn clean package
Lines changed: 47 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,56 @@
11
name: Build & Release
22

33
on:
4-
push:
5-
tags: [ "*" ]
4+
push:
5+
tags: [ "*" ]
66

77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v4
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- uses: actions/checkout@v5
1214

13-
- name: Generate changelog
14-
id: changelog
15-
uses: metcalfc/changelog-generator@v4.3.1
16-
with:
17-
myToken: ${{ secrets.GITHUB_TOKEN }}
18-
- name: Save to CHANGELOG
19-
run: echo "${{ steps.changelog.outputs.changelog }}" > CHANGELOG.md
15+
- name: Generate changelog
16+
id: changelog
17+
uses: metcalfc/changelog-generator@v4.6.2
18+
with:
19+
myToken: ${{ secrets.GITHUB_TOKEN }}
2020

21-
- name: Set up JDK 17
22-
uses: actions/setup-java@v4
23-
with:
24-
java-version: '17'
25-
distribution: 'temurin'
26-
cache: maven
27-
server-id: central
28-
server-username: MAVEN_USERNAME
29-
server-password: MAVEN_PASSWORD
21+
- name: Set up JDK 21
22+
uses: actions/setup-java@v5
23+
with:
24+
java-version: '21'
25+
distribution: 'temurin'
26+
cache: maven
27+
server-id: central
28+
server-username: MAVEN_USERNAME
29+
server-password: MAVEN_PASSWORD
30+
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
31+
gpg-passphrase: GPG_PASSPHRASE
3032

31-
- name: Build with Maven
32-
run: mvn clean deploy -P central -Dgpg.signer=bc
33-
env:
34-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
35-
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
36-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
37-
MAVEN_GPG_KEY: ${{ secrets.GPG_SECRET_KEY }}
33+
- name: Build with Maven
34+
run: mvn clean install
3835

39-
- name: Generate Javadocs
40-
run: mvn javadoc:aggregate-no-fork
41-
- name: Deploy Javadocs
42-
uses: peaceiris/actions-gh-pages@v3
43-
with:
44-
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
publish_dir: ./target/site/apidocs
46-
- name: Release
47-
uses: softprops/action-gh-release@v2
48-
with:
49-
body: ${{ steps.changelog.outputs.changelog }}
50-
draft: false
51-
prerelease: false
36+
- name: Deploy to Central
37+
run: mvn deploy -P central
38+
env:
39+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
40+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
41+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
42+
- name: Generate Javadocs
43+
run: mvn javadoc:aggregate-no-fork
44+
- name: Deploy Javadocs
45+
uses: peaceiris/actions-gh-pages@v4
46+
with:
47+
github_token: ${{ secrets.GITHUB_TOKEN }}
48+
publish_dir: ./target/reports/apidocs
49+
50+
- name: "Release"
51+
uses: softprops/action-gh-release@v2
52+
with:
53+
body: ${{ steps.changelog.outputs.changelog }}
54+
draft: false
55+
prerelease: false
56+
files: "**/target/*.jar"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# MinigameCore ![Maven Central](https://img.shields.io/maven-central/v/me.hsgamer/minigamecore)
1+
# MinigameCore ![Maven Central](https://img.shields.io/maven-central/v/io.github.projectunified/minigamecore)
22

33
A core library for minigame development

base/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
66
<artifactId>minigamecore</artifactId>
7-
<groupId>me.hsgamer</groupId>
7+
<groupId>io.github.projectunified</groupId>
88
<version>4.0.0-SNAPSHOT</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>minigamecore-base</artifactId>
13+
<name>MinigameCore Base</name>
1314
</project>

base/src/main/java/me/hsgamer/minigamecore/base/Arena.java renamed to base/src/main/java/io/github/projectunified/minigamecore/base/Arena.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package me.hsgamer.minigamecore.base;
1+
package io.github.projectunified.minigamecore.base;
22

33
import java.util.Collections;
44
import java.util.List;

base/src/main/java/me/hsgamer/minigamecore/base/Feature.java renamed to base/src/main/java/io/github/projectunified/minigamecore/base/Feature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package me.hsgamer.minigamecore.base;
1+
package io.github.projectunified.minigamecore.base;
22

33
/**
44
* The feature of the arena

base/src/main/java/me/hsgamer/minigamecore/base/FeatureUnit.java renamed to base/src/main/java/io/github/projectunified/minigamecore/base/FeatureUnit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package me.hsgamer.minigamecore.base;
1+
package io.github.projectunified.minigamecore.base;
22

33
import java.util.*;
44

base/src/main/java/me/hsgamer/minigamecore/base/GameState.java renamed to base/src/main/java/io/github/projectunified/minigamecore/base/GameState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package me.hsgamer.minigamecore.base;
1+
package io.github.projectunified.minigamecore.base;
22

33
/**
44
* The game state, also known as the phase of the game

base/src/main/java/me/hsgamer/minigamecore/base/Initializer.java renamed to base/src/main/java/io/github/projectunified/minigamecore/base/Initializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package me.hsgamer.minigamecore.base;
1+
package io.github.projectunified.minigamecore.base;
22

33
/**
44
* The interface represents that the object can be initialized and cleared

base/src/main/java/me/hsgamer/minigamecore/base/package-info.java renamed to base/src/main/java/io/github/projectunified/minigamecore/base/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
22
* The base classes for creating a minigame project
33
*/
4-
package me.hsgamer.minigamecore.base;
4+
package io.github.projectunified.minigamecore.base;

0 commit comments

Comments
 (0)