mirror of
https://github.com/jlengrand/picocli.git
synced 2026-03-10 08:41:17 +00:00
BUILD set source/targetCompatibility to 1.6 to prevent IDE from resetting project settings to Java 5 after command line build
This commit is contained in:
@@ -10,9 +10,10 @@ description 'Picocli Code Generation - Tools to generate documentation, configur
|
||||
version "$projectVersion"
|
||||
|
||||
// Java 13 cannot compile to target Java 6
|
||||
//sourceCompatibility = 1.6
|
||||
//targetCompatibility = 1.6
|
||||
|
||||
if (org.gradle.api.JavaVersion.current().isJava8Compatible() && !org.gradle.api.JavaVersion.current().isJava11Compatible()) {
|
||||
sourceCompatibility = 1.6
|
||||
targetCompatibility = 1.6
|
||||
}
|
||||
dependencies {
|
||||
compile rootProject
|
||||
testCompile "junit:junit:$junitVersion"
|
||||
|
||||
Reference in New Issue
Block a user