- Change sample build to use musl on linux - Optionally remove version from jar so that e2e tests don't need to use version in path. - Add better matrix to e2e so that we're able to build on one OS and then test with others. - Fixes #576
40 lines
931 B
Groovy
40 lines
931 B
Groovy
plugins {
|
|
id 'org.springframework.shell.sample'
|
|
id 'org.springframework.boot'
|
|
id 'org.graalvm.buildtools.native'
|
|
}
|
|
|
|
description = 'Spring Shell Samples'
|
|
|
|
dependencies {
|
|
management platform(project(":spring-shell-management"))
|
|
implementation project(':spring-shell-starters:spring-shell-starter-jna')
|
|
testImplementation project(':spring-shell-starters:spring-shell-starter-test')
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.awaitility:awaitility'
|
|
}
|
|
|
|
springBoot {
|
|
buildInfo()
|
|
}
|
|
|
|
if (project.hasProperty('springShellSampleE2E') && springShellSampleE2E.toBoolean()) {
|
|
bootJar {
|
|
archiveName = "$baseName.$extension"
|
|
}
|
|
}
|
|
|
|
graalvmNative {
|
|
metadataRepository {
|
|
enabled = true
|
|
}
|
|
binaries {
|
|
main {
|
|
if (project.hasProperty('springShellSampleMusl') && springShellSampleMusl.toBoolean()) {
|
|
buildArgs.add('--static')
|
|
buildArgs.add('--libc=musl')
|
|
}
|
|
}
|
|
}
|
|
}
|