Commit Graph

904 Commits

Author SHA1 Message Date
Andy Wilkinson
7082c81167 Reinstate Maven Central as a source for dependency upgrades
See gh-42333
2024-10-09 09:35:29 +01:00
Andy Wilkinson
09400df47b Make URL creation more robust in Bomr's version resolver
Using URI#resolve is brittle as the behavior changes depending on
whether or not the URI ends with a /. This can result in the
original URI's path being lost and the URLs for the Maven metadata
files being incorrect.

See gh-42333
2024-10-09 09:21:09 +01:00
Phillip Webb
ab6d5576a7 Fix typo
See gh-42333
2024-10-01 13:51:44 -07:00
Phillip Webb
05b4edfd2c Use ifeval block for Commercial/OSS documentation
See gh-42333
2024-09-30 15:56:40 -07:00
Phillip Webb
7f8fe4251d Fix SpringRepositorySupport environment support
See gh-42333
2024-09-30 15:15:55 -07:00
Phillip Webb
f7d7d16ecd Polish logger naming 2024-09-30 11:44:28 -07:00
Phillip Webb
72de717d2a Skip Homebrew formula creation for non OSS build
See gh-42333
2024-09-30 11:42:16 -07:00
Phillip Webb
89ce26bf26 Skip SCM and IssueManagement POM configuration for non OSS builds
See gh-42333
2024-09-30 11:30:56 -07:00
Phillip Webb
d44e7c9af2 Dynamically populate repositories used in Ant/Maven integration tests
Update build scripts and tests so that repository settings are copied
dynamically from the build.

See gh-42333
2024-09-27 17:33:00 -07:00
Phillip Webb
0ac06696f7 Be defensive when accessing properties in SpringRepositorySupport.groovy
See gh-42333
2024-09-27 13:18:51 -07:00
Phillip Webb
c347ccaa76 Attempt to fix system tests following repository updates
See gh-42333
2024-09-27 12:17:29 -07:00
Phillip Webb
9836011ffd Create extension to configure Spring maven repositories
Create a small Groovy script that can be used in `settings.gradle`
files to extend `repositories` to support the various maven
repositories required for our build.

See gh-42333
2024-09-27 10:30:20 -07:00
Phillip Webb
4e02c438e4 Update BOMR to use repository names rather than SpringRepository
Update BOMR to use repositories names so that we can delete the
`SpringRepository` logic.

See gh-42333
2024-09-26 20:42:38 -07:00
Phillip Webb
1d3fff402f Fix checkstyle tool version reference 2024-09-24 16:48:52 -07:00
Phillip Webb
ad72411e2b Apply conventions plugin to all subprojects
Closes gh-42438
2024-09-24 14:26:32 -07:00
Phillip Webb
eafe61c4ca Backport upgrade to Gradle 8.10.1
Cherry-pick commits d756bf4e86, 083ac67d13 and 162c929a80 to
upgrade to Gradle 8.10.1.

Closes gh-42433
2024-09-24 12:55:29 -07:00
Phillip Webb
23ddad1ebd Propagate gradle.properties to buildSrc
Update `buildSrc` so that properties frok the root `gradle.properties`
file are available.

See gh-42333
2024-09-23 21:59:39 -07:00
arefbehboudi
0d3fceec5d Polish
See gh-42413
2024-09-22 17:45:59 -07:00
Phillip Webb
19d9e3b6cc Update BOM plugin to support commercial releases
See gh-42333
2024-09-20 17:33:46 -07:00
Phillip Webb
f9379f4576 Apply nohttp check per-project rather than at root
Switch nohttp checks to a convention that is applied per-project rather
than at the root. This should help to reduce memory consumption.

Closes gh-42332
2024-09-18 15:14:52 +01:00
Andy Wilkinson
545e370d9a Declare use of testResultsOverview build service
Closes gh-42265
2024-09-11 15:15:05 +01:00
Andy Wilkinson
c98363d016 Polish formatting 2024-08-28 14:40:20 +01:00
Andy Wilkinson
6ebc9b887e Use ArchiveOperations instead of Project's zipTree
Closes gh-41999
2024-08-28 14:23:04 +01:00
Andy Wilkinson
ea0142f849 Use FileSystemOperations instead of Project copy and sync
Closes gh-41998
2024-08-28 14:22:44 +01:00
Andy Wilkinson
0915b9534c Upgrade to ArchUnit 1.3.0
Closes gh-42009
2024-08-23 11:27:03 +01:00
Andy Wilkinson
112cfc8be6 Remove processed annotations plugin declaration
See gh-41981
2024-08-22 07:48:34 +01:00
Andy Wilkinson
b2887303a6 Remove processed annotations plugin
Closes gh-41981
2024-08-21 13:16:34 +01:00
Piyal Ahmed
016e70cbd2 Polish
See gh-41957
2024-08-20 11:44:12 +02:00
Andy Wilkinson
98773cdde9 Sync Maven binaries rather than copying them
This prevents binaries accumulating in build/maven-binaries when
the versions of Maven that are tested changes.

