-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
44 lines (34 loc) · 963 Bytes
/
build.gradle
File metadata and controls
44 lines (34 loc) · 963 Bytes
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
plugins {
id "dev.architectury.loom" version "1.1-SNAPSHOT"
id "maven-publish"
id "com.matthewprenger.cursegradle" version "1.4.0"
id 'java-library'
}
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
loom {
silentMojangMappingsLicense()
mods {
subprojects.forEach { subproject ->
register(subproject.name) {
sourceSet(subproject.sourceSets.main)
}
}
}
}
repositories {
maven { url = 'https://maven.parchmentmc.org' }
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.layered() {
officialMojangMappings()
}
forge 'net.minecraftforge:forge:' + project.minecraft_version + '-' + project.forge_version
}
afterEvaluate {
dependencies {
subprojects.forEach { subproject ->
implementation(project(path: subproject.name, configuration: "namedElements"))
}
}
}