Skip to content

Commit 9614b3b

Browse files
to gradle project
1 parent 4636ec8 commit 9614b3b

File tree

17 files changed

+551
-664
lines changed

17 files changed

+551
-664
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,37 @@
1-
name: release
2-
3-
on:
4-
push:
5-
tags:
6-
- '*'
7-
1+
name: 'release'
2+
on: [ push, pull_request ]
3+
permissions:
4+
contents: write
85
jobs:
9-
release:
10-
runs-on: ubuntu-latest
6+
ci:
7+
runs-on: ubuntu-22.04
118
steps:
129

13-
- name: Git
14-
uses: actions/checkout@v4
10+
- name: 'Checkout repository'
11+
uses: actions/checkout@v5
12+
with:
13+
fetch-depth: 0
14+
15+
- name: 'Validate gradlew'
16+
uses: gradle/actions/wrapper-validation@v5
1517

16-
- name: Java
17-
uses: actions/setup-java@v4.2.2
18+
- name: 'Setup Java'
19+
uses: actions/setup-java@v5
1820
with:
1921
java-version: '21'
2022
distribution: 'temurin'
2123
check-latest: true
24+
cache: 'gradle'
2225

23-
- name: Cache
24-
uses: actions/[email protected]
25-
with:
26-
path: ~/.m2
27-
key: '${{ runner.os }}-m2-${{ hashFiles(''**/pom.xml'') }}'
28-
restore-keys: '${{ runner.os }}-m2'
26+
- name: 'Change permissions'
27+
run: chmod +x ./gradlew
2928

30-
- name: Package
31-
run: mvn --batch-mode --show-version --errors package --file pom.xml
29+
- name: 'Build plugin'
30+
run: ./gradlew --console plain --no-daemon --full-stacktrace check build
3231

33-
- name: Draft
34-
id: create_release
35-
uses: actions/create-release@v1
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
- name: 'Release plugin'
33+
uses: softprops/action-gh-release@v2
34+
if: startsWith(github.ref, 'refs/tags/v')
3835
with:
39-
tag_name: ${{ github.ref }}
40-
release_name: ${{ github.ref }}
4136
body: 'automated release at commit ${{ github.sha }}'
42-
draft: false
43-
prerelease: false
44-
45-
- name: Release
46-
uses: csexton/release-asset-action@v3
47-
with:
48-
pattern: "target/AntiIllegals-*.jar"
49-
github-token: ${{ secrets.GITHUB_TOKEN }}
50-
release-url: ${{ steps.create_release.outputs.upload_url }}
37+
files: 'build/dist/*.jar'

.gitignore

Lines changed: 6 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,6 @@
1-
# User-specific stuff
2-
.idea/
3-
4-
*.iml
5-
*.ipr
6-
*.iws
7-
8-
# IntelliJ
9-
out/
10-
11-
# Compiled class file
12-
*.class
13-
14-
# Log file
15-
*.log
16-
17-
# BlueJ files
18-
*.ctxt
19-
20-
# Package Files #
21-
*.jar
22-
*.war
23-
*.nar
24-
*.ear
25-
*.zip
26-
*.tar.gz
27-
*.rar
28-
29-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
30-
hs_err_pid*
31-
32-
*~
33-
34-
# temporary files which can be created if a process still has a handle open of a deleted file
35-
.fuse_hidden*
36-
37-
# KDE directory preferences
38-
.directory
39-
40-
# Linux trash folder which might appear on any partition or disk
41-
.Trash-*
42-
43-
# .nfs files are created when an open file is removed but is still being accessed
44-
.nfs*
45-
46-
# General
47-
.DS_Store
48-
.AppleDouble
49-
.LSOverride
50-
51-
# Icon must end with two \r
52-
Icon
53-
54-
# Thumbnails
55-
._*
56-
57-
# Files that might appear in the root of a volume
58-
.DocumentRevisions-V100
59-
.fseventsd
60-
.Spotlight-V100
61-
.TemporaryItems
62-
.Trashes
63-
.VolumeIcon.icns
64-
.com.apple.timemachine.donotpresent
65-
66-
# Directories potentially created on remote AFP share
67-
.AppleDB
68-
.AppleDesktop
69-
Network Trash Folder
70-
Temporary Items
71-
.apdisk
72-
73-
# Windows thumbnail cache files
74-
Thumbs.db
75-
Thumbs.db:encryptable
76-
ehthumbs.db
77-
ehthumbs_vista.db
78-
79-
# Dump file
80-
*.stackdump
81-
82-
# Folder config file
83-
[Dd]esktop.ini
84-
85-
# Recycle Bin used on file shares
86-
$RECYCLE.BIN/
87-
88-
# Windows Installer files
89-
*.cab
90-
*.msi
91-
*.msix
92-
*.msm
93-
*.msp
94-
95-
# Windows shortcuts
96-
*.lnk
97-
98-
target/
99-
100-
pom.xml.tag
101-
pom.xml.releaseBackup
102-
pom.xml.versionsBackup
103-
pom.xml.next
104-
105-
release.properties
106-
dependency-reduced-pom.xml
107-
buildNumber.properties
108-
.mvn/timing.properties
109-
.mvn/wrapper/maven-wrapper.jar
110-
.flattened-pom.xml
111-
112-
# Common working directory
113-
run/
1+
/.gradle/
2+
/build/
3+
/run/
4+
/devbox.lock
5+
/.idea/
6+
/lib/

.idea/encodings.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.idea/uiDesigner.xml

Lines changed: 0 additions & 124 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)