Skip to content

Commit f927c1c

Browse files
authored
Initial commit
0 parents  commit f927c1c

File tree

15 files changed

+514
-0
lines changed

15 files changed

+514
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Java CI with Gradle
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v5
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '17'
23+
distribution: 'temurin'
24+
cache: 'gradle'
25+
- name: Build with Gradle
26+
uses: nick-invision/retry@v3
27+
with:
28+
timeout_minutes: 5
29+
max_attempts: 2
30+
command: gradle build

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.gradle/
2+
/.idea/
3+
build/
4+
bin/
5+
6+
# Visual Studio Code
7+
8+
.settings/
9+
.classpath
10+
.factorypath
11+
.project
12+
.vscode/

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Example-Expansion
2+
Example Expansion for MiniPlaceholders
3+
4+
This example contains everything you need to create a functional MiniPlaceholders v3 expansion.
5+
6+
Don't forget to modify the “expansion-provider.properties” file with the class that provides the expansion.
7+
8+
9+
To create extensions for older versions of MiniPlaceholders, review the commit history, although it is always recommended to use the latest version

build.gradle.kts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
plugins {
2+
java
3+
alias(libs.plugins.idea.ext)
4+
alias(libs.plugins.blossom)
5+
}
6+
7+
dependencies {
8+
compileOnly(libs.miniplaceholders)
9+
//compileOnly(libs.spark) Some library
10+
compileOnly(libs.adventure.api)
11+
compileOnly(libs.adventure.minimessage)
12+
}
13+
14+
java.toolchain.languageVersion.set(JavaLanguageVersion.of(21))
15+
tasks {
16+
compileJava {
17+
options.encoding = Charsets.UTF_8.name()
18+
options.release.set(21)
19+
}
20+
}
21+
22+
sourceSets {
23+
main {
24+
blossom {
25+
javaSources {
26+
property("version", project.version.toString())
27+
}
28+
}
29+
}
30+
}

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
group = io.github.miniplaceholders
2+
version = 2.0.0
3+
description = MiniPlaceholders Example Expansion

gradle/libs.versions.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
metadata.format.version = "1.1"
2+
3+
[versions]
4+
5+
velocity = "3.3.0-SNAPSHOT"
6+
paper = "1.20.2-R0.1-SNAPSHOT"
7+
8+
blossom = "2.1.0"
9+
shadow = "8.1.1"
10+
runtask = "2.3.1"
11+
12+
miniplaceholders = "3.0.0-SNAPSHOT"
13+
adventure = "4.24.0"
14+
adventurefabric = "5.10.1"
15+
16+
[libraries]
17+
18+
miniplaceholders = { group = "io.github.miniplaceholders", name = "miniplaceholders-api", version.ref = "miniplaceholders" }
19+
20+
adventure-api = { group = "net.kyori", name = "adventure-api", version.ref = "adventure" }
21+
adventure-minimessage = { group = "net.kyori", name = "adventure-text-minimessage", version.ref = "adventure" }
22+
adventure-platform-fabric = { group = "net.kyori", name = "adventure-platform-fabric", version.ref = "adventurefabric" }
23+
24+
[plugins]
25+
26+
blossom = { id = "net.kyori.blossom", version.ref = "blossom" }
27+
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
28+
runvelocity = { id = "xyz.jpenilla.run-velocity", version.ref = "runtask" }
29+
runpaper = { id = "xyz.jpenilla.run-velocity", version.ref = "runtask" }
30+
idea-ext = { id = "org.jetbrains.gradle.plugin.idea-ext", version = "1.2" }

gradle/wrapper/gradle-wrapper.jar

44.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-9.0.0-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

gradlew

Lines changed: 251 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)