forked from MeteorClientPlus/MeteorPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
119 lines (107 loc) · 2.78 KB
/
build.gradle.kts
File metadata and controls
119 lines (107 loc) · 2.78 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
plugins {
alias(libs.plugins.fabric.loom)
id("maven-publish")
}
base {
archivesName = properties["archives_name"] as String
version = libs.versions.mod.version.get()
group = properties["maven_group"] as String
}
configurations.all {
// Check for snapshots more frequently than Gradle's default of 1 day. 0 = every build.
resolutionStrategy.cacheChangingModulesFor(0, "seconds")
}
repositories {
maven {
url = uri("https://jm.gserv.me/repository/maven-public/")
content {
includeGroup("info.journeymap")
}
}
maven {
url = uri("https://api.modrinth.com/maven/")
content {
includeGroup("maven.modrinth")
}
}
maven {
url = uri("https://www.cursemaven.com")
}
maven {
url = uri("https://masa.dy.fi/maven")
}
// YACL
maven {
url = uri("https://maven.isxander.dev/releases")
}
// YACL Snapshots
maven {
name = "Xander Snapshot Maven"
url = uri("https://maven.isxander.dev/snapshots")
}
// Where Is It, JackFredLib
maven {
url = uri("https://maven.jackf.red/releases/")
}
// Meteor Client
maven {
name = "meteor-maven"
url = uri("https://maven.meteordev.org/releases")
}
maven {
name = "meteor-maven-snapshots"
url = uri("https://maven.meteordev.org/snapshots")
}
mavenCentral()
gradlePluginPortal()
}
dependencies {
// Fabric
minecraft(libs.minecraft)
mappings(variantOf(libs.yarn) { classifier("v2") })
modImplementation(libs.fabric.loader)
// Fabric API
modImplementation(libs.fabric.api)
// Mixin extras
annotationProcessor("io.github.llamalad7:mixinextras-fabric:0.5.0")
// Meteor Client
modImplementation(files("libs\\baritone-unoptimized-fabric-1.15.0-2-gf7a53504.jar"))
modImplementation(libs.meteor.client)
implementation(libs.starscript)
implementation(libs.orbit)
// Xaero's Mods
modCompileOnly(libs.xwm) // Xaero's World Map
modCompileOnly(libs.xmm) // Xaero's Minimap
modCompileOnly(files("libs\\xaerolib-fabric-1.21.11-1.0.38.jar"))
// Chest Tracker
modImplementation(libs.whereisit)
}
loom {
accessWidenerPath = file("src/main/resources/meteorplus.accesswidener")
}
tasks {
processResources {
val propertyMap = mapOf(
"version" to project.version,
"mc_version" to libs.versions.minecraft.get(),
"gh_hash" to (System.getenv("GITHUB_SHA") ?: ""),
)
filesMatching("fabric.mod.json") {
expand (propertyMap)
}
}
jar {
val licenseSuffix = project.base.archivesName.get()
from("LICENSE") {
rename { "${it}_${licenseSuffix}" }
}
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
withType<JavaCompile> {
options.encoding = "UTF-8"
options.release = 21
}
}