-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
57 lines (44 loc) · 1.31 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
54
55
56
57
import net.fabricmc.loom.api.LoomGradleExtensionAPI
plugins {
java
id("architectury-plugin") version "3.4-SNAPSHOT"
id("dev.architectury.loom") version "1.6-SNAPSHOT" apply false
}
val minecraftVersion: String by extra
val modVersion: String by extra
architectury {
minecraft = minecraftVersion
}
allprojects {
apply(plugin = "java")
version = modVersion
group = "dev.tonimatas"
repositories {
maven(url = "https://maven.blamejared.com")
maven(url = "https://maven.shedaniel.me")
maven(url = "https://maven.resourcefulbees.com/repository/maven-public")
}
}
subprojects {
apply(plugin = "dev.architectury.loom")
apply(plugin = "architectury-plugin")
base {
archivesName.set("krystalcraft-" + project.name)
}
configure<LoomGradleExtensionAPI> {
silentMojangMappingsLicense()
}
dependencies {
"minecraft"("com.mojang:minecraft:$minecraftVersion")
"mappings"(project.the<LoomGradleExtensionAPI>().officialMojangMappings())
}
tasks.withType<JavaCompile> {
options.release.set(21)
}
java {
withSourcesJar()
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
}