apply plugin: 'java'

jar {
    archiveName = 'jclasslib-library.jar'
}

javadoc {
    options {
        links 'http://docs.oracle.com/javase/8/docs/api/'
    }
}

task copyDist(type: Copy, dependsOn: jar) {
    from configurations.compile
    from jar.archivePath
    into externalLibsDir
}

task dist {
    dependsOn javadoc, copyDist
}