Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 1767db5

Browse files
committed
Update BP environment variables
Closes gh-586
1 parent 9164f12 commit 1767db5

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

samples/commandlinerunner-gradle/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ test {
2727
}
2828

2929
bootBuildImage {
30+
builder = "paketobuildpacks/builder:tiny"
3031
environment = [
31-
"BP_BOOT_NATIVE_IMAGE" : "true"
32+
"BP_NATIVE_IMAGE" : "true"
3233
]
3334
}

samples/maven-parent/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
<image>
4444
<builder>${builder}</builder>
4545
<env>
46-
<BP_BOOT_NATIVE_IMAGE>true</BP_BOOT_NATIVE_IMAGE>
47-
<BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS>${native.build.args}</BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS>
46+
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
47+
<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>${native.build.args}</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
4848
</env>
4949
</image>
5050
</configuration>

samples/security-kotlin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tasks.withType<Test> {
4444
tasks.getByName<BootBuildImage>("bootBuildImage") {
4545
builder = "paketobuildpacks/builder:tiny"
4646
environment = mapOf(
47-
"BP_BOOT_NATIVE_IMAGE" to "true"
47+
"BP_NATIVE_IMAGE" to "true"
4848
)
4949
}
5050

samples/webmvc-kotlin/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ tasks.withType<Test> {
4343
tasks.getByName<BootBuildImage>("bootBuildImage") {
4444
builder = "paketobuildpacks/builder:tiny"
4545
environment = mapOf(
46-
"BP_BOOT_NATIVE_IMAGE" to "1",
47-
"BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS" to """
46+
"BP_NATIVE_IMAGE" to "1",
47+
"BP_NATIVE_IMAGE_BUILD_ARGUMENTS" to """
4848
-Dspring.spel.ignore=true
4949
-Dspring.native.remove-yaml-support=true
5050
""".trimIndent()

spring-native-docs/src/main/asciidoc/getting-started-buildpacks.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ The https://github.com/paketo-buildpacks/spring-boot-native-image[Packeto implem
164164
<image>
165165
<builder>paketobuildpacks/builder:tiny</builder>
166166
<env>
167-
<BP_BOOT_NATIVE_IMAGE>true</BP_BOOT_NATIVE_IMAGE>
167+
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
168168
</env>
169169
</image>
170170
</configuration>
@@ -176,7 +176,7 @@ The https://github.com/paketo-buildpacks/spring-boot-native-image[Packeto implem
176176
bootBuildImage {
177177
builder = "paketobuildpacks/builder:tiny"
178178
environment = [
179-
"BP_BOOT_NATIVE_IMAGE" : "true"
179+
"BP_NATIVE_IMAGE" : "true"
180180
]
181181
}
182182
----
@@ -186,15 +186,15 @@ bootBuildImage {
186186
tasks.getByName<BootBuildImage>("bootBuildImage") {
187187
builder = "paketobuildpacks/builder:tiny"
188188
environment = mapOf(
189-
"BP_BOOT_NATIVE_IMAGE" to "true"
189+
"BP_NATIVE_IMAGE" to "true"
190190
)
191191
}
192192
----
193193

194194

195195
NOTE: The builder is also customized to use `paketobuildpacks/builder:tiny`, `paketobuildpacks/builder:base` being the default, but less optimized.
196196

197-
TIP: Additional `native-image` arguments can be added using the `BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS` environment variable.
197+
TIP: Additional `native-image` arguments can be added using the `BP_NATIVE_IMAGE_BUILD_ARGUMENTS` environment variable.
198198

199199
===== Maven Repository
200200

spring-native-docs/src/main/asciidoc/native-image-options.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
GraalVM `native-image` options are documented {graalvm-native-docs}/Options/[here].
55
Spring Native is enabling automatically some of those, and some others especially useful are documented here as well.
66

7-
They can be specified using the `BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS` environment variable in Spring Boot plugin if you are using {spring-boot-docs}/html/spring-boot-features.html#boot-features-container-images-buildpacks[Buildpacks support] or using the `<buildArgs></buildArgs>` configuration element if you are using `native-image-maven-plugin`.
7+
They can be specified using the `BP_NATIVE_IMAGE_BUILD_ARGUMENTS` environment variable in Spring Boot plugin if you are using {spring-boot-docs}/html/spring-boot-features.html#boot-features-container-images-buildpacks[Buildpacks support] or using the `<buildArgs></buildArgs>` configuration element if you are using `native-image-maven-plugin`.
88

99
[[native-image-options-default]]
1010
=== Options enabled by default

0 commit comments

Comments
 (0)