plugins {
    id 'java'
}

group 'org.example'
version 'URA4Demo'

repositories {
    mavenCentral()
}
//����JAVA�ļ�ʱ����UTF-8
tasks.withType(JavaCompile) {
    options.encoding = "UTF-8"
}


jar {
    archiveFileName = 'URA4Demo_EN.jar'
    manifest {
        attributes 'Main-Class': 'com.uhf.UHFMainForm'
    }
    from {
        configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
    }
}

dependencies {
    implementation files('libs/UHFAPI20221125.jar')
    implementation files('libs/jna-5.4.0.jar')
    implementation files('libs/jna-platform-5.4.0.jar')

    implementation files('libs/commons-beanutils-1.8.0.jar')
    implementation files('libs/commons-collections-3.2.1.jar')
    implementation files('libs/commons-lang-2.6.jar')
    implementation files('libs/commons-logging-1.1.1.jar')
    implementation files('libs/ezmorph-1.0.6.jar')
    implementation files('libs/json-lib-2.4-jdk15.jar')
    implementation files('libs/xom-1.2.6.jar')
    implementation files('libs/RXTXcomm.jar')
}

