build.gradle 841 Bytes
Newer Older
Lee Jaebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
apply plugin: 'java'

sourceCompatibility = 1.6
targetCompatibility = 1.6

version = '1.0'

dependencies {
    testImplementation 'junit:junit:4.11'
    implementation 'commons-codec:commons-codec:1.10'
    implementation 'net.lingala.zip4j:zip4j:1.3.2'
    implementation files('libs/java_websocket_0.8.jar')
}

sourceSets {
    main {
        java {
            srcDir 'src'
        }
    }
}

subprojects {
    tasks.withType(JavaCompile) {
        options.encoding = "UTF-8"
        options.compilerArgs << "-Xlint:unchecked -Xlint:deprecation -warn:+boxing"
    }
}

task clearJar(type: Delete) {
    delete 'build/libs/' + BLJAR_NAME
}
task makeJar(type: Copy) {
    from('build/intermediates/bundles/release/')
    into('release/')
    include('classes.jar')
    rename('classes.jar', BLJAR_NAME)
}
makeJar.dependsOn(clearJar, build)