Phillip Webb
4370757fb2
Use Java 17 in Maven integration tests
...
Closes gh-34472
2 years ago
Andy Wilkinson
2cb585aeb6
Merge branch '3.0.x'
...
Closes gh-34471
2 years ago
Andy Wilkinson
5c43e42839
Merge branch '2.7.x' into 3.0.x
...
Closes gh-34470
2 years ago
Andy Wilkinson
95cd0f2435
Test Boot's Maven Plugin against Maven 3.9.0
...
Closes gh-34469
2 years ago
Phillip Webb
2b94484078
Merge branch '3.0.x'
...
Closes gh-34431
2 years ago
Phillip Webb
f5cf821479
Merge branch '2.7.x' into 3.0.x
...
Closes gh-34430
2 years ago
Phillip Webb
998d59b7ac
Ignore system timezone when applying outputTimestamp to entries
...
Update `JarWriter` so that entry times are set with the default TimeZone
offset removed. The Javadoc for `ZipEntry.setTime` states:
The file entry is "encoded in standard `MS-DOS date and time format`.
The default TimeZone is used to convert the epoch time to the MS-DOS
data and time.
Removing the offset from our UTC time before calling `entry.setTime()`
ensures that we get consistent bytes in the zip file when the output
stream reapplies the offset during write.
Fixes gh-34424
2 years ago
Diego Díez
b073ef0310
Add build-info skip support
...
See gh-34393
2 years ago
Phillip Webb
157091a811
Merge branch '3.0.x'
2 years ago
Phillip Webb
0b15962aca
Merge branch '2.7.x' into 3.0.x
2 years ago
Phillip Webb
a5902d7a00
Update copyright year of changed files
2 years ago
Phillip Webb
b07269a018
Merge branch '3.0.x'
2 years ago
Phillip Webb
c4de86c244
Merge branch '2.7.x' into 3.0.x
2 years ago
Phillip Webb
df5898a146
Reformat code following spring-javaformat upgrade
2 years ago
Moritz Halbritter
e0d8d528b7
Merge branch '3.0.x'
...
Closes gh-34073
2 years ago
Moritz Halbritter
2e61acb979
Merge branch '2.7.x' into 3.0.x
...
Closes gh-34072
2 years ago
Enimiste
d6032c9d2c
Remove inputStream.close() line to conform to the interface
...
The "ReproducibleResourceTransformer" interface says that "An input
stream for the resource, the implementation should *not* close this
stream".
See gh-34063
2 years ago
lars-christian stitz
a186055c51
Improve log message when repackaging by specifying the involved files
...
See gh-33350
2 years ago
Moritz Halbritter
48db5ff35c
Merge branch '3.0.x'
...
Closes gh-34018
2 years ago
Moritz Halbritter
0a080736d8
Merge branch '2.7.x' into 3.0.x
...
Closes gh-34017
2 years ago
Moritz Halbritter
23f1c896c9
Merge branch '3.0.x'
...
Closes gh-34015
2 years ago
Johnny Lim
bc7fc90550
Replace Base64Utils with JDK's Base64
...
See gh-33967
2 years ago
Phillip Webb
390892f11b
Merge branch '3.0.x'
...
Closes gh-33998
2 years ago
Krzysztof Krason
6e46423983
Use diamond operators
...
See gh-33987
2 years ago
Andy Wilkinson
63abaa4cd2
Start working on 3.1.0
2 years ago
Phillip Webb
71efc55bf9
Merge branch '2.7.x'
2 years ago
Phillip Webb
7c508fa324
Update copyright year of changed files
2 years ago
Moritz Halbritter
94f4a4396c
Merge branch '2.7.x'
...
Closes gh-33880
2 years ago
Moritz Halbritter
e8d809fe65
Replace 'via' with 'over' or 'through' in the documentation
...
Closes gh-33878
2 years ago
Moritz Halbritter
b1f8024e8a
Merge branch '2.7.x'
...
Closes gh-33845
2 years ago
Moritz Halbritter
9f2ed201b2
Improve error message when start goal can't contact running application
...
Closes gh-24044
2 years ago
Andy Wilkinson
433364601d
Merge branch '2.7.x'
2 years ago
Andy Wilkinson
3b2e5e5292
Remove references to https://repo.spring.io/release
2 years ago
Phillip Webb
29b7c121fb
Merge branch '2.7.x'
...
Closes gh-33739
2 years ago
Phillip Webb
a369f936c9
Replace references to Pivotal
...
Closes gh-33737
2 years ago
Phillip Webb
a2ac38e203
Update copyright year of changed files
2 years ago
Krzysztof Krason
cf6493f65c
Simplify AssertJ assertions and also make them more readable
...
See gh-33653
2 years ago
Phillip Webb
f588793445
Update copyright year of changed files
2 years ago
Phillip Webb
6367a8c62c
Merge branch '2.7.x'
2 years ago
Phillip Webb
5ba52d0000
Polish formatting
2 years ago
Phillip Webb
5814543bb1
Merge branch '2.7.x'
...
Closes gh-33616
2 years ago
Phillip Webb
c205ba0694
Polish 'Improve maven plugin tags documentation'
...
See gh-33609
2 years ago
Shekhar Aggarwal
79557012a7
Improve maven plugin tags documentation
...
See gh-33609
2 years ago
Moritz Halbritter
f36e2ecb7b
Use AutoClosables with try-with-resources
...
Closes gh-33538
2 years ago
Moritz Halbritter
725337f976
Make fields final
...
Closes gh-33537
2 years ago
peter-janssen
9a74c862dd
Fix documented Java compiler level
...
See gh-33505
2 years ago
Scott Frederick
9ed8b25e6b
Make AOT goals release option mutually exclusive with source and target
...
Fixes gh-33382
2 years ago
Stephane Nicoll
75b74637f6
Make sure the 'native' profile can be used in a multi-modules project
...
This commit updates the 'native' profile so that it provides plugin
management for the plugins involved in building a native image, rather
than forcing their executions.
This commit also update the Maven Plugin reference guide to describe
what the native profile does, and how it can be used in various
scenarios.
Closes gh-33184
2 years ago
Stephane Nicoll
a7f57091a6
Add support for building an image without forking the Maven lifecycle
...
This commit adds a new "build-image-no-fork" goal that behaves exactly
as "build-image", except it does not fork the lifecycle. This is a
common pattern in maven plugins where a goal can be invoked on the
command-line and conveniently make sure that a certain phase has run
prior to its execution.
The new goal is suitable for binding the goal in a phase, typically
package, and rely on it rather than invoking the goal. This makes sure
that the lifecycle is forked, which would run everything again.
Closes gh-26455
2 years ago
Scott Frederick
c28c614c47
Set Java source and target when compiling AOT generated sources
...
When compiling AOT-generated sources in the Maven plugin `process-aot`
and `process-test-aot` goals, the Java compiler should be provided
with the same `--source`, `--target`, and `--release` configuration
values as the Maven compiler plugin uses to compile main sources.
Fixes gh-33112
2 years ago
Scott Frederick
11652bd8e6
Add compilerArguments parameter to process-aot Maven goal
...
This commit adds a `compilerArguments` parameter to the Maven plugin
`process-aot` and `process-test-aot` goals to allow the user to
configure the command used to compile the AOT-generated sources.
Fixes gh-33012
2 years ago
Andy Wilkinson
112bed886c
Merge branch '2.7.x'
...
Closes gh-33085
2 years ago
Andy Wilkinson
b1494d4a39
Merge branch '2.6.x' into 2.7.x
...
Closes gh-33084
2 years ago
Andy Wilkinson
6423535f67
Delete temp directory after MavenBuild has exected
...
Closes gh-33083
2 years ago
Andy Wilkinson
b67c427259
Upgrade to Servlet 6.0 and related EE 10 specs
...
Co-authored-by: Phillip Webb <pwebb@vmware.com>
Closes gh-33036
Closes gh-33037
Closes gh-33038
Closes gh-33039
Closes gh-33040
Closes gh-33041
Closes gh-33042
Closes gh-33043
2 years ago
Scott Frederick
67af4c0a65
Polish documentation
2 years ago
Scott Frederick
c22e76632c
Add Build-Jdk-Spec to jar and war manifest when building with Gradle
...
This commit adds a `Build-Jdk-Spec` attribute to the manifest in a
jar or war file built with the Spring Boot Gradle plugin. This
aligns the Gradle plugin's behavior with the default Maven plugin
behavior.
This removes the need to set a `BP_JVM_VERSION` environment variable
when invoking Cloud Native Buildpacks, as the Paketo buildpacks will
honor `Build-Jdk-Spec` in a jar or war manifest to determine the
default JVM version.
Fixes gh-32829
2 years ago
Andy Wilkinson
eebe23a081
Make all AOT-generated resources available to native-compile
...
Fixes gh-32841
2 years ago
Stephane Nicoll
4b778ff4c1
Polish Maven documentation to mention native profile
2 years ago
Andy Wilkinson
d351086a06
Adapt to breaking changes to AOT processing entry points
...
See gh-32550
2 years ago
Andy Wilkinson
188cac6540
Protect against null run process customizer
...
See 0ee277b8c3
See gh-32607
2 years ago
Andy Wilkinson
0ee277b8c3
Ensure that run mojo's child process is killed when Maven is killed
...
Fixes gh-32607
2 years ago
Stephane Nicoll
44c843145a
Add support for specifying application arguments
...
This commit makes sure that application arguments can be provided when
optimizing an application at build-time. It uses the same mechanism of
the regular run goal, merging the profile property if set.
Closes gh-32579
2 years ago
Stephane Nicoll
39cf17ed81
Add missing integration test for profile management in process-aot
2 years ago
Phillip Webb
e0b67889a8
Use Stream.toList instead of Stream.collect when possible
...
Update code to make use of `Stream.toList()` whenever possible.
Closes gh-28177
2 years ago
Stephane Nicoll
e2dd0ef9a4
Adapt AotProcessor to changes in Spring Framework
...
Closes gh-32560
2 years ago
Andy Wilkinson
51df7813a5
Remove code deprecated in 2.x and add since and forRemoval attributes
...
Closes gh-32548
Closes gh-32549
2 years ago
Madhura Bhave
afce559050
Remove unused dependency from Maven integration test
2 years ago
Phillip Webb
20b91c5ae2
Include 'classesDirectory' in ProcessTestAotMojo classpath
...
Update `ProcessTestAotMojo` so that the classesDirectory and
the testClassesDirectory are on the classpath when compiling
code.
See gh-32191
2 years ago
Stephane Nicoll
88f2b33cc1
Add AOT-generated classes to classpath of the compiler
...
See gh-32304
2 years ago
Stephane Nicoll
5e24b5a110
Stop using RuntimeHintsUtils#registerAnnotation
2 years ago
Andy Wilkinson
746ed84120
Polish ProcessTestAotMojo
2 years ago
Phillip Webb
09bd531fe5
Add Maven plugin support for processing test contexts Ahead-of-time
...
Refactor and update the Spring Boot Maven Plugin so that it can
be used to perform AOT processing of test classes.
Closes gh-32191
2 years ago
Phillip Webb
2f6354f633
Rename 'aot-generate' goal to process-aot'
...
See gh-31918
2 years ago
Stephane Nicoll
c67010ddd1
Make test more robust
2 years ago
Stephane Nicoll
4a00d76b85
Adapt integration tests to proxy changes in Spring Framework
2 years ago
Phillip Webb
e08c16dfd6
Polish
2 years ago
Stephane Nicoll
41e8697445
Polish
2 years ago
Stephane Nicoll
da324c8b03
Merge branch '2.7.x'
2 years ago
Stephane Nicoll
6786659aae
Merge branch '2.6.x' into 2.7.x
2 years ago
Stephane Nicoll
7d860df5f0
Polish
2 years ago
Stephane Nicoll
b0bc7cd85b
Reuse JavaProcessExecutor
...
See gh-31682
2 years ago
Stephane Nicoll
c3ae6519f4
Reuse SpringApplicationClassFinder
...
See gh-31682
2 years ago
Stephane Nicoll
472b0b8bcb
Remove AbstractApplicationRunMojo intermediate layer
...
This commit reverts the intermediate layer that was created to
accommodate with the AOT use case.
See gh-31682
2 years ago
Stephane Nicoll
6f8b9288f3
Extract AotGenerateMojo to its own structure
...
This commit stops AotGenerateMojo from being an extension of the
regular run infrastructure and used the opportunity to extract a
number of utility classes to run a Java process.
As a result, not all features of running an application is supported
and exposed options now are targeted against AOT.
See gh-31682
2 years ago
Phillip Webb
7377d85096
Merge branch '2.7.x'
...
Closes gh-31866
2 years ago
Phillip Webb
a4ef6a7c5c
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31865
2 years ago
Marc Wrobel
dbfc6bded4
Fix typos in code and documentation
...
See gh-31734
2 years ago
Scott Frederick
6f65777035
Merge branch '2.7.x'
...
Closes gh-31827
2 years ago
Scott Frederick
9da38c8d2d
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31826
2 years ago
Scott Frederick
4e0b3aad9f
Clarify how docker image publishing registry is determined
...
Closes gh-31820
2 years ago
Scott Frederick
cf7a163c6d
Merge branch '2.7.x'
2 years ago
Scott Frederick
f9cf31e59e
Fix compile errors
...
See gh-28844
2 years ago
Scott Frederick
36d6106bb0
Merge branch '2.7.x'
...
Closes gh-31825
2 years ago
Scott Frederick
09c7ce6dab
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31824
2 years ago
Scott Frederick
9b0cdac58a
Simplify support for pushing images to unauthenticated registries
...
This commit removes the requirement that `docker.publishRegistry`
configuration must be provided when an image is published by the Gradle
or Maven plugin.
Fixes gh-28844
2 years ago
dreis2211
5db04da275
Use pattern matching for instanceof where appropriate
...
See gh-31475
2 years ago
dreis2211
fb45fc4819
Use Files.writeString() and Files.readString() where possible
...
See gh-31459
2 years ago
dreis2211
a639685053
Remove obsolete Java compatibility code
...
See gh-31452
2 years ago
Stephane Nicoll
e2c42e4bbf
Merge branch '2.7.x'
...
Closes gh-31262
2 years ago
Stephane Nicoll
8e550933a8
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31261
2 years ago
Stephane Nicoll
bbb5966bca
Upgrade integration tests to Apache Maven 3.8.5
...
Closes gh-31260
2 years ago
Stephane Nicoll
1c94f835c7
Copy AOT-generated classes
...
Closes gh-31245
2 years ago
Stephane Nicoll
0dbcb5f6d3
Start building against Spring Framework 6.0.0-M5 snapshots
...
See gh-31241
2 years ago
Andy Wilkinson
36a60d8e2e
Merge branch '2.7.x'
...
Closes gh-31181
3 years ago
Andy Wilkinson
137318a845
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31180
3 years ago
Damiano Albani
3f91ed037f
Fix Custom Layers Configuration section title in Maven plugin docs
...
See gh-31172
3 years ago
Andy Wilkinson
935d1264e0
Merge branch '2.6.x' into 2.7.x
3 years ago
Andy Wilkinson
14af1bb2dc
Polish
3 years ago
Andy Wilkinson
5dfa5adb75
Merge branch '2.7.x'
...
Closes gh-31178
3 years ago
Andy Wilkinson
455ee0ce22
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31177
3 years ago
Andy Wilkinson
ee45fd2fc8
Remove redundant throws declarations from internal APIs
...
Closes gh-31176
3 years ago
Phillip Webb
68bd9d6b6d
Merge branch '2.7.x'
3 years ago
Phillip Webb
06679a4c46
Merge branch '2.6.x' into 2.7.x
...
Closes gh-31128
3 years ago
Phillip Webb
9fa33e5645
Merge branch '2.5.x' into 2.6.x
...
Closes gh-31127
3 years ago
Phillip Webb
05a6447a8d
Polish "Resolve errors in layers.xsd"
...
Validate loaded `layer.xml` files against the XSD and additionally
update `<layers>` sub elements to have a 'minOccurs' of 0.
See gh-31126
3 years ago
Liuzh
0d78323b60
Resolve errors in layers.xsd
...
Update `layer-*.xsd` files with following fixes:
- Rename <includeProjectDependencies> to <includeModuleDependencies>
- Rename <excludeProjectDependencies> to <excludeModuleDependencies>
See gh-31126
3 years ago
Andy Wilkinson
c4beca3e01
Fix Maven-based AOT generation on Windows
...
Closes gh-30525
3 years ago
Phillip Webb
f8a41d34aa
Merge branch '2.7.x'
3 years ago
Andy Wilkinson
bcc27c5d22
Deleting existing output before running AOT processing
...
Closes gh-30981
3 years ago
Andy Wilkinson
08768b5821
Join compile classpath using system-dependent separator
...
See gh-30525
3 years ago
Andy Wilkinson
0ce6e437a9
Align AotGenerateTests with spring.factories changes in Framework
3 years ago
Phillip Webb
8cf63a28b8
Update AOT work to latest Framework code
3 years ago
Andy Wilkinson
541ab69aff
Merge branch '2.7.x'
3 years ago
Andy Wilkinson
4cd850cfc0
Merge branch '2.6.x' into 2.7.x
...
Closes gh-30851
3 years ago
Andy Wilkinson
fa327a783d
Merge branch '2.5.x' into 2.6.x
...
Closes gh-30850
3 years ago
Andy Wilkinson
4fd2e0c916
Polish "Fix typos"
...
See gh-30773
3 years ago
Andy Wilkinson
f6d24dc1a8
Fix typos
...
See gh-30773
3 years ago
Stephane Nicoll
e81c6337c6
Add support for invoking AOT to the Maven Plugin
...
This commit adds an `aot-generate` goal to the Maven Plugin that
triggers AOT generation on the application. The new goal shares a
number of properties with the existing `run` goal and uses the same
algorithm to detect the main class to use.
Closes gh-30525
3 years ago
Phillip Webb
7a6ca8ce25
Merge branch '2.7.x'
3 years ago
Phillip Webb
dd5696b59b
Update copyright year of changed files
3 years ago
Scott Frederick
e32511516e
Merge branch '2.7.x'
3 years ago
Scott Frederick
ef79a18514
Use provided scope for Maven core dependencies in Maven plugin
...
Fixes gh-29520
3 years ago
Stephane Nicoll
5f66019706
Remove the ability to run an application in the Maven process
...
Closes gh-30501
3 years ago
Stephane Nicoll
13c9c1adb5
Merge branch '2.7.x'
3 years ago
Stephane Nicoll
2c5398898b
Polish "Deprecate running an application in the Maven JVM"
...
See gh-30479
3 years ago
Stephane Nicoll
c21b4a5280
Merge branch '2.7.x'
3 years ago
Stephane Nicoll
09696c90c7
Deprecate running an application in the Maven JVM
...
This commit deprecates the "fork" property so that the application
always runs in a dedicated process. This aligns with the behaviour of
the Gradle plugin, and simplifies the lifecycle of certain features that
would not work in a non-forked process.
Closes gh-30479
3 years ago
Scott Frederick
377b13c048
Merge branch '2.7.x'
3 years ago
Scott Frederick
de321b00b7
Support podman for building images
...
Closes gh-30196
3 years ago
Scott Frederick
5e07db7d21
Merge branch '2.7.x'
3 years ago
Scott Frederick
7ad538cd84
Add option to use configured Docker host in builder
...
This commit adds support for a `docker.bindHostToBuilder` option in
the Maven and Gradle image building goal and task.
Fixes gh-29384
3 years ago
Stephane Nicoll
41fb9cf562
Merge branch '2.7.x'
3 years ago
Stephane Nicoll
f812b33cbd
Merge branch '2.6.x' into 2.7.x
...
Closes gh-29613
3 years ago
Stephane Nicoll
136b5959c3
Merge branch '2.5.x' into 2.6.x
...
Closes gh-29612
3 years ago
Stephane Nicoll
7f17f819a6
Polish "Enforce use of BDDMockito"
...
See gh-29178
3 years ago
Yanming Zhou
b49418aaaf
Enforce use of BDDMockito
...
1. Replace Mockito.verify*() with BDDMockito.then()
2. Replace Mockito.doReturn() with BDDMockito.willReturn()
3. Adjust checkstyle rule
See gh-29178
3 years ago
Andy Wilkinson
f2ac7d10ef
Merge branch '2.7.x'
3 years ago
Andy Wilkinson
8480abca20
Merge branch '2.6.x' into 2.7.x
...
Closes gh-29561
3 years ago
Andy Wilkinson
fe43d527b5
Merge branch '2.5.x' into 2.6.x
...
Closes gh-29560
3 years ago