93 Commits
Author SHA1 Message Date
Wan bin yu 0d223cbc77 Filter additional configuration metadata from archives
Signed-off-by: Wan bin yu <3431359639@qq.com>

See gh-51386
2026-09-09 08:30:08 +01:00
Stéphane Nicoll 03d367bb07 Merge branch '4.1.x'
Closes gh-51629
2026-09-08 17:29:34 +02:00
Stéphane Nicoll 18292d400c Merge branch '4.0.x' into 4.1.x
Closes gh-51628
2026-09-08 16:57:00 +02:00
Stéphane Nicoll b1e91c942e Add support for creating a container from a TestImage value
This commit improves TestImage so that an explicit image can trigger
the creation of the container, with optional additional setup. This
removes the need of creating additional container types for images that
have multiple flavors, and to please the static method that can only
create a container based on a single match.

Closes gh-51082
2026-09-08 16:46:48 +02:00
Andy Wilkinson dc80919a96 Merge branch '4.1.x'
Closes gh-51624
2026-09-08 13:57:22 +01:00
Andy Wilkinson e7a324357f Merge branch '4.0.x' into 4.1.x
Closes gh-51623
2026-09-08 13:57:12 +01:00
Andy Wilkinson f956f588d5 Configure attributes on dev-only configurations
Closes gh-51492
2026-09-08 13:56:26 +01:00
Andy Wilkinson 5893438a3a Merge branch '4.1.x'
Closes gh-51621
2026-09-08 11:23:45 +01:00
Andy Wilkinson a87fd2c9ba Merge branch '4.0.x' into 4.1.x
Closes gh-51620
2026-09-08 11:23:31 +01:00
Andy Wilkinson bb1ad4ce36 Manage TomlJ's version in spring-boot-internal-dependencies
Closes gh-51618
2026-09-08 09:25:56 +01:00
Andy Wilkinson 57b44b0594 Merge branch '4.1.x'
Closes gh-51600
2026-09-07 08:27:14 +01:00
Andy Wilkinson ea613dc511 Merge branch '4.0.x' into 4.1.x
Closes gh-51599
2026-09-07 08:26:42 +01:00
Manu Sridharan 25a3f8feb9 Remove unnecessary NullAway suppressions
Signed-off-by: Manu Sridharan <msridhar@gmail.com>

See gh-51591
2026-09-07 08:18:11 +01:00
Andy Wilkinson f6d986d0bd Merge branch '4.1.x' 2026-08-25 08:38:29 +01:00
Andy Wilkinson e33f3c6781 Expect deprecation warnings from Protobuf plugin
See gh-51428
2026-08-25 08:37:58 +01:00
Andy Wilkinson ee059ae3ca Add CI for Java 27
Closes gh-51423
2026-08-24 14:52:36 +01:00
Stéphane Nicoll 3380f9236b Polish "Upgrade to Kotlin 2.4.10"
Closes gh-51205
2026-08-03 16:02:19 +02:00
Phillip Webb a26ff99296 Revert "Temporarily disable test caching to test CI"
This reverts commit 53099aec33.
2026-07-31 09:35:50 +01:00
Phillip Webb 53099aec33 Temporarily disable test caching to test CI 2026-07-31 09:16:13 +01:00
Stéphane Nicoll 5bd3e6435c Polish "Add support for image-based build caches"
See gh-50899
2026-07-27 18:22:16 +02:00
Tim Ysewyn a36d078632 Add support for image-based build caches
Added a new image cache option that uses the lifecycle's
`-cache-image` argument for the creator, analyzer, restorer and
exporter phases, so the build cache can be stored in an image and
shared between hosts via an image registry.

Exposed the option in the Maven (`<buildCache><image>`) and Gradle
(`buildCache { image { } }`) plugins.

Reject image caches configured for the launch cache, which the
lifecycle does not support.

See gh-50899

Signed-off-by: Tim Ysewyn <Tim.Ysewyn@me.com>
2026-07-27 18:20:48 +02:00
Stéphane Nicoll a500eaaefe Merge branch '4.0.x' 2026-07-15 08:02:02 +02:00
Stéphane Nicoll 8c6c3fd1e4 Polish "Upgrade to Gradle 9.6.1"
Stop using providers.properties as it is deprecated

See gh-50793
2026-07-15 07:51:22 +02:00
Stéphane Nicoll c7dd44815a Upgrade to Native Build Tools Plugin 1.1.4
Closes gh-50947
2026-07-14 16:20:52 +02:00
Stéphane Nicoll 2eedeabe9a Upgrade to Gradle 9.6.1
This commit also suppresses new warnings from the Native Build Tools
Plugin, see https://github.com/graalvm/native-build-tools/pull/903

Closes gh-50793
2026-07-14 16:03:14 +02:00
Andy Wilkinson 7483278e7d Only apply grpc defaults when grpc plugin is configured
Previously, Spring Boot's Gradle plugin reacted to the Protobuf
plugin by configuring Protobuf's grpc plugin. This worked well for
projects using gRPC but went too far for those using Protobuf
without gRPC.

This commit dials the support back a little bit. Now, our recommended
gRPC defaults are only applied when Protobuf is configured with the
grpc plugin.

