2021-02-19 22:11:41 +00:00
|
|
|
plugins {
|
2024-07-09 17:14:32 +00:00
|
|
|
id "fabric-loom" version "1.7-SNAPSHOT"
|
2021-02-19 22:11:41 +00:00
|
|
|
}
|
|
|
|
|
2024-05-03 20:36:20 +00:00
|
|
|
base {
|
2024-08-26 02:50:34 +00:00
|
|
|
archivesName = project.archives_base_name
|
2024-05-03 20:36:20 +00:00
|
|
|
version = project.mod_version
|
|
|
|
group = project.maven_group
|
|
|
|
}
|
2021-02-19 22:11:41 +00:00
|
|
|
|
|
|
|
repositories {
|
2021-12-01 12:28:51 +00:00
|
|
|
maven {
|
2023-05-01 22:30:47 +00:00
|
|
|
name = "Meteor Dev Releases"
|
2021-12-01 12:28:51 +00:00
|
|
|
url = "https://maven.meteordev.org/releases"
|
|
|
|
}
|
2021-06-14 23:43:49 +00:00
|
|
|
maven {
|
2023-05-01 22:30:47 +00:00
|
|
|
name = "Meteor Dev Snapshots"
|
2021-10-01 17:54:23 +00:00
|
|
|
url = "https://maven.meteordev.org/snapshots"
|
2021-06-14 23:43:49 +00:00
|
|
|
}
|
2021-02-19 22:11:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-10-31 16:09:39 +00:00
|
|
|
// Fabric
|
2021-06-14 23:43:49 +00:00
|
|
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
2021-08-31 14:40:44 +00:00
|
|
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
2021-06-14 23:43:49 +00:00
|
|
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
2021-02-19 22:11:41 +00:00
|
|
|
|
2021-06-14 23:43:49 +00:00
|
|
|
// Meteor
|
2021-10-01 17:54:23 +00:00
|
|
|
modImplementation "meteordevelopment:meteor-client:${project.meteor_version}"
|
2021-02-19 22:11:41 +00:00
|
|
|
}
|
|
|
|
|
2024-05-03 20:36:20 +00:00
|
|
|
tasks {
|
|
|
|
processResources {
|
|
|
|
def propertyMap = [
|
|
|
|
"version" : project.version,
|
|
|
|
"mc_version": project.minecraft_version,
|
|
|
|
]
|
|
|
|
|
|
|
|
filesMatching("fabric.mod.json") {
|
|
|
|
expand(propertyMap)
|
|
|
|
}
|
2021-06-14 23:43:49 +00:00
|
|
|
}
|
2021-02-19 22:11:41 +00:00
|
|
|
|
2024-05-03 20:36:20 +00:00
|
|
|
jar {
|
|
|
|
from("LICENSE") {
|
|
|
|
rename { "${it}_${project.base.archivesBaseName}" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
|
|
it.options.encoding = "UTF-8"
|
|
|
|
it.options.release = 21
|
|
|
|
}
|
2021-06-14 23:43:49 +00:00
|
|
|
}
|