Skip to content

Commit 17d5cee

Browse files
committed
Initial commit
0 parents  commit 17d5cee

File tree

23 files changed

+1837
-0
lines changed

23 files changed

+1837
-0
lines changed

.github/workflows/release.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build & Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- 'v*'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# --- Checkout ---
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
# --- Setup Java + GPG ---
21+
- name: Setup JDK
22+
uses: actions/setup-java@v3
23+
with:
24+
java-version: '21'
25+
distribution: temurin
26+
server-id: central
27+
server-username: OSSRH_USERNAME
28+
server-password: OSSRH_PASSWORD
29+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
30+
gpg-passphrase: GPG_PASSPHRASE
31+
32+
# --- Determine version ---
33+
- name: Determine version
34+
run: |
35+
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
36+
RAW_TAG=${GITHUB_REF#refs/tags/}
37+
VERSION=${RAW_TAG#v}
38+
VERSION=${VERSION#V}
39+
else
40+
VERSION=1.0.0-SNAPSHOT
41+
fi
42+
echo "VERSION=$VERSION" >> $GITHUB_ENV
43+
44+
# --- Set Maven project version ---
45+
- name: Set Maven version
46+
run: |
47+
mvn -B versions:set -DnewVersion=$VERSION
48+
mvn -B versions:set-property -Dproperty=revision -DnewVersion=$VERSION
49+
50+
# --- Build and deploy ---
51+
- name: Build & Deploy
52+
env:
53+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
54+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
55+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
56+
run: mvn -B -DskipTests clean deploy

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
### Java ###
2+
*.class
3+
*.log
4+
*.out
5+
*.hprof
6+
*.jnilib
7+
*.dll
8+
*.so
9+
10+
# Generated by annotation processors
11+
**/generated/
12+
**/generated-sources/
13+
**/generated-test-sources/
14+
15+
### Maven ###
16+
target/
17+
pom.xml.tag
18+
pom.xml.releaseBackup
19+
pom.xml.versionsBackup
20+
pom.xml.next
21+
release.properties
22+
23+
### IntelliJ IDEA ###
24+
.idea/
25+
*.iws
26+
*.iml
27+
*.ipr
28+
out/
29+
30+
# IDEA crash logs
31+
jetbrains-idea-crash*.zip
32+
33+
### VS Code ###
34+
.vscode/
35+
.history/
36+
.settings/
37+
*.code-workspace
38+
39+
### OS files ###
40+
.DS_Store
41+
Thumbs.db
42+
43+
### JARs you should not commit ###
44+
*.jar
45+
*.war
46+
*.ear

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 intellinside
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)