spotless (#34)
* Do not hardcode tag names and remove not needed README comment * Remove useless dependencies * Deduplicate build code * Run spotless to keep codebase clean
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
plugins {
|
||||
idea
|
||||
`java-library`
|
||||
id("io.freefair.lombok")
|
||||
id("com.diffplug.spotless")
|
||||
}
|
||||
|
||||
spotless {
|
||||
java {
|
||||
trimTrailingWhitespace()
|
||||
indentWithSpaces(4)
|
||||
endWithNewline()
|
||||
|
||||
importOrder("", "javax|java", "\\#")
|
||||
}
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
tasks.processResources {
|
||||
filteringCharset = "UTF-8"
|
||||
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand("version" to rootProject.version)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(21))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import xyz.wagyourtail.unimined.api.minecraft.MinecraftConfig
|
||||
import xyz.wagyourtail.unimined.api.minecraft.task.RemapJarTask
|
||||
import xyz.wagyourtail.unimined.internal.minecraft.MinecraftProvider
|
||||
|
||||
plugins {
|
||||
id("dg-java-conventions")
|
||||
id("xyz.wagyourtail.unimined")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":common"))
|
||||
}
|
||||
|
||||
tasks.withType<RemapJarTask> {
|
||||
onlyIf { false }
|
||||
}
|
||||
Reference in New Issue
Block a user