reference local jar & customize manifest

时间:2023-12-16 14:39:02

dependencies {
compile files('libs/ghost4j-0.5.1.jar')
compile files('libs/jai_imageio.jar')
compile files('libs/jna-4.1.0.jar')
compile files('libs/log4j-1.2.17.jar')
}

jar {
manifest {
attributes('Implementation-Vendor': 'Sun Microsystems, Inc')
attributes('Implementation-Title': 'Java Runtime Environment')
attributes('Implementation-Version': '1.7.5')
attributes('Main-Class': 'com.orange.magic.ocr.Main')
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}