generated from MeteorDevelopment/meteor-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.gradle.kts
58 lines (48 loc) · 1.51 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
58
plugins {
id("fabric-loom") version "1.7-SNAPSHOT"
}
base {
archivesName = project.property("archives_base_name").toString()
version = project.property("mod_version").toString()
group = project.property("maven_group").toString()
}
repositories {
maven("https://maven.meteordev.org/releases") {
name = "meteor-maven"
}
maven("https://maven.meteordev.org/snapshots") {
name = "meteor-maven-snapshots"
}
}
dependencies {
// Fabric
minecraft("com.mojang:minecraft:${project.property("minecraft_version")}")
mappings("net.fabricmc:yarn:${project.property("yarn_mappings")}:v2")
modImplementation("net.fabricmc:fabric-loader:${project.property("loader_version")}")
// Meteor
modImplementation("meteordevelopment:meteor-client:${project.property("meteor_version")}")
}
tasks {
processResources {
val propertiesMap = mapOf(
"version" to project.version,
"minecraft_version" to project.property("minecraft_version"),
"loader_version" to project.property("loader_version")
)
inputs.properties(propertiesMap)
filesMatching("fabric.mod.json") {
expand(propertiesMap)
}
}
withType<JavaCompile> {
options.encoding = "UTF-8"
options.release = 21
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
}
loom {
accessWidenerPath = file("src/main/resources/higtools.accesswidener")
}