-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.gradle
112 lines (94 loc) · 2.44 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import com.modrinth.minotaur.TaskModrinthUpload
plugins {
id "java-library"
id "fabric-loom" version "0.7-SNAPSHOT"
id "com.matthewprenger.cursegradle" version "1.4.0"
id "com.modrinth.minotaur" version "1.2.0"
}
ext {
commonGradleBranch = "main"
minecraftVersion = "1.16.5"
yarnMappings = "1.16.5+build.6"
loaderVersion = "0.11.3"
fabricAPIVersion = "0.32.5+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.4.5-fabric"
group = "com.therandomlabs.randompatches"
archivesBaseName = "randompatches"
apply from: "https://raw.githubusercontent.com/TheRandomLabs/Common-Gradle/${project.commonGradleBranch}/fabric.gradle"
repositories {
maven {
url "https://maven.siphalor.de/"
}
maven {
url "https://www.cursemaven.com"
content {
includeGroup "curse.maven"
}
}
}
dependencies {
modImplementation "de.siphalor:amecsapi-1.16:1.1.1+mc1.16-rc1"
modImplementation "curse.maven:seamless_loading_screen-429926:3199283"
}
if (project.hasProperty("curseForgeAPIKey")) {
curseforge {
apiKey = project.curseForgeAPIKey
project {
id = "396245"
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"
mainArtifact(remapJar) {
changelogType = "markdown"
changelog = file("changelog.md")
displayName = "RandomPatches ${version}"
releaseType = "release"
relations {
optionalDependency "amecs"
}
}
addArtifact(sourcesJar) {
displayName = "RandomPatches ${version} Sources"
releaseType = "release"
}
addArtifact(javadocJar) {
displayName = "RandomPatches ${version} Javadoc"
releaseType = "release"
}
}
options {
forgeGradleIntegration = false
}
}
afterEvaluate {
tasks.curseforge396245.dependsOn build
}
}
if (project.hasProperty("modrinthToken")) {
task publishModrinth(type: TaskModrinthUpload) {
token = project.modrinthToken
projectId = "JmtW1Cr5"
versionNumber = version
versionName = "RandomPatches ${version}"
changelog = new File("changelog.md").getText()
uploadFile = remapJar
versionType = "release"
addGameVersion("1.16.5")
addGameVersion("1.16.4")
addGameVersion("1.16.3")
addGameVersion("1.16.2")
addLoader("fabric")
addFile(sourcesJar)
addFile(javadocJar)
}
}