Commit Graph

106 Commits

Author SHA1 Message Date
Madhura Bhave
d38fa831e0 Expose resolved version range if .x present
Fixes gh-586
2018-06-28 10:55:44 -07:00
Phillip Webb
91a2db4176 Fix checkstyle violations 2018-05-31 16:19:02 -07:00
Phillip Webb
45688ffcd2 Format code 2018-05-31 16:19:02 -07:00
Phillip Webb
3f23096f27 Fix copyright header for files changed this year 2018-05-31 16:17:45 -07:00
Stephane Nicoll
492d227492 Make kotlin version mandatory only if Kotlin is enabled
Closes gh-617
2018-05-18 17:45:40 +02:00
Stephane Nicoll
8336ee6ef6 Use a fallback if no 'web' dependency is available
Closes gh-435
2018-05-18 17:24:56 +02:00
sdeleuze
71b8759f40 Ignore /out/ directory with Gradle
Closes gh-657
2018-04-20 07:07:24 +02:00
Stephane Nicoll
66f06be15b Add support for Jenkins X 2018-04-16 16:44:02 +02:00
Stephane Nicoll
432be66c5a Polish contribution
Closes gh-655
2018-04-16 16:21:30 +02:00
Phillip Webb
593759f321 Fix IDE warnings
Fix warnings shown in Eclipse
2018-04-13 12:36:06 -07:00
Phillip Webb
923fb58ffc Fix checkstyle violations
Fix checkstyle violations using a pre-release version of the
spring-javaformat rules.
2018-04-13 12:36:06 -07:00
Phillip Webb
eb5211960c Migrate tests to AssertJ
Refactor all existing tests to use AssertJ assertions.
2018-04-13 12:36:06 -07:00
Phillip Webb
6493eae015 Apply automatic cleanup rules
Apply code cleanup rules from Eclipse for better consistency.
2018-04-13 12:36:06 -07:00
Phillip Webb
3d4efbf525 Reformat code
Format code using a pre-release version of the spring-javaformat plugin.
2018-04-13 12:36:06 -07:00
Andy Wilkinson
3e2ef6db10 Limit ignoring of directories in Git to the root of the repository
Closes gh-623
2018-04-06 14:15:08 +01:00
Stephane Nicoll
ad785527f1 Move to assertJ 2018-03-29 10:59:40 +02:00
Stephane Nicoll
a99595bfae Remove dead code 2018-03-29 10:18:14 +02:00
Stephane Nicoll
5fef28a763 Polish "Create a settings.gradle file for Gradle projects"
Closes gh-643
2018-03-29 10:14:47 +02:00
Andrew Holland
5f9d80d0d7 Ignore the new .sts4-cache folder added as part of STS 4
Closes gh-624
2018-03-18 13:38:30 -04:00
Stephane Nicoll
c6951c45fb Polish test logging 2018-03-08 11:55:11 +01:00
Stephane Nicoll
fe7650f2c8 Upgrade to Spring Boot 2.0.0
This commit upgrades to Spring Boot 2.0.0.

Please note that this commit does not change metrics names to use new
features of Micrometer yet (see gh-526)

Closes gh-611
2018-03-01 08:00:49 +01:00
Stephane Nicoll
2f49fde74e Add agent for JBoss Forge 2018-02-21 16:59:41 +01:00
Stephane Nicoll
afd4cd6a59 Add agent for VS Code 2018-02-21 16:19:45 +01:00
Stephane Nicoll
e612aab3a8 Improve dependency order in generated build
Closes gh-601
2018-02-12 15:49:48 +01:00
Stephane Nicoll
3fac2d78e4 Fix freeCompilerArgs definition in Gradle build
Closes gh-593
2018-02-08 10:13:15 +01:00
Stephane Nicoll
e58b7bf701 Enable strict null-safety for Kotlin projects
Closes gh-591
2018-02-07 16:13:48 +01:00
Stephane Nicoll
ba164fc6df Upgrade to Gradle 4.5.1
Closes gh-589
2018-02-06 12:34:50 +01:00
Stephane Nicoll
1d9a68d6fc Upgrade to Kotlin 1.2.20
This commits upgrade to Kotlin 1.2.20 and uses the new stdlib artifact
names. As a result, 2.0  milestones prior to Spring Boot 2.0.0.RC1 are
no longer supported.

Closes gh-576
2018-02-01 11:34:56 +01:00
Stephane Nicoll
18ef480a23 Use default Kotlin plugin settings
Rather than override the default, this commit removes the override for
the incremental compilation support in Maven. We now relies on all
default now.