Closes gh-50822
2026-06-24 08:58:17 +01:00
Stéphane Nicoll 6a625e292c Merge branch '4.0.x'
Closes gh-50620
2026-05-29 12:36:56 +02:00
Stéphane Nicoll 8845b31cf9 Merge branch '3.5.x' into 4.0.x
Closes gh-50619
2026-05-29 12:36:08 +02:00
Andy Wilkinson 6a74bb85a3 Merge branch '4.0.x'
Closes gh-50440
2026-05-14 15:03:44 +01:00
Andy Wilkinson add52b6ccd Merge branch '3.5.x' into 4.0.x
Closes gh-50439
2026-05-14 15:02:24 +01:00
Dongliang Xie 6d307ed250 Align protoc version with protobuf-java
Update `ProtobufPluginAction` to align the protoc version with
`protobuf-java` rather than `protobuf-java-util`. The util
jar is only required for server gRPC code.

See gh-50405

Signed-off-by: Dongliang Xie <dragonfsky@gmail.com>
2026-05-12 08:58:47 -07:00
Phillip Webb b23ad48047 Simplify ProtobufPluginAction versionFromRuntimeClasspath
Simplify the stream logic to make use of `getAllComponents()`
rather than using `getAllDependencies()` and
`DependencyResult::getFrom`.

See gh-50405
2026-05-12 08:56:00 -07:00
Moritz Halbritter d7334fed64 Upgrade to Native Build Tools Plugin 1.0.0
Closes gh-49920
2026-04-07 09:31:33 +02:00
Andy Wilkinson a052376237 Configure protobuf when com.google.protobuf plugin is applied
Update spring-boot-gradle plugin to apply protobuf configuration
when the `com.google.protobuf` plugin is detected.

Closes gh-49369
2026-03-19 15:12:30 -07:00
Stéphane Nicoll a7b86cd49c Merge branch '4.0.x' 2026-03-16 16:05:07 +01:00
Stéphane Nicoll 5896b0cba8 Merge branch '3.5.x' into 4.0.x 2026-03-16 16:04:56 +01:00
Andy Wilkinson 255626f29e Upgrade to Kotlin 2.3.20
Closes gh-49613
2026-03-16 14:08:30 +00:00
Andy Wilkinson e7c0bec8ab Improve input/output configuration of DSL-created bootBuildInfo task
There are two problems with the current approach:

1. The DSL uses dependsOn to try to inform Gradle of the dependency
   relationship between tasks. This isn't recommended and inputs and
   outputs should be used instead.
2. The generated build-info.properties file doesn't appear on the
   classpath when running an application in an IDE, unless that IDE
   delegates the execution to Gradle.

This commit addresses both of these shortcomings by configuring the
bootBuildInfo task's output to be a src dir of the main source set's
resources. This gives Gradle the preferred input- and output-based
view of the tasks' interdependencies. It also causes the generated
build-info.properties to appear on the classpath in IDEs that don't
delegate to Gradle. For example, the Eclipse Buildship plugin
automatically configures build/bootBuildInfo as a source folder on
the project's build path.

Closes gh-49547
2026-03-11 10:11:46 +00:00
Stéphane Nicoll fde18f4523 Upgrade to Native Build Tools Plugin 0.11.5
Closes gh-49498
2026-03-07 11:29:27 +01:00
Stéphane Nicoll e3e167bf9b Upgrade to Native Build Tools Plugin 0.11.5
Closes gh-49475
2026-03-07 08:50:31 +01:00
Andy Wilkinson d76f056249 Merge branch '4.0.x'
Closes gh-49322
2026-02-25 10:05:01 +00:00
Andy Wilkinson 14444669fe Merge branch '3.5.x' into 4.0.x
Closes gh-49321
2026-02-25 10:04:41 +00:00
Andy Wilkinson 542ea4f18a Polish "Support configuring bootBuildImage's environment on the command line"
See gh-48792
2026-01-12 15:51:26 +00:00
HuitaePark a1c83b52b0 Support configuring bootBuildImage's environment on the command line
Accumulate command line --environment values in a ListProperty and
merge them with the configured environment when building the
effective environment map. Add a test that verifies multiple entries
are accepted and propagated.

See gh-48792

Signed-off-by: HuitaePark <qkrgmlxo3174@gmail.com>
2026-01-12 15:51:13 +00:00
Andy Wilkinson c12e1dc872 Upgrade to Kotlin 2.3.0
Closes gh-48745
2026-01-09 09:54:21 +00:00
Andy Wilkinson 3d6671d47a Merge branch '4.0.x'
Closes gh-48701
2026-01-08 12:14:50 +00:00
Andy Wilkinson 0ffffee4bf Upgrade to Nullability Plugin 0.0.9
Closes gh-48638
2026-01-08 11:59:51 +00:00
Stéphane Nicoll da56bfea6e Remove support for the deprecated layertools jar mode
Closes gh-48568
2025-12-22 08:36:52 +01:00
Phillip Webb 0254c693cf Merge branch '3.5.x'
Closes gh-48478
2025-12-09 08:42:36 -08:00
Andy Wilkinson b5703eaa4c Merge branch '3.5.x'
Closes gh-48300
2025-11-26 12:43:51 +00:00