-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
53 lines (41 loc) · 1.2 KB
/
build.gradle.kts
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
import net.fabricmc.loom.api.LoomGradleExtensionAPI
plugins {
java
id("architectury-plugin") version "3.4-SNAPSHOT"
id("dev.architectury.loom") version "1.7-SNAPSHOT" apply false
id("com.gradleup.shadow") version "8.3.5" apply false
}
val modVersion: String by extra
val minecraftVersion: String by extra
architectury {
minecraft = minecraftVersion
}
subprojects {
apply(plugin = "dev.architectury.loom")
apply(plugin = "com.gradleup.shadow")
base {
archivesName.set("packetfixer-" + project.name)
}
configure<LoomGradleExtensionAPI> {
silentMojangMappingsLicense()
}
dependencies {
"minecraft"("com.mojang:minecraft:$minecraftVersion")
"mappings"(project.the<LoomGradleExtensionAPI>().officialMojangMappings())
}
}
allprojects {
apply(plugin = "java")
apply(plugin = "architectury-plugin")
version = "$modVersion-$minecraftVersion"
group = "dev.tonimatas"
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(21)
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
}