2021-02-19 22:11:41 +00:00
|
|
|
plugins {
|
2021-06-14 23:43:49 +00:00
|
|
|
id 'fabric-loom' version '0.8-SNAPSHOT'
|
|
|
|
id 'maven-publish'
|
2021-02-19 22:11:41 +00:00
|
|
|
}
|
|
|
|
|
2021-06-14 20:27:29 +00:00
|
|
|
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16
|
2021-02-19 22:11:41 +00:00
|
|
|
|
|
|
|
archivesBaseName = project.archives_base_name
|
|
|
|
version = project.mod_version
|
|
|
|
group = project.maven_group
|
|
|
|
|
|
|
|
repositories {
|
2021-06-14 23:43:49 +00:00
|
|
|
maven {
|
2021-10-01 17:54:23 +00:00
|
|
|
name = "meteor-maven"
|
|
|
|
url = "https://maven.meteordev.org/snapshots"
|
2021-06-14 23:43:49 +00:00
|
|
|
}
|
2021-02-19 22:11:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-06-14 23:43:49 +00:00
|
|
|
// Minecraft
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
2021-06-14 23:43:49 +00:00
|
|
|
inputs.property "version", project.version
|
2021-02-19 22:11:41 +00:00
|
|
|
|
2021-06-14 23:43:49 +00:00
|
|
|
filesMatching("fabric.mod.json") {
|
|
|
|
expand "version": project.version
|
2021-08-31 14:40:44 +00:00
|
|
|
|
|
|
|
filter { line -> line.replace("@mc_version@", project.minecraft_version) }
|
|
|
|
filter { line -> line.replace("@meteor_version@", project.meteor_version) }
|
2021-06-14 23:43:49 +00:00
|
|
|
}
|
2021-02-19 22:11:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
2021-06-14 23:43:49 +00:00
|
|
|
it.options.encoding = "UTF-8"
|
|
|
|
it.options.release = 16
|
|
|
|
}
|