Commit Graph
2161 Commits
Author SHA1 Message Date
Stephane Nicoll eb618d5dd7 Overhaul annotation support for code generation
This commit improves the annotation support so that it handles more
attribute types. An AnnotationContainer is introduced that permits to
further configure an annotation, in particular attribute values can be
added, and an attribute can be removed.

This commit adds a number of deprecations:

* Annotation#getName has been deprecated in favor of
Annotation#getClasName.
* Annotable#annotate has been deprecated in favor of
Annotable#annotations()#add.
* Annotable#getAnnotations has been deprecated in favor of
Annotable#annotations()#values.
* Annotation#name has been deprecated in favor of Annotation#of.
* Annotation.Builder#attribute has been deprecated in favor of
Annotation.Builder#set.

In particular, the type of the attribute does not need to be specified
as it is infered from the specified values. Use Annotation.Builder#add
or Annotation.Builder#set depending on your needs.

Closes gh-1424
2023-06-12 09:15:50 +02:00
Stephane Nicoll 1d9e6b5b7b Introduce class name
Closes gh-1425
2023-06-09 16:46:03 +02:00
Stephane Nicoll d22201b2d6 Allow CodeBlock to be used by $L 2023-06-08 12:40:35 +02:00
Stephane Nicoll 4c77196504 Avoid imports from current package
Closes gh-1421
2023-06-07 15:44:48 +02:00
Stephane Nicoll 8acbad503a Introduce CodeBlock
This commit introduces a way to build more complex statement, including
multi statements and nested method invocations. CodeBlock is heavily
inspired from Square's JavaPoet project.

A CodeBlock is an immutable piece of code that provide the imports that
are needed and can emit code to an IndentingWriter.

This commit also migrates the use of expressions in Java, Kotlin, and
Groovy to the newly introduced CodeBlock. Those are deprecated in
favor of CodeBlock.

Closes gh-1043
2023-06-07 12:01:43 +02:00
Stephane Nicoll be0d541d4d Upgrade Java version in CI image 2023-06-01 15:11:05 +02:00
Stephane Nicoll 58f1b946d4 Use bullet list for compose services
Closes gh-1419
2023-06-01 13:26:11 +02:00
Stephane Nicoll 2a9d163de1 Merge pull request #1417 from mhalbritter
* pr/1417:
  Polish "Add support for Docker Compose"
  Add support for Docker Compose

Closes gh-1417
2023-05-31 16:59:12 +02:00
Stephane Nicoll 9995d6a2e9 Polish "Add support for Docker Compose"
See gh-1417
2023-05-31 16:58:29 +02:00
Moritz Halbritter 8430cccecf Add support for Docker Compose
This commit adds the necessary infrastructure to design and contribute
a compose file to the project. ComposeHelpDocumentCustomizer can be
used to write out a section into the help file containing a table
listing all the services with their images and tags.

See gh-1417
2023-05-31 16:58:28 +02:00
Moritz Halbritter 8f73f6c286 Polish 2023-05-26 15:31:37 +02:00
Stephane Nicoll f44cb054cd Upgrade to Maven Dependency Plugin 3.5.0 2023-05-25 14:43:42 +02:00
Stephane Nicoll 8f4f92e3ac Upgrade to Asciidoctor Maven Plugin 2.2.3 2023-05-25 14:42:53 +02:00
Stephane Nicoll a7cb30382b Upgrade to Build Helper Maven Plugin 3.4.0 2023-05-25 14:42:07 +02:00
Stephane Nicoll 9f3f72f2f6 Upgrade to Maven Assembly Plugin 3.6.0 2023-05-25 14:41:25 +02:00
Andy Wilkinson 467e8132cd Merge branch '0.13.x' 2023-05-25 11:31:29 +01:00
Andy Wilkinson 06b030a03e Update CI pipeline 2023-05-25 11:02:29 +01:00
Stephane Nicoll 23b1600695 Upgrade to Maven 3.9.2
Closes gh-1416
2023-05-24 14:12:45 +02:00
Stephane Nicoll 0597889d74 Upgrade to Maven Source Plugin 3.3.0 2023-05-24 14:12:44 +02:00
Stephane Nicoll 6501efff72 Upgrade to Maven Checkstyle Plugin 3.2.1 2023-05-24 14:12:44 +02:00
Stephane Nicoll 16324fdd08 Merge pull request #1415 from prithvitewatia
* pr/1415:
  Polish contribution
  Upgrade to Maven Resolver 1.9.7 and Maven Resolver Provider 3.9.1

