Commit Graph

55 Commits

Author SHA1 Message Date
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
Andy Wilkinson
04b2777b32 Correct Kotlin DSL syntax for adding and customizing configurations
Fixes gh-917
2019-06-06 09:51:20 +01: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
209f092168 Make hasText public to validate corner cases 2019-05-31 11:19:37 +02:00
Stephane Nicoll
e6f287b298 Fix compatiblity with Microsoft Windows
Closes gh-879
2019-05-29 16:10:54 +02:00
Stephane Nicoll
62d0a94364 Migrate ProjectAssert to java.nio.file.Path 2019-05-28 15:29:28 +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
c298a6d021 Polish 2019-05-21 13:45:58 +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
372e823d21 Fix version references in Gradle KTS build
Closes gh-901
2019-05-17 18:45:40 +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
568ef5ed32 MetadataBuildItemResolver should use platform version
Closes gh-872
2019-03-17 14:41:03 +01:00
Stephane Nicoll
3818b5b05e Add rule to prevent Spring conventions to be imported
See gh-871
2019-03-17 11:22:36 +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
1ad3dae770 Polish 2019-03-15 14:24:25 +01:00
Stephane Nicoll
9465a70fa6 Polish 2019-03-15 11:50:10 +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
Stephane Nicoll
e9d82c9edb Polish "Fix Maven Kotlin JPA compiler plugin configuration"
Closes gh-868
2019-03-15 11:20:28 +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
Stephane Nicoll
ec6ac4b1d8 Harmonize assertions on text file content
This commit harmonizes assertions on text file content by sharing the
code that reads and validate candidates. Make sure that streams are
properly closed which may fix build failures on Windows.

See gh-862
2019-03-13 14:42:23 +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
Stephane Nicoll
f989d99347 Use standard AssertJ for GradleBuildAssert 2019-03-10 10:47:09 +01:00
Stephane Nicoll
727475cec9 Polish "Avoid applying Kotlin JPA plugin"
Closes gh-853
2019-03-04 11:37:03 +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
Andy Wilkinson
b91ecb61fb Add method for asserting that a pom does not have a dependency
Closes gh-842
2019-02-19 11:32:09 +00:00
Andy Wilkinson
07bf731f47 Fix assertions of dependency scope, type, and version
Closes gh-841
2019-02-19 11:18:42 +00:00
Andy Wilkinson
a049d6e4fc Polish 2019-02-19 10:03:40 +00:00
Madhura Bhave
11ffe794fa Generated code should have only one newline at the end
Fixes gh-828
2019-02-15 15:13:20 -08:00