mirror of
https://github.com/AppleCommander/bastools.git
synced 2026-04-20 23:16:53 +00:00
49 lines
1.1 KiB
Groovy
49 lines
1.1 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version "2.7.18"
|
|
id 'java'
|
|
id 'application'
|
|
id 'org.graalvm.buildtools.native' version '0.11.2'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes(
|
|
'Implementation-Title': 'BT CLI',
|
|
'Implementation-Version': "${project.version} (${new Date().format('yyyy-MM-dd HH:mm')})"
|
|
)
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass = "org.applecommander.bastools.tools.bt.Main"
|
|
}
|
|
|
|
bootJar {
|
|
manifest {
|
|
attributes(
|
|
'Implementation-Title': 'BT CLI',
|
|
'Implementation-Version': "${project.version} (${new Date().format('yyyy-MM-dd HH:mm')})"
|
|
)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'info.picocli:picocli:4.7.7'
|
|
implementation 'net.sf.applecommander:applesingle-api:1.2.2'
|
|
implementation project(':bastools-api')
|
|
}
|
|
|
|
graalvmNative {
|
|
String osName = System.getProperty('os.name').toLowerCase().split()[0]
|
|
String osArch = System.getProperty('os.arch').toLowerCase().split()[0]
|
|
binaries {
|
|
named("main") {
|
|
imageName.set("bt-${osName}-${osArch}-${project.version}")
|
|
}
|
|
}
|
|
}
|