Upgrade gradle 8.4

- Other than gradle itself, some changes are taken
  from main to support building samples with native.
- Fixes #1001
This commit is contained in:
Janne Valkealahti
2024-02-13 15:10:08 +00:00
parent ee17aa2a93
commit c73efa3ceb
7 changed files with 83 additions and 37 deletions

View File

@@ -1,7 +1,5 @@
plugins {
id 'org.springframework.shell.sample'
id 'org.springframework.boot'
id 'org.graalvm.buildtools.native'
}
description = 'Spring Shell Samples'
@@ -14,26 +12,3 @@ dependencies {
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')
}
}
}
}