added finalguard Javac plugin
All checks were successful
CI / build (push) Successful in 38s

This commit is contained in:
2025-11-19 01:34:14 +08:00
parent c5e4690856
commit 3f2666fe7e
86 changed files with 1022 additions and 1000 deletions

View File

@@ -1,9 +1,22 @@
import javax.tools.Diagnostic
plugins {
id 'java-library'
id 'maven-publish'
id 'jacoco'
alias(catalog.plugins.lombok)
alias(catalog.plugins.sambal)
alias(catalog.plugins.finalguard)
}
finalGuard {
// defaultLevel = Diagnostic.Kind.ERROR
methodParameterLevel = Diagnostic.Kind.ERROR
// lambdaParameterLevel = Diagnostic.Kind.ERROR
tryWithResourceLevel = Diagnostic.Kind.ERROR
catchParameterLevel = Diagnostic.Kind.ERROR
forLoopParameterLevel = Diagnostic.Kind.ERROR
localVariableLevel = Diagnostic.Kind.ERROR
}
allprojects {
@@ -11,6 +24,11 @@ allprojects {
version = getProperty('jwo.version')
repositories {
mavenLocal {
content {
includeGroup 'net.woggioni.finalguard'
}
}
maven {
url = getProperty('gitea.maven.url')
}
@@ -31,6 +49,7 @@ allprojects {
testImplementation catalog.junit.jupiter.api
testImplementation catalog.junit.jupiter.params
testRuntimeOnly catalog.junit.jupiter.engine
testRuntimeOnly catalog.junit.platform.launcher
}
test {