Closes gh-1415
2023-05-24 13:47:39 +02:00
Stephane Nicoll d79670c72a Polish contribution
See gh-1415
2023-05-24 13:45:50 +02:00
Prithvi singh ca58d13701 Upgrade to Maven Resolver 1.9.7 and Maven Resolver Provider 3.9.1
See gh-1415
2023-05-24 13:32:16 +02:00
Stephane Nicoll e8438e79bb Merge pull request #1406 from mhalbritter
* pr/1406:
  Polish "Make optional/developmentOnly more generic"
  Make optional/developmentOnly more generic

Closes gh-1406
2023-05-24 13:13:04 +02:00
Stephane Nicoll 4f85c00e13 Polish "Make optional/developmentOnly more generic"
See gh-1406
2023-05-24 13:09:45 +02:00
Moritz Halbritter be3eaf480d Make optional/developmentOnly more generic
See gh-1406
2023-05-24 13:09:30 +02:00
Stephane Nicoll 38a4926e76 Upgrade to Spring Boot 3.1.0 2023-05-19 08:54:05 +02:00
Stephane Nicoll cd7e826048 Upgrade to spring javaformat 0.0.39 2023-05-18 11:54:50 +02:00
Stephane Nicoll 055bb24911 Upgrade Ubuntu version in CI images 2023-05-04 16:16:40 +02:00
Andy Wilkinson 9918a53ee5 Make snapshots available to the build
See gh-1408
2023-04-28 17:39:06 +01:00
Andy Wilkinson d076aecd9e Use Spring Asciidoctor Backends 0.0.6 snapshots
It hopefully fixes a mixed UTF-8 and US-ASCII encoding issue on CI.

See gh-1408
2023-04-28 17:28:57 +01:00
Andy Wilkinson 57601aef00 Migrate to Spring Asciidoctor HTML backend
Closes gh-1407
2023-04-28 15:56:52 +01:00
Stephane Nicoll 3cd1f9af31 Upgrade to Spring Boot 3.0.6 2023-04-21 16:41:54 +02:00
Stephane Nicoll fd76c7d0a3 Document default metadata cache expiration policy
Closes gh-1391
2023-04-19 13:30:39 +02:00
Stephane Nicoll 447e9e438e Add support for Maven 3.9.x
This commit switches the Maven wrapper to Maven 3.9 when Spring Boot 3.1
or later is selected. The previous 3.8 version is kept for older
versions.

Closes gh-1402
2023-04-19 12:38:05 +02:00
Stephane Nicoll 0de726ef0d Merge pull request #1401 from rijusougata13
* pr/1401:
  Polish "Replace @Controller with @RestController"
  Replace @Controller with @RestController

Closes gh-1401
2023-04-06 13:18:51 +02:00
Stephane Nicoll 7ed74b28eb Polish "Replace @Controller with @RestController"
See gh-1401
2023-04-06 13:16:02 +02:00
rijusougata13 1dd4ddf4dc Replace @Controller with @RestController
See gh-1401
2023-04-06 13:13:32 +02:00
Stephane Nicoll bf5326f30a Polish 2023-04-03 16:17:07 +02:00
Stephane Nicoll a27a57d0f8 Upgrade to Maven Deploy Plugin 3.1.1 2023-04-03 16:14:37 +02:00
Stephane Nicoll 83649e483a Upgrade to Commons Compress 1.23.0
Closes gh-1398
2023-04-03 15:22:02 +02:00
Stephane Nicoll 5e97a01e99 Upgrade to spring javaformat 0.0.38 2023-04-03 15:21:03 +02:00
Stephane Nicoll 32b5db7a5a Upgrade build to Maven 3.9.1
Closes gh-1396
2023-04-03 15:21:03 +02:00
Stephane Nicoll cb44b20677 Upgrade to Flatten Maven Plugin 1.4.1
See gh-1396
2023-04-03 15:21:02 +02:00
Stephane Nicoll de339c9402 Upgrade to Maven Surefire Plugin 3.0.0
See gh-1396
2023-04-03 15:21:02 +02:00
Stephane Nicoll bf27cfcf01 Upgrade to Maven Resources Plugin 3.3.1 2023-04-03 15:21:02 +02:00
Stephane Nicoll a9de8efd16 Upgrade to Maven Javadoc Plugin 3.5.0 2023-04-03 15:21:02 +02:00
Stephane Nicoll 24ad150df9 Upgrade to Maven Compiler Plugin 3.11.0 2023-04-03 15:21:02 +02:00
Stephane Nicoll ea6244f0a9 Upgrade to Maven Assembly Plugin 3.5.0 2023-04-03 15:21:01 +02:00
Stephane Nicoll 0f9decfffc Upgrade to Spring Cloud Contract 4.0.2
Closes gh-1397
2023-04-03 15:21:00 +02:00