Commit Graph

49 Commits

Author SHA1 Message Date
Stephane Nicoll
53a0484289 Add a way to easily create a Spring Boot starter from id 2019-08-21 11:08:47 +02:00
Stephane Nicoll
3d11b9daff Upgrade to Gradle 5.6
Closes gh-986
2019-08-19 08:29:53 +02:00
Stephane Nicoll
9c30905003 Simplify KotlinVersionResolver arrangement
This commit makes sure KotlinVersionResolver works with the actual
metadata instance used by the project to generate rather than
potentially using a different instance via the provider.

Rather than requiring such a bean to be present, the configuration
fallbacks to the metadata implementation if none is provided.
2019-08-14 14:45:24 +02:00
Stephane Nicoll
e343e3c0fc Harmonize how Spring Boot plugin is configured with Gradle
Closes gh-980
2019-08-14 14:37:56 +02:00
Stephane Nicoll
c1b1b36f25 Add a strategy to resolve the dependency management plugin version
Closes gh-977
2019-08-14 14:37:48 +02:00
HaiTao Zhang
083213c904 Add support for removing build plugins
See gh-978
2019-08-13 17:47:36 +02:00
Stephane Nicoll
318ffccfe7 Stop excluding JUnit 4 as of Spring Boot 2.2.0.M5
This commit updates the test starter contributor to only exclude the
vintage engine as excluding junit is no longer necessary.

Closes gh-930
2019-08-09 15:54:02 +02:00
Stephane Nicoll
a92c791c32 Polish "Do not add snapshot repo unless absolutely necessary"
See gh-960
2019-07-25 12:20:15 +02:00
HaiTao Zhang
c54ec295bf Do not add snapshot repo unless absolutely necessary
See gh-960
2019-07-25 11:53:16 +02:00
Stephane Nicoll
18b537b65f Infer default link name when appropriate
This commit improves the HELP.md customizer for links to add a link even
if it does not have a description. Links are defined in three dedicated
areas so it is possible to infer a sensible name if only one link of a
certain type is present.

Closes gh-962
2019-07-23 17:45:02 +02:00
Madhura Bhave
7cfb0c23e9 Add jackson-module-kotlin when json facet and kotlin is in use
Closes gh-957
2019-07-16 13:23:52 -07:00
Stephane Nicoll
449b22403a Upgrade to spring-javaformat 0.0.15
Closes gh-949
2019-07-10 14:57:35 +02:00
Andy Wilkinson
db2c867f71 Make compileOnly configuration customization Gradle 4+ specific
Closes gh-848
2019-06-27 20:02:20 +01:00
Andy Wilkinson
93975d98b9 Use a strategy for Kotlin version resolution
Closes gh-926
2019-06-27 15:12:45 +01:00
Andy Wilkinson
372ff967a1 Make generated .gitignore more multi-module friendly
Closes gh-927
2019-06-14 14:31:22 +01:00
Stephane Nicoll
2f50cf1c8f Format source code
Closes gh-923
2019-06-12 14:46:53 +02:00
Stephane Nicoll
a79a9ae101 Upgrade to Gradle 4.10.3 for Spring Boot 2.0.x projects 2019-06-02 09:21:59 +02:00
Stephane Nicoll
b8cac0407b Add dependency builder
This commit adds a builder for Dependency to allow it to be further
tuned without having to add an extra constructor.
2019-05-22 15:44:30 +02:00
Stephane Nicoll
7a30f771f2 Provide idiomatic test setup when JUnit Jupiter is available
This commit provides a better test infrastructure when JUnit 5 is
available:

* The default test class uses JUnit Jupiter API
* The vintage engine that the Spring Boot starter provides is excluded
so that only the Junit Jupiter API is available on the classpath

Closes gh-905
2019-05-22 13:49:50 +02:00
Stephane Nicoll
b0597aaca1 Add modifiers support to TypeDeclaration
Closes gh-908
2019-05-22 10:10:30 +02:00
Stephane Nicoll
9ea41f151d Configure JUnit platform with Spring Boot 2.2+
Closes gh-904
2019-05-21 13:31:00 +02:00
Stephane Nicoll
c7c16872c4 Polish "Add Gradle Kotlin DSL support"
In particular, this commit replaces the GradleKts dedicated build system
in favor of a dedicated build system dialect.

Closes gh-851

Co-authored-by: Andy Wilkinson <awilkinson@pivotal.io>
2019-05-15 16:54:50 +02:00
jnizet
239116b29a Add Gradle Kotlin DSL support
This commit refactors the existing Groovy DSL writers in order to share
code between the Groovy DSL and Kotlin DSL writers.

See gh-851
2019-05-15 16:54:50 +02:00
Stephane Nicoll
26fb971102 Upgrade to Gradle 5.4.1 2019-05-09 11:28:34 +02:00
Madhura Bhave
0f645c7143 Polish "Add support for Gradle's tasksWithType"
Closes gh-890

