Commit Graph

549 Commits

Author SHA1 Message Date
Andy Wilkinson
8fc59e3367 Improve bom checking and address reported problems
Closes gh-38250
2023-11-07 11:18:19 +00:00
Victor Georgescu
b9c2c6b820 Polish unit tests from buildSrc
* remove redundant "public" access modifiers
* remove a never thrown defined Exception
* assert the emptiness instead of length of files

See gh-38086
2023-10-27 17:06:24 +01:00
Phillip Webb
abdad1cabe Constently use assertThatExceptionOf... assertions
Closes gh-37964
2023-10-19 20:17:26 -07:00
Andy Wilkinson
952ce1234a Reinstate Download Plugin dependency 2023-10-11 11:44:26 +01:00
Andy Wilkinson
254b8fe3cb Closes gh-37815 2023-10-11 10:50:01 +01:00
Phillip Webb
a33ce9d405 Cache JDK downloads for tests that use ImageFromDockerfile
Update `spring-boot-launch-script-tests` and `spring-boot-loader-tests`
so that JDK archives are now downloaded by Gradle and cached across
builds.

Closes gh-37450
2023-10-05 20:49:02 -07:00
Phillip Webb
b83e7b42bb Update copyright year of changed files 2023-09-20 16:05:44 -07:00
Phillip Webb
e10ac76761 Polish 2023-09-20 16:05:30 -07:00
Andy Wilkinson
e8e5146beb Stop failing the build when tests pass after retry
Closes gh-37392
2023-09-15 08:34:08 +01:00
Andy Wilkinson
0b3a5f2489 Ensure that check for unnecessary exclusions runs on classpath change
Closes gh-37307
2023-09-13 10:19:52 +01:00
Andy Wilkinson
38e9ede17d Only suggest snapshots for which a release is planned
Closes gh-37212
2023-09-07 09:55:36 +01:00
Andy Wilkinson
2d6f436893 Improve handling and comparison of snapshot versions
Closes gh-36197
2023-09-06 12:04:58 +01:00
Andy Wilkinson
ced32f0751 Require libraries to opt in to moving to snapshots
Closes gh-37190
2023-09-05 10:40:31 +01:00
Andy Wilkinson
b858801a07 Use decorator pattern to multi-thread update resolution 2023-09-04 15:44:23 +01:00
Phillip Webb
527b2f2cac Polish 2023-08-13 18:18:48 -07:00
Andy Wilkinson
573f01e991 Polish Bomr's output
See gh-35296
2023-08-09 16:56:30 +01:00
Andy Wilkinson
4d75f2cb08 Improve log output when applying upgrades
Closes gh-35296
2023-08-09 14:02:40 +01:00
Andy Wilkinson
68baa6e7df Make section IDs consistent in Maven Plugin docs and enforce it
Closes gh-26619
2023-08-09 08:06:38 +01:00
Andy Wilkinson
00e46192e4 Fix handling of potential ugrade issues with no space in title 2023-08-03 14:52:14 +01:00
Andy Wilkinson
142a3983a0 Check that AutoConfiguration classes are listed in imports file
Closes gh-36253
2023-07-06 11:19:03 +01:00
Andy Wilkinson
0fdaba2487 Make TestSliceMetadata depend on source set's processResources task
Closes gh-36082
2023-06-27 11:10:30 +01:00
Andy Wilkinson
d2966e1cbf Polish "Replace calls to verifyComplete() to avoid indefinite blocking"
See gh-35915
2023-06-23 12:38:12 +01:00
Phillip Webb
b8d2c279ee Update copyright year of changed files 2023-06-16 14:32:43 -07:00
Andy Wilkinson
c46bef1858 Protect against unconstrained dependencies in starters
Closes gh-19775
2023-06-16 09:50:52 +01:00
Andy Wilkinson
7d07c0d09c Polish configuration related to predictive test selection
Most notably, this commit splits the tests that use Spring REST Docs
out into a separate task for which predictive test selection is
disabled. This allows it to be cached and use Gradle's built-in
up-to-date checking, thereby avoiding the generation of new snippets
and the need to then run the asciidoctor and asciidoctorPdf tasks.

It also updates spring-boot-smoke-test-junit-vintage to disable
predictive test selection so that we can continue to assert that
the some tests were executed.

See gh-35869
2023-06-14 18:15:04 +01:00
Andy Wilkinson
2084ae1d1f Make predictive test selection opt-in
Closes gh-35869
2023-06-13 21:04:07 +01:00
Andy Wilkinson
b2ef9da154 Always run Actuator documentation tests
The tests must run so that the snippets included in the docs are
generated.

