Skip to content

Commit fee09f9

Browse files
committed
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
1 parent 2173c9b commit fee09f9

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
version=3.0.0-SNAPSHOT
22
springBootVersion=3.0.0-SNAPSHOT
3+
nativeBuildToolsVersion=0.9.13
34
jlineVersion=3.21.0
45
st4Version=4.3.1
56
jimfsVersion=1.2

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pluginManagement {
1313
}
1414
plugins {
1515
id 'org.springframework.boot' version "$springBootVersion"
16+
id 'org.graalvm.buildtools.native' version "$nativeBuildToolsVersion"
1617
}
1718
}
1819

spring-shell-samples/spring-shell-samples.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'org.springframework.shell.sample'
33
id 'org.springframework.boot'
4+
id 'org.graalvm.buildtools.native'
45
}
56

67
description = 'Spring Shell Samples'
@@ -10,3 +11,10 @@ dependencies {
1011
implementation project(':spring-shell-starter-jna')
1112
testImplementation 'org.springframework.boot:spring-boot-starter-test'
1213
}
14+
15+
// TODO: workaround until boot's aot plugin automatically extends
16+
// from all super configurations like graalvm's plugin does.
17+
configurations {
18+
aotCompileClasspath.extendsFrom management
19+
aotRuntimeClasspath.extendsFrom management
20+
}

0 commit comments

Comments
 (0)