Closes gh-584
2018-02-01 10:46:06 +01:00
Stephane Nicoll
72184131a3 Manage Kotlin version consistently
Closes gh-564
2017-12-28 13:42:04 +01:00
Stephane Nicoll
faa7de99c2 Add version range support for Kotlin version
Closes gh-556
2017-12-11 16:18:43 +01:00
Stephane Nicoll
baf1022e6f Polish "Allow generation of custom files"
Closes gh-552
2017-12-03 02:00:42 +00:00
Torsten Walter
f224c6a38a Allow generation of custom files
To generate additional files, `doGenerateProjectStructure` should be
overridden but doing so doesn't work as `ProjectGeneratedEvent` is
publised as part as the base implementation.

See gh-552
2017-12-03 01:28:12 +00:00
Stephane Nicoll
e96968d2af Remove explicit references to Java versions in the generator
Closes gh-543
2017-11-16 14:42:27 +01:00
Stephane Nicoll
c33b1df90c Add support for Kotlin's runApplication
Spring Boot 2.0.0.M6 offers a better integration with Kotlin. A
top-level `runApplication` function can be used to start the app and
additional dependency and plugin management are provided.

This commit simplifies the way a Kotlin-based project is generated when
running with a compatible version

Closes gh-534
2017-10-27 14:18:05 +02:00
Stephane Nicoll
f103e397f4 Upgrade to Gradle 4.2 for Spring Boot 2+
Closes gh-513
2017-09-29 14:53:41 +02:00
Stephane Nicoll
8efe5f34be Ensure configuration can be serialized
Closes gh-506
2017-09-18 15:02:01 +02:00
Stephane Nicoll
dc69a352e9 Add group to generated gradle projects
Closes gh-478
2017-09-15 13:12:11 +02:00
Stephane Nicoll
444a9f461b Fix package name cleanup algorithm with version
This commit improves the cleanup algorithm to accept artifactId with
versions in them as it's used as part of the package name by
default. `foo-1.4.5` now generates `foo145`.

Closes gh-436
2017-09-09 14:49:08 +02:00
Stephane Nicoll
9976d8e20d Fix generation of war project with Spring Boot 2+
As of Spring Boot 2.0.0.M1, the SpringBootServletInitializer class has
been relocated to the support package. This commit fixes the generation
of war project as of that version.

Closes gh-502
2017-09-07 09:01:19 +02:00
Andy Wilkinson
c6ebf51a53 Use Gradle 4 for Gradle projects post Spring Boot 2.0 M3
Closes gh-472
2017-07-28 14:14:15 +01:00
Stephane Nicoll
905b5257a5 Revert "Ignore out/ directory with Gradle"
This commit reverts 495f8fa
2017-07-26 09:19:08 +02:00
Stephane Nicoll
495f8fab1c Ignore out/ directory with Gradle
Closes gh-469
2017-07-26 08:59:03 +02:00
Stephane Nicoll
fefde60a2e Use default methods for ProjectRequestPostProcessor 2017-07-03 08:14:38 +02:00
Stephane Nicoll
8832201c43 Add dependency range info
This commit improves the `info` endpoint to contain a
`dependency-ranges` entry that is similar than the `bom-ranges` entry
for BOMs.

Each dependency that has a version mapping is listed with the range and
the related version. Some dependencies weren't managed and are now. For
those a `managed` version is used to indicate which Spring Boot versions
do not require to specify a version for the dependency.

Closes gh-453
2017-06-25 10:34:23 +02:00
Stephane Nicoll
370d9a4b31 Upgrade to Gradle 3.5.1
Closes gh-409
2017-06-16 18:08:18 +02:00
Stephane Nicoll
767203b7d5 Polish "Derive package name from groupId and artifactId"
Closes gh-423
2017-05-11 16:29:16 +02:00
Brian Clozel
bb578d6fdf Derive package name from groupId and artifactId
This commit derives the package name of the application from the
artifact's `groupId` and `artifactId`. Previously sources were put in a
package that mirrors the groupId value.

This goes against the "unique package per application" policy that we
try to enforce. Even if the package name value can be customized
manually, deriving it automatically from the values provided in those
fields will help structure codebases.

With this change, the package name is derived like this:
* groupId `com.example`, artifactId `bookmarks` -> package
`com.example.bookmarks`
* groupId `com.example`, artifactId `user-management` -> package
`com.example.usermanagement`

This commit fixes the package name generation on the server, but also
in the web interfaces when the user updates the form fields.

Fixes gh-421
2017-05-11 14:36:47 +02:00
Stephane Nicoll
363eb25138 Polish 2017-04-30 19:21:01 +02:00
Sebastien Deleuze
0e3216e3ac Enable Kotlin incremental compilation with Maven
Closes gh-415
2017-04-26 17:22:17 +02:00