plugins {
    id 'java'
}

group 'org.mycompany.myproject'
version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {
    mavenLocal()
    jcenter()
    mavenCentral()
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'
}
dependencies {
    compile 'info.picocli:picocli:4.5.0'
    annotationProcessor 'info.picocli:picocli-codegen:4.5.0'
    //compileOnly 'info.picocli:picocli-codegen:4.5.0' // in pre-Gradle 4.6
}
compileJava {
    // minimum 1.6
//    sourceCompatibility = ${java-version}
//    targetCompatibility = ${java-version}
    options.compilerArgs += ["-Aproject=${project.group}/${project.name}"]
}
