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:
@@ -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
|
||||
|
||||
@@ -13,6 +13,7 @@ pluginManagement {
|
||||
}
|
||||
plugins {
|
||||
id 'org.springframework.boot' version "$springBootVersion"
|
||||
id 'org.graalvm.buildtools.native' version "$nativeBuildToolsVersion"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user