Skip to content

Commit ab20d04

Browse files
committed
feat: initial commit
0 parents  commit ab20d04

200 files changed

Lines changed: 130832 additions & 0 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# EditorConfig — https://editorconfig.org
2+
root = true
3+
4+
# ── Defaults for all files ────────────────────────────────────────────────────
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_style = space
9+
indent_size = 4
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
# ── Java ──────────────────────────────────────────────────────────────────────
14+
[*.java]
15+
max_line_length = 200
16+
17+
# ── Build & Config (XML / POM) ────────────────────────────────────────────────
18+
[{*.xml,*.xsd}]
19+
max_line_length = 200
20+
21+
# ── Web / Cloud Config ────────────────────────────────────────────────────────
22+
[*.{yml,yaml,json}]
23+
indent_size = 2
24+
25+
# ── Markdown ──────────────────────────────────────────────────────────────────
26+
# Trailing spaces are significant in Markdown (line break); keep them.
27+
[*.md]
28+
trim_trailing_whitespace = false
29+
max_line_length = off
30+
31+
# ── Shell scripts ─────────────────────────────────────────────────────────────
32+
[*.sh]
33+
indent_size = 2

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.java eol=lf
2+
*.properties eol=lf
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Build with JDK 17 on Ubuntu
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch: {}
11+
12+
# cancel superseded runs on the same branch/PR to save CI minutes.
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Check out repository (incl. font submodules)
26+
uses: actions/checkout@v4
27+
with:
28+
submodules: recursive
29+
fetch-depth: 1
30+
31+
- name: Verify font submodules were checked out
32+
shell: bash
33+
run: |
34+
set -euo pipefail
35+
for module in figlet-fonts-xero; do
36+
dir="$module/src/main/resources/fonts"
37+
count=$(find "$dir" -type f \( -name '*.flf' -o -name '*.tlf' \) 2>/dev/null | wc -l)
38+
echo "Found $count font file(s) in $dir"
39+
if [ "$count" -eq 0 ]; then
40+
echo "::error::$module has no font files. Was the git submodule checked out (submodules: recursive)?"
41+
exit 1
42+
fi
43+
done
44+
45+
- name: Set up JDK 17
46+
uses: actions/setup-java@v4
47+
with:
48+
java-version: '17'
49+
distribution: 'temurin'
50+
cache: maven
51+
52+
- name: Build with Maven/JDK 17 on Ubuntu
53+
run: mvn --batch-mode --file pom.xml clean package
54+
55+
deploy:
56+
needs: build
57+
if: github.event_name == 'push'
58+
runs-on: ubuntu-latest
59+
permissions:
60+
contents: read
61+
packages: write
62+
steps:
63+
- name: Check out repository (incl. font submodules)
64+
uses: actions/checkout@v4
65+
with:
66+
submodules: recursive
67+
fetch-depth: 1
68+
69+
- name: Set up Java for deployment to Sonatype snapshot repo
70+
uses: actions/setup-java@v4
71+
with:
72+
java-version: '17'
73+
distribution: 'temurin'
74+
cache: maven
75+
# Sonatype Central Snapshots
76+
# must match distributionManagement/snapshotRepository/id in pom:
77+
server-id: central
78+
server-username: SONATYPE_CENTRAL_USERNAME
79+
server-password: SONATYPE_CENTRAL_PASSWORD
80+
81+
- name: Deploy to Sonatype Central snapshot repo
82+
run: mvn --batch-mode --file pom.xml --activate-profiles fast deploy
83+
env:
84+
SONATYPE_CENTRAL_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
85+
SONATYPE_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
86+

.github/workflows/ci_jdk17_win.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build with JDK 17 on Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch: {}
11+
12+
# cancel superseded runs on the same branch/PR to save CI minutes.
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
22+
build:
23+
runs-on: windows-latest
24+
steps:
25+
- name: Check out repository (incl. font submodules)
26+
uses: actions/checkout@v4
27+
with:
28+
submodules: recursive
29+
fetch-depth: 1
30+
31+
- name: Verify font submodules were checked out
32+
shell: bash
33+
run: |
34+
set -euo pipefail
35+
for module in figlet-fonts-xero; do
36+
dir="$module/src/main/resources/fonts"
37+
count=$(find "$dir" -type f \( -name '*.flf' -o -name '*.tlf' \) 2>/dev/null | wc -l)
38+
echo "Found $count font file(s) in $dir"
39+
if [ "$count" -eq 0 ]; then
40+
echo "::error::$module has no font files. Was the git submodule checked out (submodules: recursive)?"
41+
exit 1
42+
fi
43+
done
44+
45+
- name: Set up JDK 17
46+
uses: actions/setup-java@v4
47+
with:
48+
java-version: '17'
49+
distribution: 'temurin'
50+
cache: maven
51+
52+
- name: Build with Maven/JDK 17 on Windows
53+
run: mvn --batch-mode --file pom.xml clean verify
54+

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
**/.classpath
2+
**/.project
3+
**/.settings
4+
**/bin/
5+
**/target/
6+
**/.eclipse-pmd
7+
**/.pmd
8+
**/.pmdruleset.xml
9+
**/NOTES.txt
10+
*.iml
11+
.checkstyle
12+
.idea
13+
.~lock*
14+
*.kate-swp
15+

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "figlet-fonts-xero/src/main/resources/fonts"]
2+
path = figlet-fonts-xero/src/main/resources/fonts
3+
url = https://github.com/xero/figlet-fonts
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
wrapperVersion=3.3.4
2+
distributionType=only-script
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.16/apache-maven-3.9.16-bin.zip

0 commit comments

Comments
 (0)