Skip to content

Commit df6717e

Browse files
committed
Initial Commit
0 parents  commit df6717e

File tree

18 files changed

+922
-0
lines changed

18 files changed

+922
-0
lines changed

.github/workflows/build.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: build
2+
on: [pull_request, push]
3+
4+
jobs:
5+
build:
6+
strategy:
7+
matrix:
8+
# Use these Java versions
9+
java: [
10+
11.0.19
11+
]
12+
# and run on Linux
13+
os: [ubuntu-22.04]
14+
runs-on: ${{ matrix.os }}
15+
permissions: write-all
16+
steps:
17+
- name: checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: setup jdk ${{ matrix.java }}
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: ${{ matrix.java }}
24+
distribution: 'microsoft'
25+
26+
- name: make gradle wrapper executable
27+
if: ${{ runner.os != 'Windows' }}
28+
run: chmod +x ./gradlew
29+
30+
- name: build
31+
run: ./gradlew build
32+
33+
- name: capture build artifacts
34+
if: ${{ runner.os == 'Linux' && matrix.java == '11.0.19' }}
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: Artifacts
38+
path: build/libs/
39+
40+
- name: Create prerelease
41+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) # Only runs if this CI was triggered by the default branch
42+
uses: "marvinpinto/action-automatic-releases@latest"
43+
with:
44+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
45+
automatic_release_tag: "latest"
46+
prerelease: true
47+
title: "Latest Build"
48+
files: |
49+
./build/libs/*.jar

.gitignore

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

LICENSE

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

build.gradle.kts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
plugins {
2+
kotlin("jvm") version "2.1.10"
3+
id("com.github.johnrengelman.shadow") version "8.1.1"
4+
}
5+
6+
group = "strictpvp"
7+
8+
repositories {
9+
mavenCentral()
10+
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
11+
name = "spigotmc-repo"
12+
}
13+
maven("https://oss.sonatype.org/content/groups/public/") {
14+
name = "sonatype"
15+
}
16+
}
17+
18+
dependencies {
19+
compileOnly("org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT")
20+
compileOnly("net.luckperms:api:5.4")
21+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
22+
}
23+
24+
val targetJavaVersion = 17
25+
kotlin {
26+
jvmToolchain(targetJavaVersion)
27+
}
28+
29+
tasks.build {
30+
dependsOn("shadowJar")
31+
}
32+
33+
tasks.processResources {
34+
val props = mapOf("version" to project.property("version"))
35+
inputs.properties(props)
36+
filteringCharset = "UTF-8"
37+
filesMatching("plugin.yml") {
38+
expand(props)
39+
}
40+
}

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=1.0.0

gradle/wrapper/gradle-wrapper.jar

42.4 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)