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,5 +1,6 @@
version=3.0.0-SNAPSHOT
springBootVersion=3.0.0-SNAPSHOT
nativeBuildToolsVersion=0.9.13
jlineVersion=3.21.0
st4Version=4.3.1
jimfsVersion=1.2

View File

@@ -13,6 +13,7 @@ pluginManagement {
}
plugins {
id 'org.springframework.boot' version "$springBootVersion"
id 'org.graalvm.buildtools.native' version "$nativeBuildToolsVersion"
}
}

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
}