This repository was archived by the owner on Feb 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
84 lines (76 loc) · 1.9 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id "com.modrinth.minotaur" version "2.8.1"
id "xyz.jpenilla.run-paper" version "2.1.0"
}
version = project.hasProperty('release') ? project.getProperty('release') : 'dev'
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenCentral()
maven {
name = "Spigot"
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
mavenLocal()
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT'
implementation 'gs.mclo:api:4.0.1'
implementation "net.kyori:adventure-api:4.13.0"
implementation "net.kyori:adventure-platform-bukkit:4.2.0"
}
processResources {
inputs.property "version", project.version
filesMatching("plugin.yml") {
expand "version": project.version
}
}
shadowJar {
from sourceSets.main.allSource
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveFileName = "mclogs-bukkit-${project.version}.jar"
}
tasks {
runServer {
minecraftVersion("1.20.1")
}
}
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "6DdCzpTL"
uploadFile = shadowJar
gameVersions = [
"1.20",
"1.19.4",
"1.19.3",
"1.19.2",
"1.19.1",
"1.19",
"1.18.2",
"1.18.1",
"1.18",
"1.17.1",
"1.17",
"1.16.5",
"1.16.4",
"1.16.3",
"1.16.2",
"1.16.1",
"1.16",
"1.15.2",
"1.15.1",
"1.15",
"1.14.4",
"1.14.3",
"1.14.2",
"1.14.1",
"1.14",
"1.13.2",
"1.13.1",
"1.13",
]
loaders = ["spigot", "paper", "purpur"]
changelog = rootProject.file("CHANGELOG.md").text
}