Files
bastools/tools/bt/build.gradle
T
2025-10-23 14:09:07 -05:00

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}")
}
}
}