build: update build-time dependencies, address new warnings (#413)

* build: update build-time dependencies, address new warnings

* build: switch to central repo declaration, remove redundant repositories

* build: use spotless predeclaration, more task avoidance on kotlin modules
This commit is contained in:
zml 2022-12-08 20:40:52 -08:00 committed by Jason
parent 86b76b91c7
commit 59c5a8310c
33 changed files with 204 additions and 135 deletions

View file

@ -378,7 +378,7 @@ public final class CloudBrigadierManager<C, S> {
}
@SuppressWarnings("all")
private <T, K extends ArgumentParser<C, ?>> @Nullable Pair<@NonNull ArgumentType<?>, @Nullable SuggestionProvider<S>> getArgument(
private <K extends ArgumentParser<C, ?>> @Nullable Pair<@NonNull ArgumentType<?>, @Nullable SuggestionProvider<S>> getArgument(
final @NonNull TypeToken<?> valueType,
final @NonNull K argumentParser
) {

View file

@ -132,6 +132,7 @@ final class SelectorUtils {
}
}
@SuppressWarnings("unused") // errorprone false positive
private abstract static class SelectorParser<C, T> implements ArgumentParser<C, T>, SelectorMapper<T> {
protected static final Supplier<Object> NO_PLAYERS_EXCEPTION_TYPE =

View file

@ -2,7 +2,7 @@ import net.fabricmc.loom.task.AbstractRunTask
import net.ltgt.gradle.errorprone.errorprone
plugins {
id("quiet-fabric-loom") version "1.0-SNAPSHOT"
id("quiet-fabric-loom")
id("cloud.base-conventions")
}
@ -26,7 +26,7 @@ tasks {
withType<Javadoc> {
(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
}
}
@ -34,8 +34,9 @@ tasks {
standardInput = System.`in`
jvmArgumentProviders += CommandLineArgumentProvider {
if (System.getProperty("idea.active")?.toBoolean() == true || // IntelliJ
System.getenv("TERM") != null || // linux terminals
System.getenv("WT_SESSION") != null) { // Windows terminal
System.getenv("TERM") != null || // linux terminals
System.getenv("WT_SESSION") != null
) { // Windows terminal
listOf("-Dfabric.log.disableAnsi=false")
} else {
listOf()