mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-06-02 12:41:32 +00:00
Let's add -Xlint:unchecked to build.gradle
You can see that -Xlint:deprecated is also there, but commented out. Mostly because I'm not prepared to fix them all just now. :)
This commit is contained in:
parent
d24259d68b
commit
bf0c9741fa
|
@ -12,7 +12,7 @@ apply plugin: 'application'
|
||||||
ext {
|
ext {
|
||||||
sourceCompatibility = '1.8'
|
sourceCompatibility = '1.8'
|
||||||
targetCompatibility = '1.8'
|
targetCompatibility = '1.8'
|
||||||
|
|
||||||
swtVersion = "4.6.1"
|
swtVersion = "4.6.1"
|
||||||
junitVersion = "4.12"
|
junitVersion = "4.12"
|
||||||
antVersion = "1.8.2"
|
antVersion = "1.8.2"
|
||||||
|
@ -43,6 +43,11 @@ dependencies {
|
||||||
testCompile "junit:junit:$junitVersion"
|
testCompile "junit:junit:$junitVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compileJava {
|
||||||
|
options.encoding = 'UTF-8'
|
||||||
|
options.compilerArgs << "-Xlint:unchecked" // << "-Xlint:deprecation"
|
||||||
|
}
|
||||||
|
|
||||||
task acJar(type: Jar) {
|
task acJar(type: Jar) {
|
||||||
dependencies {
|
dependencies {
|
||||||
// Just to pass the compile step; these classes are stripped out below.
|
// Just to pass the compile step; these classes are stripped out below.
|
||||||
|
@ -104,4 +109,4 @@ artifacts {
|
||||||
archives linuxJar
|
archives linuxJar
|
||||||
archives macosxJar
|
archives macosxJar
|
||||||
archives windowsJar
|
archives windowsJar
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user