Closes gh-35875
2023-06-13 20:29:30 +01:00
Andy Wilkinson
1e0c129452 Enable predictive test selection for local builds
Closes gh-35869
2023-06-13 15:54:20 +01:00
Moritz Halbritter
700e89097c Polish
See https://stackoverflow.com/questions/28671903/the-hashsett-removeall-method-is-surprisingly-slow
2023-05-12 11:57:33 +02:00
Andy Wilkinson
3a45d46583 Allow buildSrc to resolve Framework snapshots
Closes gh-35297
2023-05-05 08:16:37 +01:00
Andy Wilkinson
695e58f418 Align buildSrc's Framework version with the main build's version
Closes gh-35224
2023-05-02 08:59:58 +01:00
Andy Wilkinson
d0a354352d Polish buildSrc's build.gradle 2023-05-02 08:41:20 +01:00
Andy Wilkinson
c72b77c08e Polish 2023-04-26 20:36:45 +01:00
Andy Wilkinson
6b9bc012a5 Check that BPP and BFPP bean methods won't cause eager initialization
Closes gh-35164
2023-04-26 11:47:03 +01:00
Andy Wilkinson
0ed73a859b Upgrade to Spring Asciidoctor Backends 0.0.5
Closes gh-34432
2023-03-28 13:23:12 +01:00
Andy Wilkinson
b4fccf480a Ensure that Maven plugin's intTest runs when Maven binaries change
Previously, the intTest task had a dependsOn relationship with
prepareMavenBinaries task. This ensured that the two tasks ran in the
correct order but did not ensure that the intTest task would run if
the prepared binaries had changed.

This commit updates the configuration of the intTest task to wire up
the output of the prepareMavenBinaries as an input of the intTest
task. This ensures that the intTest task will run when the prepared
binaries have changed and also creates an implicit dependsOn
relationship between the two tasks.

Closes gh-34474
2023-03-06 10:18:24 +00:00
Phillip Webb
a5902d7a00 Update copyright year of changed files 2023-02-22 18:35:17 -08:00
Andy Wilkinson
510c78154b Remove unused version alignment support from Bomr
Closes gh-34333
2023-02-22 10:51:42 +00:00
Phillip Webb
df5898a146 Reformat code following spring-javaformat upgrade 2023-02-21 22:53:27 -08:00
Phillip Webb
b93c9f7fec Upgrade to spring-javaformat 0.0.38
Closes gh-34329
2023-02-21 22:29:11 -08:00
Scott Frederick
33aef7fe27 Update CLI installation docs to download releases from Maven Central
Closes gh-33962
2023-02-09 15:45:15 -06:00
Andy Wilkinson
994a7a0795 Add support to Bomr for moving to snapshots
Closes gh-27002
2023-02-09 15:53:52 +00:00
Andy Wilkinson
07fcb67540 Use repo.maven.apache.org consistently
Maven Central has two canonical URLs [1]:

- https://repo1.maven.org
- https://repo.maven.apache.org

This commit updates the codebase to only use repo.maven.apache.org.

Closes gh-33938

[1] https://central.sonatype.org/news/20190715_http_deprecation_update/#canonical-urls
2023-02-08 14:04:16 +00:00
Johnny Lim
5eeb429e44 Polish
See gh-33966
2023-01-31 10:48:30 +01:00
Phillip Webb
a0fe8241a7 Update copyright year of changed files 2023-01-17 10:07:03 -08:00
Moritz Halbritter
af2b5b4571 Increase sleep duration after creating GitHib issue in BOMR
Closes gh-30304
2023-01-17 10:32:36 +01:00
Moritz Halbritter
a41ca05a2f Default to empty string if description in plugin.xml is not set
Closes gh-20890
2023-01-16 14:52:29 +01:00
Moritz Halbritter
a2f9e30e77 Reduce number of threads used for BOMR library update checks
See gh-33824
2023-01-13 13:53:49 +01:00
Moritz Halbritter
e0b7720b9e Implement multithreaded BOMR library resolution
- BOMR now first looks for library updates, collects them all and then
  prompts the user to choose which update to apply
- Refactored code into StandardLibraryUpdateResolver
- Implemented MultithreadedLibraryUpdateResolver on top of the standard
  one
- Uses 8 threads by default, this is configurable
- When run with --info, it logs how long each update search took

Closes gh-33824
2023-01-13 10:47:24 +01:00
Moritz Halbritter
484d662085 Allow multiple startsWith, contains and endsWith clauses in bomr
- Add support for startsWith prohibition
2023-01-12 17:33:26 +01:00