Prevent our JavaCompile edits for Forge

This commit is contained in:
Octavia Togami 2020-07-12 12:03:11 -07:00
parent 6845e86fdf
commit 957af4962e
No known key found for this signature in database
GPG Key ID: CC364524D1983C99

View File

@ -36,7 +36,10 @@ fun Project.applyPlatformAndCoreConfiguration() {
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<JavaCompile>().configureEach {
tasks
.withType<JavaCompile>()
.matching { it.name == "compileJava" || it.name == "compileTestJava" }
.configureEach {
val disabledLint = listOf(
"processing", "path", "fallthrough", "serial"
)