-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
63 lines (52 loc) · 1.77 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
plugins {
id "architectury-plugin" version "3.4-SNAPSHOT"
id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
id "io.github.pacifistmc.forgix" version "1.2.9"
}
architectury {
minecraft = rootProject.minecraft_version
}
allprojects {
group = rootProject.maven_group
version = rootProject.mod_version
forgix {
group = "com.fabbe50.fogoverrides"
mergedJarName = "${archives_base_name}-${minecraft_version}-${mod_version}.jar"
fabric {
projectName = "fabric"
jarLocation = "build/libs/${archives_base_name}-fabric-${minecraft_version}-${mod_version}.jar"
}
neoforge {
projectName = "neoforge"
jarLocation = "build/libs/${archives_base_name}-neoforge-${minecraft_version}-${mod_version}.jar"
mixin "fogoverrides.mixins.json"
mixin "fogoverrides-common.mixins.json"
}
}
}
subprojects {
apply plugin: "dev.architectury.loom"
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
base {
archivesName = "${archives_base_name}-${project.name}-${minecraft_version}"
}
repositories {
maven { url "https://maven.neoforged.net/releases/"}
maven { url "https://maven.terraformersmc.com/releases/" }
}
dependencies {
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
mappings loom.officialMojangMappings()
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 21
}
}