-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
68 lines (54 loc) · 1.73 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
plugins {
id "architectury-plugin" version "3.4-SNAPSHOT"
id "dev.architectury.loom" version "1.6-SNAPSHOT" apply false
id "io.github.pacifistmc.forgix" version "1.2.9"
}
architectury {
minecraft = rootProject.minecraft_version
}
subprojects {
apply plugin: "dev.architectury.loom"
apply plugin: 'architectury-plugin'
repositories {
maven { url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/' }
maven { url "https://maven.shedaniel.me/" }
maven { url "https://maven.terraformersmc.com/releases/" }
}
dependencies {
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
mappings loom.officialMojangMappings()
}
build.finalizedBy(mergeJars)
assemble.finalizedBy(mergeJars)
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
}
}
allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
archivesBaseName = rootProject.archives_base_name
version = rootProject.mod_version
group = rootProject.maven_group
}
forgix {
group = rootProject.groupId
mergedJarName = "${rootProject.name}-${rootProject.version}-universal.jar"
outputDir = "build/libs"
forge {
jarLocation = "build/libs/${rootProject.name}-${rootProject.version}.jar"
mixin "terrariamod.mixins.json"
}
fabric {
jarLocation = "build/libs/${rootProject.name}-${rootProject.version}.jar"
}
quilt {
jarLocation = "build/libs/${rootProject.name}-${rootProject.version}.jar"
}
}