forked from aternosorg/motdgg-bukkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (55 loc) · 1.43 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
plugins {
id 'java'
id "com.modrinth.minotaur" version "2.+"
}
version = project.hasProperty('release') ? project.getProperty('release') : 'dev'
repositories {
mavenCentral()
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
mavenLocal()
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT'
compileOnly 'org.jetbrains:annotations:23.0.0'
}
processResources {
inputs.property "version", project.version
filesMatching("plugin.yml") {
expand "version": project.version
}
}
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "" // TODO: add real project ID
uploadFile = "./build/libs/motdgg-bukkit-${project.version}.jar"
gameVersions = [
"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",
// TODO: check compatibility with pre-1.13
]
loaders = ["spigot", "paper", "purpur"]
changelog = rootProject.file("CHANGELOG.md").text
}