Commit graph

274 commits

Author SHA1 Message Date
Sébastien Deleuze
f3a8d244b2 Upgrade to Spring Boot 3.0 RC1 2022-10-25 21:37:40 +02:00
Sébastien Deleuze
f53e0d098e Additional setup to support native image creation.
- Switch to Caffeine for caching since it is supported on native unlike Ehcache
 - Use latest metadata repository 0.2.3 (will be the default with Native Build Tools 0.9.15)
 - Registers resource hints for WebJars and db resource directory
2022-10-25 21:37:25 +02:00
Oliver Drotbohm
1e56f6fd80 Add JAXB API to compile time dependencies.
Needed for JAXB annotations in the sources on Java 17.
2022-10-25 21:34:03 +02:00
Dave Syer
1315cf6e1f Migrate to Spring Boot 3 2022-10-25 21:34:03 +02:00
Sébastien Deleuze
a5cbb8505a
Use WebJars versioned URLs (#1099)
In order to improve efficiency (see spring-projects/spring-framework#27619)
and allow native image compatibility, this commit uses WebJars versioned URLs
which are supported out of the box on Spring Boot via /META-INF/resources
default resource location configuration, removing the need to use
webjars-locator-core dependency and WebJarsResourceResolver.

I have been able to measure a consistent 5% startup time improvement on
the JVM with that simple change on my local machine.
2022-10-16 16:12:23 +01:00
dgcd
276880edef Upgrade to Gradle 7.5.1 and to Spring Boot 2.7.3 2022-09-05 11:48:27 +00:00
Dave Syer
3f8468432d Upgrade to Boot 2.7.1 2022-06-28 08:35:54 +01:00
Dave Syer
1db99dbb58 Update to Spring Boot 2.7.0 2022-05-19 14:07:16 +00:00
Dave Syer
d381fb658c Use open session in view and populate model attrs
Open session in view was switched off accidentally a while ago. Also
the mapping changes recently meant that the changes to @Valid model
attributes were not being propagated correctly.

Fixes #946 and #947
2022-04-11 13:24:49 +00:00
Dave Syer
702747f433 Update jacoco to work with Java 17 2022-02-23 12:37:21 +00:00
Dave Syer
604c9c51a3 Remove unused node.version 2022-02-23 11:15:15 +00:00
Stephane Nicoll
28ea39cb0c Upgrade to Maven Checkstyle plugin 3.1.2 2022-02-09 16:54:37 +01:00
Stephane Nicoll
d90ecb6a0f Upgrade to spring javaformat 0.0.31 2022-02-09 16:54:09 +01:00
Stephane Nicoll
604a9dfe1e Upgrade to nohttp 0.0.10 2022-02-09 16:52:40 +01:00
Stephane Nicoll
cae097bf6f Upgrade to Spring Boot 2.6.3 2022-02-09 16:52:00 +01:00
Dave Syer
a5da14ae2f No need for exclusion in recent versions 2022-01-05 08:25:30 +00:00
Dave Syer
c9534421c8 Remove PetRepository and use Owner as aggregate
Owner is really the aggregate root in DDD terms and there is no
need to directly access the Pet entity.
2022-01-05 08:24:58 +00:00
Thomas Risberg
778161f018 Update to Boot 2.6.2 2021-12-24 06:16:55 +00:00
Dave Syer
094d3021e9 Upgrade to Spring Boot 2.6.1 and fix Maven build 2021-12-16 11:39:30 +00:00
Fabian Muscariello
ce626da705 Add support for PostgreSQL
See #636
2021-12-07 16:55:01 +00:00
Dave Syer
83e074940b Tidy up properties in build config 2021-11-24 11:15:44 +00:00
Dave Syer
ff2febe09f Put CSS generation in a Maven profile 2021-11-24 07:50:15 +00:00
Dave Syer
7ea283613d Alternative approach with libsass-maven-plugin 2021-11-24 07:48:14 +00:00
Dave Syer
4d4727fce1 No need for jquery 2021-11-24 07:48:14 +00:00
Dave Syer
1095a15f0e Convert to SCSS and Bootstrap 5 2021-11-24 07:48:14 +00:00
Dave Syer
b45f5be820 Update to Spring Boot 2.5.6 2021-11-19 07:54:21 +00:00
Dave Syer
af9a0a423e Update to Boot 2.5.5 2021-10-19 15:34:07 +01:00
Stephane Nicoll
11f1234b42 Upgrade to Spring Boot 2.5.4 2021-08-26 16:31:33 +02:00
Dave Syer
af1857cda1 Add javaformat plugin to Eclipse workaround 2021-05-04 11:37:31 +01:00
Jinbo Wang
39d60e2761 Configure an inline m2e lifecycle mapping for wro4j-maven-plugin
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
2021-04-29 07:15:16 +01:00
Dave Syer
09e07869ac Update Spring Boot to 2.4.5 2021-04-29 07:11:20 +01:00
Diego Lemos
a0d743cfed Do not fail packaging if repo info is absent
As part of a process to build a BOSH release, I encountered the error
below while running `./mvnw package`:

```
[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:3.0.1:revision (default) on project spring-petclinic: Could not complete Mojo execution...: Error: Could not get HEAD Ref, are you sure you have set the dotGitDirectory property of this plugin to a valid path? -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
```

That's because we are just interested on the source files for the BOSH
release, we don't care about repo metadata (so we exclude them).

Going through the [git-commit-id-maven-plugin
docs](https://github.com/git-commit-id/git-commit-id-maven-plugin/blob/master/maven/docs/using-the-plugin.md)
we learned it is possible to prevent the failure above via
configuration.

We propose then to set
`<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>`,
enabling use cases similar to ours.

FWIW `failOnNoGitDirectory` is already set to false.
2021-01-28 10:13:23 +00:00
Dave Syer
04471aec49 Update to Boot 2.4.2 2021-01-28 09:55:39 +00:00
Stephane Nicoll
02babdd8cb Upgrade to Spring Boot 2.4.1 2020-12-25 13:02:48 +01:00
Arka Bandyopadhyay
0573cda3c2 Downgrade to wro4j 1.8.0
This commit downgrades the wro4j plugin to 1.8.0 as the latest version
requires Java 11.

See gh-707
2020-11-29 11:43:28 +01:00
Dave Syer
ab9135ad9b Upgrade to Spring Boot 2.4.0 2020-11-24 10:44:41 +00:00
Stephane Nicoll
7615395b1f Upgrade to Spring Boot 2.3.5 2020-11-06 08:30:48 +01:00
Piyush Garg
a1eaaa6878 Upgrade to wro4j 1.9.0
See gh-650
2020-11-06 07:54:59 +01:00
Akash Solanki
e5ef4d34e3 Remove redundant junits dependencies
See gh-670
2020-11-06 07:47:17 +01:00
Stephane Nicoll
27109010a5 Restore version to 2.3.0.BUILD-SNAPSHOT 2020-08-27 15:05:30 +02:00
Stephane Nicoll
be0f161453 Upgrade to Checkstyle 8.32 2020-08-27 15:04:12 +02:00
Stephane Nicoll
2e5be53533 Upgrade to spring javaformat 0.0.25 2020-08-27 15:03:51 +02:00
Stephane Nicoll
d19963e174 Upgrade to Spring Boot 2.3.3 2020-08-27 15:03:32 +02:00
Stephane Nicoll
02cc84223b Polish 2020-07-11 08:58:57 +02:00
Stephane Nicoll
5ad6bc3ccd Upgrade to spring javaformat 0.0.22 2020-07-11 08:58:57 +02:00
Dave Syer
d173555056 Update to Boot 2.3.1 2020-06-13 14:09:36 +01:00
Dave Syer
c9230c37b9 Bump to Spring Boot 2.3.0 2020-05-27 13:40:44 +00:00
Stephane Nicoll
adab01ef62 Upgrade to maven checkstyle plugin 3.1.1 2020-05-03 08:55:49 +02:00
Stephane Nicoll
6a18eecc9b Upgrade to spring javaformat 0.0.21 2020-05-03 08:55:22 +02:00
Stephane Nicoll
d9f37ece5c Upgrade to Spring Boot 2.3.0.RC1 2020-05-02 07:51:21 +02:00