-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
62 lines (51 loc) · 1.69 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
plugins {
id "architectury-plugin" version "3.4.143"
id "dev.architectury.loom" version "0.12.0.301" apply false
}
architectury {
minecraft = rootProject.minecraft_version
}
def version_replaces = [
"mod_id": rootProject.mod_id,
"mod_version": rootProject.mod_version,
"mod_name": rootProject.mod_name,
"mod_description": rootProject.mod_description,
"fabric_loader_version": rootProject.fabric_loader_version,
"minecraft_version": rootProject.minecraft_version,
"forge_version": rootProject.forge_version,
"base_mc_version": rootProject.base_mc_version,
"github": rootProject.github
]
subprojects {
apply plugin: "dev.architectury.loom"
dependencies {
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
mappings "net.fabricmc:yarn:${rootProject.yarn_mappings}:v2"
compileOnly "org.projectlombok:lombok:${rootProject.lombok_version}"
annotationProcessor "org.projectlombok:lombok:${rootProject.lombok_version}"
}
processResources {
filesMatching("fabric.mod.json") {
expand version_replaces
}
filesMatching("META-INF/mods.toml") {
expand version_replaces
}
}
}
allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = rootProject.archives_base_name
version = rootProject.mod_version
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.release.set(17)
}
java {
withSourcesJar()
}
}