reserve for parameter at compiler

This commit is contained in:
CaiHQ
2023-03-15 16:28:00 +08:00
parent 0d7424cd7f
commit cd87b1f014
2 changed files with 20 additions and 4 deletions

View File

@@ -7,7 +7,11 @@ plugins {
group = "org.bdware.sc"
version = "1.8.0"
tasks.withType(JavaCompile) {
// options.compilerArgs << '-Xlint:none'
// options.compilerArgs << '-Xlint:deprecation' << "-Werror"
options.compilerArgs << '-parameters'
}
repositories {
mavenCentral()
mavenLocal()
@@ -49,10 +53,10 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
}
tasks.jar.setDuplicatesStrategy(DuplicatesStrategy.INCLUDE)
task classJar(type: Jar, dependsOn: classes) {
classifier = "jar"
}
jar {
String libs = ''
configurations.runtimeClasspath.each {
@@ -62,8 +66,8 @@ jar {
// uncomment this when publish,
// while develop at local use "false"
configurations.runtimeClasspath.filter {
// it.getAbsolutePath().contains("/lib/")
false
it.getAbsolutePath().contains("/lib/")
// false
}.collect {
it.isDirectory() ? it : zipTree(it)
}