fabric: Begin adding support for some wrapped vanilla arguments

This commit is contained in:
Zach Levis 2021-01-03 14:25:41 -08:00 committed by Jason
parent 62caa2d641
commit 3be50956cc
13 changed files with 453 additions and 27 deletions

View file

@ -1,8 +1,10 @@
import net.ltgt.gradle.errorprone.errorprone
plugins {
id("fabric-loom") version "0.5-SNAPSHOT"
}
// Set up a testmod source set
/* set up a testmod source set */
val testmod by sourceSets.creating {
val main = sourceSets.main.get()
compileClasspath += main.compileClasspath
@ -18,30 +20,41 @@ val testmodJar by tasks.creating(Jar::class) {
loom.unmappedModCollection.from(testmodJar)
tasks.withType(ProcessResources::class).configureEach {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand("version" to project.version)
/* end of testmod setup */
tasks {
compileJava {
options.errorprone {
excludedPaths.set(".*[/\\\\]mixin[/\\\\].*")
}
}
withType(ProcessResources::class).configureEach {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand("version" to project.version)
}
}
withType(Javadoc::class).configureEach {
(options as? StandardJavadocDocletOptions)?.apply {
links("https://maven.fabricmc.net/docs/yarn-${Versions.fabricMc}+build.${Versions.fabricYarn}/")
}
}
}
tasks.withType(Javadoc::class).configureEach {
(options as? StandardJavadocDocletOptions)?.apply {
links("https://maven.fabricmc.net/docs/yarn-${Versions.fabricMc}+build.${Versions.fabricYarn}/")
}
}
dependencies {
minecraft("com.mojang:minecraft:${Versions.fabricMc}")
mappings("net.fabricmc:yarn:${Versions.fabricMc}+build.${Versions.fabricYarn}:v2")
modImplementation("net.fabricmc:fabric-loader:${Versions.fabricLoader}")
minecraft("com.mojang", "minecraft", Versions.fabricMc)
mappings("net.fabricmc", "yarn", "${Versions.fabricMc}+build.${Versions.fabricYarn}", classifier = "v2")
modImplementation("net.fabricmc", "fabric-loader", Versions.fabricLoader)
modImplementation(fabricApi.module("fabric-command-api-v1", Versions.fabricApi))
api(include(project(":cloud-core"))!!)
implementation(include(project(":cloud-brigadier"))!!)
include(project(":cloud-services"))
include("io.leangen.geantyref:geantyref:${Versions.geantyref}")
include("io.leangen.geantyref", "geantyref", Versions.geantyref)
}
indra {