Closes gh-41649
2024-08-15 16:58:21 +01:00
Moritz Halbritter
1d45016d8c Upgrade to spring-javaformat 0.0.43
Closes gh-41853
2024-08-14 16:32:41 +02:00
Andy Wilkinson
4ee24bf9bd Polish "Add rule to prevent calls to Objects.requireNonNull()"
See gh-41611
2024-07-29 11:41:26 +01:00
ivamly
fb22c189f4 Add rule to prevent calls to Objects.requireNonNull()
See gh-41611
2024-07-29 10:35:44 +01:00
Phillip Webb
61dc82d836 Update copyright year of changed files 2024-07-22 18:16:19 +01:00
Andy Wilkinson
7398c6c2a4 Fix upgrade detection when number of numeric components changes
Fixes gh-41471
2024-07-12 15:53:02 +01:00
Andy Wilkinson
68c5f59ab9 Configure checkArchitecture tasks to depend on resource processing
Closes gh-41358
2024-07-09 10:57:38 +01:00
Andy Wilkinson
cb9135b743 Align GraphQL Java version with dependency from spring-graphql
Closes gh-41315
2024-07-08 10:32:04 +01:00
Andy Wilkinson
d71fdd9712 Make buildSrc's custom Gradle tasks consistently abstract
Closes gh-41272
2024-06-28 15:40:56 +01:00
Andy Wilkinson
365fdfee45 Reduce scope of mavenOptional feature to only the Maven Plugin
Previously, the mavenOptional was added to every published module but it
was only used by spring-boot-maven-plugin. This commit reduces its scope
so that it only affects the Maven plugin. It also reworks the
implementation to reuse the existing optional configuration rather than
declaring a new mavenOptional configuration. Lastly, publication of
Gradle Module Metadata (GMM) has been disabled for
spring-boot-maven-plugin. This is seen as preferable to publishing the
metadata – which isn't really needed as it does not contain any useful
additional information – and having to suppress warnings about
incomplete mapping of GMM to pom metadata.

Closes gh-41263
2024-06-28 11:39:46 +01:00
Andy Wilkinson
d78c7b541a Introduce docker-test plugin for running tests that require Docker
See gh-41228
2024-06-26 19:45:21 +01:00
Phillip Webb
2a4582b084 Update copyright year of changed files 2024-06-19 22:54:40 -07:00
Phillip Webb
dcccb3b2b1 Polish "Use method references when possible"
See gh-40974
2024-06-11 12:57:59 -07:00
Ahmed Ashour
507229eef8 Use method references when possible
See gh-40974
2024-06-11 12:57:55 -07:00
Phillip Webb
a18cb37657 Polish "Use 'switch' instead of 'if'"
See gh-40985
2024-06-11 12:24:13 -07:00
Ahmed Ashour
2c5934dab2 Use 'switch' instead of 'if'
See gh-40985
2024-06-11 12:24:11 -07:00
Phillip Webb
ecc9a2352d Polish "Use constructor rather than Collection.addAll"
See gh-41053
2024-06-11 10:02:27 -07:00
Moritz Halbritter
ef0cf7e9da Merge branch '3.1.x' into 3.2.x
Closes gh-40702
2024-05-13 11:52:18 +02:00
Piyal Ahmed
3cac9b1d17 Fix typo in JavaDoc
See gh-40637
2024-05-13 11:50:49 +02:00
Andy Wilkinson
436f2758f8 Ensure that extensions have been built before Asciidoctor runs
See gh-40536
2024-05-10 09:57:12 +01:00
Andy Wilkinson
c7ec6080ce Publish a runtime variant that supports Java 22
In order to support Java 22, we must use spring-core 6.1.x.
spring-core 6.1.x is a multi-release jar so, in order to support Java
22, a version of Gradle that supports multi-release jars must be
used.

This commit adds a new variant to spring-boot-gradle-plugin for
modern versions of Gradle. When Gradle's plugin API version is 8.7 or
later, we use spring-core 6.1.x. spring-core 6.0.x is used at all
other times.

Closes gh-40074
2024-05-02 10:45:18 +01:00
Andy Wilkinson
0757857b74 Stop calling getProject() when ExtractVersionConstraints is executing
Closes gh-40550
2024-04-26 17:03:29 +01:00