build/fabric: Update loom to 0.8-SNAPSHOT

This commit is contained in:
Jason Penilla 2021-07-04 17:22:16 -07:00 committed by Jason
parent 06b4a70c26
commit e22b75fe86
2 changed files with 5 additions and 4 deletions

View file

@ -2,7 +2,7 @@ import net.fabricmc.loom.task.AbstractRunTask
import net.ltgt.gradle.errorprone.errorprone import net.ltgt.gradle.errorprone.errorprone
plugins { plugins {
id("fabric-loom") version "0.7-SNAPSHOT" id("quiet-fabric-loom") version "0.8-SNAPSHOT"
} }
/* set up a testmod source set */ /* set up a testmod source set */
@ -30,20 +30,20 @@ tasks {
} }
} }
withType(ProcessResources::class).configureEach { withType<ProcessResources> {
inputs.property("version", project.version) inputs.property("version", project.version)
filesMatching("fabric.mod.json") { filesMatching("fabric.mod.json") {
expand("version" to project.version) expand("version" to project.version)
} }
} }
withType(Javadoc::class).configureEach { withType<Javadoc> {
(options as? StandardJavadocDocletOptions)?.apply { (options as? StandardJavadocDocletOptions)?.apply {
//links("https://maven.fabricmc.net/docs/yarn-${Versions.fabricMc}+build.${Versions.fabricYarn}/") // todo //links("https://maven.fabricmc.net/docs/yarn-${Versions.fabricMc}+build.${Versions.fabricYarn}/") // todo
} }
} }
withType(AbstractRunTask::class).configureEach { withType<AbstractRunTask> {
standardInput = System.`in` standardInput = System.`in`
jvmArgumentProviders += CommandLineArgumentProvider { jvmArgumentProviders += CommandLineArgumentProvider {
if (System.getProperty("idea.active")?.toBoolean() == true || // IntelliJ if (System.getProperty("idea.active")?.toBoolean() == true || // IntelliJ

View file

@ -2,6 +2,7 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
maven("https://maven.fabricmc.net") maven("https://maven.fabricmc.net")
maven("https://repo.jpenilla.xyz/snapshots/")
} }
includeBuild("build-logic") includeBuild("build-logic")
} }