This repository was archived by the owner on Oct 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (74 loc) · 2.99 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
plugins {
alias libs.plugins.architectury
alias libs.plugins.architectury.loom apply false
alias libs.plugins.quiltFlower apply false // Quiltflower, a better decompiler
alias libs.plugins.machete // automatic jar compressing on build
}
def is_root_project = project == rootProject
architectury {
minecraft = libs.versions.minecraft
}
subprojects {
apply plugin: "dev.architectury.loom"
apply plugin: "io.github.juuxel.loom-quiltflower"
loom {
silentMojangMappingsLicense()
// for (final def setting in runConfigs) {
// setting.vmArgs()
// }
}
repositories {
mavenLocal()
mavenCentral()
maven { url = "https://mvn.devos.one/snapshots/" }
maven { url = "https://maven.tterrag.com/" }
maven {url = "https://api.modrinth.com/maven"}
maven {url "https://cursemaven.com"} // Curse Forge File
maven {url = "https://modmaven.dev"} // JEI mirror, AE2
maven { url = "https://maven.parchmentmc.org" } // Parchment mappings
maven { url = "https://maven.quiltmc.org/repository/release" } // Quilt Mappings
maven { url = "https://maven.firstdarkdev.xyz/snapshots" } // LDLib, Photon
maven {url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'} // GeckoLib
}
dependencies {
minecraft "com.mojang:minecraft:${libs.versions.minecraft.get()}"
if (is_root_project) {
// layered mappings - Mojmap names, parchment and QM docs and parameters
mappings loom.layered {
it.mappings("org.quiltmc:quilt-mappings:${libs.versions.minecraft.get()}+build.${libs.versions.quiltMappings.get()}:intermediary-v2")
it.parchment("org.parchmentmc.data:parchment-${libs.versions.parchment.get()}@zip")
it.officialMojangMappings { nameSyntheticMembers = false }
}
}
// see each subproject for dependencies.
// lombok
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
}
}
allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
archivesBaseName = "${project.name}-${libs.versions.minecraft.get()}"
group = rootProject.maven_group
version = "${mod_version}"
repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
java {
withSourcesJar()
}
machete {
// disable machete locally for faster builds
enabled = false
}
}