-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
209 lines (175 loc) · 4.52 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
plugins {
id 'maven-publish'
alias libs.plugins.quilt.loom
}
def ENV = System.getenv()
def buildTime = ENV.BUILD_TIME ?: new Date().format('yyyyMMddHHmmss')
def javaVersion = 17
//TODO increment when updating the compendium
def book_version = 2
group = "dev.cammiescorner"
archivesBaseName = "arcanus-continuum"
boolean isPreviewBuild = !ENV.TAG || ENV.TAG.matches(".+-.+")
def buildNumber = !ENV.TAG ? ("${ENV.BUILD_NUMBER ? "build.${ENV.BUILD_NUMBER}" : buildTime}-${libs.versions.minecraft.get()}") : ""
version = (ENV.TAG ?: "development") + ((isPreviewBuild && !ENV.TAG) ? "+${buildNumber}" : "")
// messy workaround for bug in quilt loom 1.3.3
project.configurations.configureEach {
exclude(group: "net.fabricmc", module: "fabric-loader")
exclude(group: "net.fabricmc.fabric-api")
}
repositories {
maven {
name = "QuiltMC Snapshots"
url = "https://maven.quiltmc.org/repository/snapshot"
}
maven {
url = "https://maven.shedaniel.me"
}
maven {
name = "TerraformersMC"
url = "https://maven.terraformersmc.com"
}
maven {
name = "Ladysnake"
url = "https://maven.ladysnake.org/releases"
}
maven {
url = "https://maven.blamejared.com"
}
maven {
url = "https://maven.kosmx.dev"
}
maven {
url = "https://maven.jamieswhiteshirt.com/libs-release"
}
maven {
url = "https://maven.uuid.gg/releases"
}
maven {
url = "https://nexus.resourcefulbees.com/repository/maven-public/"
}
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
maven {
name = "CurseMaven"
url = "https://cursemaven.com"
content {
includeGroup "curse.maven"
}
}
maven {
name = "SonaType Snapshots"
url = "https://oss.sonatype.org/content/repositories/snapshots"
}
maven {
name = "JitPack"
url = "https://jitpack.io"
}
maven {
name 'Gegy'
url 'https://maven.gegy.dev'
}
}
dependencies {
minecraft libs.minecraft
mappings variantOf(libs.quilt.mappings) { classifier "intermediary-v2" }
modImplementation libs.quilt.loader
modImplementation libs.quilted.fabric.api
modRuntimeOnly (libs.quilted.fabric.api.deprecated) {
exclude(group: "org.quiltmc", module: "quilt-loader")
}
modImplementation (libs.sparkweave) {
exclude(group: "io.github.llamalad7")
}
modImplementation libs.bundles.cca
modImplementation libs.trinkets
modCompileOnly libs.patchouli
modLocalRuntime libs.patchouli
modImplementation libs.smartbrainlib
modImplementation libs.resourceful.config
modImplementation libs.reach.attr
include libs.reach.attr
// first person model
modImplementation libs.firstperson
// sodium
modImplementation libs.sodium
// iris
modImplementation libs.iris
// explosive enhancement
modImplementation libs.explosive.enhancement
// pehkui
modCompileOnly libs.pehkui
modRuntimeOnly libs.pehkui
modLocalRuntime libs.kanos
// lambdynamiclights
modImplementation libs.lambdynamiclights
modLocalRuntime libs.spruceui
// modmenu
modImplementation libs.modmenu
// LazyDFU
modLocalRuntime libs.lazydfu
}
loom {
mods {
"arcanuscontinuum" {
// Tell Loom about each source set used by your mod here. This ensures that your mod's classes are properly transformed by Loader.
sourceSet("main")
}
}
accessWidenerPath.set(project.file("src/main/resources/arcanuscontinuum.accesswidener"))
}
processResources {
inputs.property "version", version
inputs.property "book_version", book_version
filesMatching("quilt.mod.json") {
expand "version": version
}
filesMatching("**/patchouli_books/compendium_arcanus/book.json") {
expand "book_version": book_version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release.set(javaVersion)
}
java {
withSourcesJar()
toolchain {
languageVersion = JavaLanguageVersion.of(javaVersion)
}
}
jar {
from("LICENSE.md") {
rename { "LICENSE_${archivesBaseName}.md" }
}
manifest.mainAttributes(
"Implementation-Title": project.archivesBaseName,
"Implementation-Version": project.version,
"Maven-Artifact": "${project.group}:${project.archivesBaseName}:${project.version}".toLowerCase(Locale.ROOT),
"Built-On-Minecraft": libs.versions.minecraft.get(),
"Built-On-Java": "${System.getProperty("java.vm.version")} (${System.getProperty("java.vm.vendor")})"
)
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
if (ENV.MAVEN_UPLOAD_URL) {
maven {
url = ENV.MAVEN_UPLOAD_URL
credentials {
username = ENV.MAVEN_UPLOAD_USERNAME
password = ENV.MAVEN_UPLOAD_PASSWORD
}
}
}
}
}