Co-authored-by: Stephane Nicoll <snicoll@pivotal.io>
2019-05-02 10:42:21 +02:00
jnizet
0eeb85697e Add support for Gradle's tasksWithType
This commit adds support for configuring several tasks at once using
a type. It also migrates the Kotlin support so that, instead of
configuring compileKotlin and compileTestKotlin, it configures all
tasks of type KotlinCompile at once.

See gh-890
2019-05-02 09:41:05 +02:00
Stephane Nicoll
baffdfa74d Polish 2019-04-10 11:12:09 +02:00
unknown
bfed3d9474 Upgrade to GMavenPlus 1.6.3
See gh-878
2019-03-27 07:11:56 +01:00
Stephane Nicoll
357313c7bf Upgrade to spring-javaformat 0.0.7
This commit upgrades to spring-javaformat 0.0.7 and checkstyle 8.18.
2019-03-20 17:34:50 +01:00
Stephane Nicoll
738cf0f55b Move BuildWriter to core module
See gh-871
2019-03-17 11:08:09 +01:00
Stephane Nicoll
9203e1bd61 Move metadata build support classes to the metadata module
See gh-871
2019-03-17 11:05:01 +01:00
Stephane Nicoll
48097295d4 Polish "Add gitignore for VS Code"
Closes gh-864
2019-03-15 11:39:06 +01:00
Govinda
c5f0b835e0 Add gitignore for VS Code
See gh-864
2019-03-15 11:33:34 +01:00
Sebastien Deleuze
b8e21636de Fix Maven Kotlin JPA compiler plugin configuration
See gh-868
2019-03-15 11:20:06 +01:00
Stephane Nicoll
0ecdf3097a Restore the ability to generate several parameters with the same name
This commit fixes the handling of configuration parameters so that
nested groups can be reused when requested with the same parameter
name. However, single parameters are additive.

Closes gh-867
2019-03-14 17:51:04 +01:00
Stephane Nicoll
a5e2994f1d Make sure that Maven plugin configuration can be amended
See gh-867
2019-03-14 15:23:17 +01:00
Brian Clozel
8263920e74 Reword HELP.md list of guides 2019-03-11 16:27:25 +01:00
Stephane Nicoll
2647c19d5b Only customize annotationProcessor scope with Gradle 4+
Closes gh-848
2019-03-10 11:04:48 +01:00
jnizet
3ea0066fa8 Avoid applying Kotlin JPA plugin
Applying plugins imperatively is discouraged, and since the plugin is
added to the plugins block anyway, it is applied already.

See gh-853
2019-03-04 11:36:40 +01:00
Stephane Nicoll
82d9db7368 Add support for Gradle 5
Closes gh-847
2019-03-01 11:12:25 +01:00
Stephane Nicoll
590f3ad5ec Support of multiple Gradle generations
This commit improves `@ConditionalOnGradleVersion` to support more than
one Gradle generation in case a bean should be declared for multiple
Gradle generations.

Closes gh-849
2019-03-01 11:11:14 +01:00
Stephane Nicoll
4ac8ab3d24 Polish
See gh-849
2019-03-01 09:47:08 +01:00
Stephane Nicoll
b24cd2e9ca Add workaround for annotationProcessor scope detection in IJ
Closes gh-848
2019-02-28 18:18:09 +01:00
Stephane Nicoll
e7ee22f73a Restore support for Gradle 3
While new scopes are available as of Gradle 3.4, the Spring Boot plugin
does not manage them in the `1.5.x` line. This commit introduces a
dedicated GradleBuildWriter for Gradle 3 that uses the previous scopes.

Closes gh-845
2019-02-21 18:22:52 +01:00
Stephane Nicoll
de802b8383 Add HELP.md to .gitignore if necessary 2019-02-20 08:37:34 +01:00
Stephane Nicoll
924a73310a Project documentation infrastructure
This commit adds support for an `HelpDocument` that can be generated
alongside the project. Such document can hold an arbitrary number of
sections with pre-defined sections such as "Getting Started" and "Next
Steps".

A default contributor retrieves the links for requested dependencies
and add them to the document.

Closes gh-353

Co-authored-by: Madhura Bhave <mbhave@pivotal.io>
2019-02-19 21:10:58 -08:00
Stephane Nicoll
701f3f6277 Map project version from version capability
Closes gh-832
2019-02-14 14:52:07 +01:00
Stephane Nicoll
b0d7bdd343 Honour custom application name in Kotlin main class
Closes gh-826
2019-02-13 09:53:49 +01:00
Stephane Nicoll
5e04746746 Add Spring-based project contributors
This commit adds an optional module that gathers the opinions that are
used to generate a Spring Boot project.

Closes gh-340

Co-authored-by: Madhura Bhave <mbhave@pivotal.io>
Co-authored-by: Andy Wilkinson <awilkinson@pivotal.io>
2019-02-08 09:50:35 +01:00