plugins {
    id 'java'
    id 'org.jetbrains.kotlin.jvm' version '1.2.70'
}

group 'net.squarelabs'
version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
    compile 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:3.1.3'
    compile group: 'com.google.guava', name: 'guava', version: '27.0-jre'
    compile group: 'org.ow2.asm', name: 'asm', version: '4.0'
    compile group: 'org.ow2.asm', name: 'asm-commons', version: '7.0'
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.7'
    compile group: 'commons-io', name: 'commons-io', version: '2.6'
    compile group: 'info.picocli', name: 'picocli', version: '3.7.0'

    testCompile group: 'junit', name: 'junit', version: '4.12'
}

compileKotlin {
    kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
    kotlinOptions.jvmTarget = "1.8"
}

test {
    maxHeapSize = "12g"
}

jar {
    manifest {
        attributes "Main-Class": "net.squarelabs.depends.ReporterKt"
    }

    from {
        configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
    }
}
