Integration native build to sample

- This adds a way to build native binary for a sample which
  were missed from original gradle work.
- Relates #470
This commit is contained in:
Janne Valkealahti
2022-08-17 08:45:31 +01:00
parent 2173c9bf84
commit fee09f9ff5
3 changed files with 10 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
plugins {
id 'org.springframework.shell.sample'
id 'org.springframework.boot'
id 'org.graalvm.buildtools.native'
}
description = 'Spring Shell Samples'
@@ -10,3 +11,10 @@ dependencies {
implementation project(':spring-shell-starter-jna')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
// TODO: workaround until boot's aot plugin automatically extends
// from all super configurations like graalvm's plugin does.
configurations {
aotCompileClasspath.extendsFrom management
aotRuntimeClasspath.extendsFrom management
}