plugins {
    id 'java'
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

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

jar {
    archiveFileName = 'UHFUsbDemo_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')
}