added finalguard plugin in aplha state
All checks were successful
CI / build (push) Successful in 3m17s
All checks were successful
CI / build (push) Successful in 3m17s
This commit is contained in:
38
finalguard/finalguard-javac-plugin/build.gradle
Normal file
38
finalguard/finalguard-javac-plugin/build.gradle
Normal file
@@ -0,0 +1,38 @@
|
||||
plugins {
|
||||
id 'java-library'
|
||||
}
|
||||
|
||||
group = "net.woggioni.finalguard"
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(21)
|
||||
}
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility(JavaVersion.VERSION_1_8.toString())
|
||||
targetCompatibility(JavaVersion.VERSION_1_8.toString())
|
||||
modularity.inferModulePath = false
|
||||
}
|
||||
|
||||
tasks.named(org.gradle.api.plugins.JavaPlugin.COMPILE_JAVA_TASK_NAME, JavaCompile.class) {
|
||||
options.compilerArgs << '-parameters'
|
||||
}
|
||||
|
||||
test {
|
||||
def testCompilationClassPath = sourceSets["main"].output.classesDirs.files +
|
||||
sourceSets["main"].runtimeClasspath.files +
|
||||
sourceSets["test"].resources.srcDirs
|
||||
systemProperty("test.compilation.classpath",
|
||||
String.join(File.pathSeparator, testCompilationClassPath.collect {it.toString() }))
|
||||
}
|
||||
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
from(components["java"])
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user