forked from Ladysnake/Requiem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
195 lines (173 loc) · 6.02 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
// Credits to UpcraftLP for the base build script
plugins {
alias(libs.plugins.chenille)
}
group = rootProject.maven_group
archivesBaseName = rootProject.name
allprojects {
apply plugin: 'maven-publish'
apply plugin: 'io.github.ladysnake.chenille'
version = project.mod_version
chenille {
license = 'GPL_WITH_MC_EXCEPTION'
displayName = 'Requiem'
owners = 'Ladysnake'
}
license {
exclude '**/package-info.java'
}
repositories {
chenille.repositories {
cotton()
jamieswhiteshirt()
cursemaven()
shedaniel()
lucko()
modrinth()
jitpack()
}
maven {
name = 'Quilt'
url = 'https://maven.quiltmc.org/repository/snapshot'
}
maven { repo ->
repo.name = "Ladysnake Mods"
repo.setUrl("https://ladysnake.jfrog.io/artifactory/mods")
repo.content {
it.includeGroupByRegex("dev\\.emi.*")
it.includeGroup("io.github.ladysnake")
it.includeGroupByRegex("(dev|io\\.github)\\.onyxstudios.*")
it.includeGroupByRegex("org.quiltmc.*")
}
}
maven {
url = 'https://maven.willbl.dev/releases'
content {
includeGroupByRegex 'com\\.williambl.*'
}
}
maven {
name = "Appleskin"
url = "https://maven.ryanliptak.com/"
content {
includeGroup 'squeek.appleskin'
}
}
maven {
url = 'https://maven.cafeteria.dev'
content {
includeGroup 'net.adriantodt.fabricmc'
}
}
maven {
url 'https://maven.blamejared.com'
content {
includeGroupByRegex 'vazkii\\..*'
}
}
maven {
url = "https://maven.theillusivec4.top"
content {
includeGroupByRegex 'top\\.theillusivec4\\..*'
}
}
maven {
url = "https://maven.siphalor.de"
content {
includeGroup 'de.siphalor'
}
}
maven {
name = "TerraformersMC"
url = "https://maven.terraformersmc.com/releases"
content {
includeGroupByRegex 'com.terraformersmc.*'
includeGroup 'dev.emi'
}
}
mavenLocal()
}
processResources {
inputs.property "version", project.version
filesMatching("quilt.mod.json") {
expand "version": project.version
}
}
java {
withSourcesJar()
}
dependencies {
//to change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "org.quiltmc:quilt-mappings:${minecraft_version}+build.${quilt_mappings}:intermediary-v2"
modImplementation "org.quiltmc:quilt-loader:${project.loader_version}"
modImplementation "org.quiltmc:qsl:${qsl_version}+${minecraft_version}"
modImplementation "org.quiltmc.quilted-fabric-api:quilted-fabric-api:${quilted_fabric_api_version}-${minecraft_version}"
compileOnly metaLibs.bundles.devAnnotations
}
}
chenille {
configureTestmod()
configurePublishing {
mainArtifact = remapJar.archiveFile
withArtifactory()
withCurseforgeRelease()
withGithubRelease()
withModrinthRelease()
}
}
license {
exclude '**/model/lib/**.java'
exclude '**/RayHelper.java'
}
dependencies {
// Looking for version definitions? see https://docs.gradle.org/7.4-rc-1/userguide/platforms.html
// Required dependencies
api include(project(path: ":requiem-api", configuration: "namedElements")) { transitive = false }
api include(project(path: ":requiem-core", configuration: "namedElements")) { transitive = false }
modImplementation libs.bundles.requiredLibraries
include libs.bundles.requiredLibraries
// Test dependencies
testImplementation testLibs.junit
testImplementation testLibs.mockito
testmodImplementation testLibs.mockito
modLocalImplementation testLibs.elmendorf
// Optional dependencies
modCompileOnly libs.modmenu
modLocalRuntime libs.modmenu
modCompileOnly (libs.bundles.cloth) { transitive = false }
modLocalRuntime (libs.bundles.cloth) { transitive = false }
include libs.fiberToCloth
// Extra compatibility dependencies
// modLocalRuntime compatLibs.mobz
modCompileOnly (compatLibs.betterGraves) { transitive = false }
// modLocalRuntime compatLibs.betterGraves
// modCompileOnly compatLibs.biomeMakeover
// modLocalRuntime compatLibs.biomeMakeover
modCompileOnly (compatLibs.trinkets) { transitive = false }
// modLocalRuntime compatLibs.trinkets
modCompileOnly (compatLibs.pehkui) { transitive = false }
// modLocalRuntime compatLibs.pehkui
modCompileOnly (compatLibs.snowmercy) { transitive = false }
// modLocalRuntime compatLibs.snowmercy
modCompileOnly (compatLibs.bundles.origins) { transitive = false }
modLocalRuntime (compatLibs.bundles.origins)
modLocalImplementation (compatLibs.additionalEntityAttributes)
modCompileOnly (compatLibs.eldritchMobs) { transitive = false }
// modLocalRuntime compatLibs.eldritchMobs
modCompileOnly (compatLibs.haema) { transitive = false }
// modLocalRuntime compatLibs.bundles.haema
modCompileOnly (compatLibs.golemsGalore) { transitive = false }
// modLocalRuntime compatLibs.bundles.golemsGalore
modCompileOnly (compatLibs.bumblezone) { transitive = false }
// modLocalRuntime compatLibs.bumblezone
modCompileOnly (compatLibs.bewitchment) { transitive = false }
// modLocalRuntime compatLibs.bundles.bewitchment
modLocalImplementation (compatLibs.trinkets)
modLocalRuntime compatLibs.collective
}
remapJar.dependsOn(project(":requiem-core").tasks.remapJar)
jar {
from 'LICENSE-CODE'
from 'LICENSE-ART'
}