-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
95 lines (81 loc) · 2.21 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
85
86
87
88
89
90
91
92
93
94
95
import com.modrinth.minotaur.TaskModrinthUpload
plugins {
id "java-library"
id "fabric-loom" version "0.5-SNAPSHOT"
id "com.matthewprenger.cursegradle" version "1.4.0"
id "com.modrinth.minotaur" version "1.1.0"
}
ext {
commonGradleBranch = "master"
minecraftVersion = "1.16.5"
yarnMappings = "1.16.5+build.1"
loaderVersion = "0.11.1"
fabricAPIVersion = "0.29.3+1.16"
modMenuVersion = "1.14.13+build.19"
clothConfigVersion = "4.8.3"
autoConfigVersion = "3.3.1"
autoConfigTOMLVersion = "autoconfig-3.x.x-fabric-SNAPSHOT"
}
version = "2.0.6-fabric"
group = "com.therandomlabs.vanilladeathchest"
archivesBaseName = "vanilladeathchest"
apply from: "https://raw.githubusercontent.com/TheRandomLabs/Common-Gradle/${project.commonGradleBranch}/fabric.gradle"
if (project.hasProperty("curseForgeAPIKey")) {
curseforge {
apiKey = project.curseForgeAPIKey
project {
id = "393000"
addGameVersion "Fabric"
addGameVersion "Java 10"
addGameVersion "Java 9"
addGameVersion "Java 8"
addGameVersion "1.16.5"
addGameVersion "1.16.4"
addGameVersion "1.16.3"
addGameVersion "1.16.2"
addGameVersion "1.16.1"
mainArtifact(remapJar) {
changelogType = "markdown"
changelog = file("changelog.md")
displayName = "VanillaDeathChest ${version}"
releaseType = "alpha"
relations {
requiredDependency "fabric-api"
}
}
addArtifact(sourcesJar) {
displayName = "VanillaDeathChest ${version} Sources"
releaseType = "release"
}
addArtifact(javadocJar) {
displayName = "VanillaDeathChest ${version} Javadoc"
releaseType = "release"
}
}
options {
forgeGradleIntegration = false
}
}
afterEvaluate {
tasks.curseforge393000.dependsOn build
}
}
if (project.hasProperty("modrinthToken")) {
task publishModrinth(type: TaskModrinthUpload) {
token = project.modrinthToken
projectId = "WtzGQgcZ"
versionNumber = version
versionName = "VanillaDeathChest ${version}"
changelog = new File("changelog.md").getText()
uploadFile = remapJar
releaseType = "alpha"
addGameVersion("1.16.5")
addGameVersion("1.16.4")
addGameVersion("1.16.3")
addGameVersion("1.16.2")
addGameVersion("1.16.1")
addLoader("fabric")
addFile(sourcesJar)
addFile(javadocJar)
}
}