Skip to content

Commit 6c40318

Browse files
* ci: central repository publish
1 parent 361334f commit 6c40318

13 files changed

+213
-555
lines changed

.github/workflows/automerge.yml

-32
This file was deleted.

.github/workflows/gradle-release.yml

-39
This file was deleted.

.github/workflows/release.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
permissions:
8+
contents: read
9+
10+
# Only allow one release workflow to execute at a time, since each release
11+
# workflow uses shared resources (git tags, package registries)
12+
concurrency:
13+
group: ${{ github.workflow }}
14+
15+
jobs:
16+
release:
17+
name: Release
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write # to be able to publish a GitHub release
21+
issues: write # to be able to comment on released issues
22+
pull-requests: write # to be able to comment on released pull requests
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
- name: Set up JDK 17
29+
uses: actions/setup-java@v4
30+
with:
31+
java-version: '17'
32+
distribution: 'temurin'
33+
server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
34+
settings-path: ${{ github.workspace }} # location for the settings.xml file
35+
server-username: MAVEN_USERNAME # env variable for username in deploy
36+
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
37+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
38+
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
39+
- name: Build with Maven
40+
run: mvn -B package --file pom.xml
41+
- name: Semantic Release
42+
uses: cycjimmy/semantic-release-action@v4
43+
with:
44+
semantic_version: 24.2.0
45+
extra_plugins: |
46+
@terrestris/maven-semantic-release@3.1.0
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
MAVEN_USERNAME: maven_username123
50+
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
51+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

.github/workflows/version-bump.yml

-27
This file was deleted.

.gitignore

+15-43
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,18 @@
1-
.gradle
2-
**/build/
3-
!src/**/build/
4-
5-
# Ignore Gradle GUI config
6-
gradle-app.setting
7-
8-
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
9-
!gradle-wrapper.jar
10-
11-
# Avoid ignore Gradle wrappper properties
12-
!gradle-wrapper.properties
13-
14-
# Cache of project
15-
.gradletasknamecache
16-
17-
# Eclipse Gradle plugin generated files
1+
target/
2+
bin/
3+
pom.xml.tag
4+
pom.xml.releaseBackup
5+
pom.xml.versionsBackup
6+
pom.xml.next
7+
release.properties
8+
dependency-reduced-pom.xml
9+
buildNumber.properties
10+
.mvn/timing.properties
11+
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
12+
.mvn/wrapper/maven-wrapper.jar
13+
14+
# Eclipse m2e generated files
1815
# Eclipse Core
1916
.project
2017
# JDT-specific (Eclipse Java Development Tools)
21-
.classpath
22-
23-
# Compiled class file
24-
*.class
25-
26-
# Log file
27-
*.log
28-
29-
# BlueJ files
30-
*.ctxt
31-
32-
# Mobile Tools for Java (J2ME)
33-
.mtj.tmp/
34-
35-
# Package Files #
36-
*.jar
37-
*.war
38-
*.nar
39-
*.ear
40-
*.zip
41-
*.tar.gz
42-
*.rar
43-
44-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
45-
hs_err_pid*
46-
replay_pid*
18+
.classpath

.releaserc.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plugins: [
2+
"@semantic-release/commit-analyzer",
3+
'@semantic-release/release-notes-generator',
4+
"@semantic-release/github",
5+
"@terrestris/maven-semantic-release"
6+
]

build.gradle

-61
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

-42.5 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

-7
This file was deleted.

0 commit comments

Comments
 (0)