Commit Graph

87 Commits

Author SHA1 Message Date
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
ddbadf7700 Fix version range for Spring Boot 2 gradle plugin
Closes gh-431
2017-05-17 10:00:09 +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
Stephane Nicoll
7a676095a0 Polish 2017-04-23 12:08:24 +02:00
Stephane Nicoll
fae8769748 Improve support for version token
This commit fixes the use of version token with Gradle. The standard
format with maven is "foo-bar.version" while Gradle uses
"fooBarVersion". The former format does not work with Gradle as it
attempts to interpret "-" as an operation.

A `VersionProperty` now defines a standard structure for the property
and allow to derive a camel cased version. That way, Maven still uses
the standard format while Gradle generates a consistent "fooBarVersion"
property.

Closes gh-396
2017-04-23 12:01:03 +02:00
Stephane Nicoll
aff85819a9 Upgrade to Maven Wrapper 0.2.1
Closes gh-413
2017-04-23 12:00:51 +02:00
Stephane Nicoll
af98413b43 Upgrade wrapper to Maven 3.5.0
Closes gh-404
2017-04-09 10:06:25 +02:00
Andy Wilkinson
c6f502cb9c Apply the dependency management plugin in Boot 2.0 Gradle projects
Closes gh-398
2017-03-31 14:04:08 +02:00
Stephane Nicoll
8ac7369138 Upgrade to Gradle 3.4.1
Closes gh-386
2017-03-29 12:37:04 +02:00
Stephane Nicoll
3c59c29855 Polish contribution
Closes gh-388
2017-03-15 16:49:46 +01:00
Sebastien Deleuze
6e7ff7fb58 Upgrade to Kotlin 1.1.1
This commit also enables Java 8 bytecode and uses kotlin-stdlib-jre7 or
kotlin-stdlib-jre8 dependencies when possible.

Closes gh-377
2017-03-15 16:02:30 +01:00
Stephane Nicoll
c6194d2357 Avoid overriding baseName for jar/war task
Closes gh-381
2017-03-15 14:19:11 +01:00
Stephane Nicoll
9e35b8acd6 Revert to Gradle 3.3
Gradle 3.4 is known to be broken in IntelliJ IDEA and breaks the getting
started experience of generated projects. This commit uses Gradle 3.3
until a bug fix release of IJ is available.

Closes gh-380
2017-03-13 14:36:24 +01:00
Stephane Nicoll
f07c8d594a Clarify spring-cloud-task entry
This commit provides a complete entry for Spring Cloud task and clarify
that no more customization is required as of 1.4. Previously, the entry
did not have any groupId/artifactId pair, leading to a default (wrong)
groupId/artifactId to be generated.

Closes gh-341
2017-03-10 08:49:56 +01:00
Stephane Nicoll
2b0e967e32 Upgrade to Gradle 3.4.1
This commit upgrades the wrapper version for Gradle 3 to the latest
version and enables it as of Spring Boot 1.5 (previously, Gradle 3 was
only applied as of Spring Boot 2).

Closes gh-380
2017-03-09 11:33:45 +01:00
Dave Syer
06f314dc8c Switch to Ant lib for tar/zip tasks
The commons wrapper we were using didn't support executable files
so Ant seems like the best choice ultimately, even if it has a
lot of features we don't use or need.
2017-02-25 09:31:04 +01:00
Stephane Nicoll
09fc98ef96 Polish contribution
Closes gh-349
2017-02-25 09:31:04 +01:00
Stephane Nicoll
5296d6a05f Code formatting 2017-02-25 09:31:03 +01:00
Dave Syer
fffcd8a774 Move generator templates to Mustache 2017-02-25 09:31:03 +01:00
Dave Syer
ac20d04985 Migrate initializr-generator to Java 2017-02-25 09:31:03 +01:00
Stephane Nicoll
0ff278a3d0 Migrate initializr-service to Java 2017-02-25 09:31:03 +01:00
Stephane Nicoll
2c0269c96b Fix initial Java migration
This commit fixes several issues with the initial java migration.

On MacOS, the name of the temp directory can be `T` and the new tgz API
requires a parent folder whose name has at least 3 characters.

The Selenium tests require a more precise element to show the advanced
section.

The integration tests were generation the docs snippet on the wrong
accept header.
2017-02-25 09:31:03 +01:00
Dave Syer
ec5a7da507 Migrate initializr-web to Java 2017-02-25 09:31:03 +01:00
Dave Syer
1385e82eb5 Additional visibility changes needed in new Java code 2017-02-25 09:31:03 +01:00
Dave Syer
ad6430b92a Migrate initializr-actuator to Java 2017-02-25 09:31:03 +01:00
Spring Buildmaster
e8bf50e662 Next development version 2017-02-03 13:55:17 +00:00
Sebastien Deleuze
d703f13601 Add kotlin-reflect dependency for Kotlin projects
Closes gh-361
2017-01-31 13:56:28 +01:00
Stephane Nicoll
981b726a12 Polish contribution
This commit makes sure that each dependency link is HAL compliant (like
the project types in the metadata). Links are grouped by relation with
well known relations to be defined (i.e. 'how-to', 'reference', 'home'
and so forth).

Each link can be "templated" (in the HAL sense) and only `{bootVersion}`
is supported at the moment. This is useful if a precise documentation
section should reference to the actual Stpring Boot version chosen by the
user.

Closes gh-279
2017-01-30 17:26:25 +01:00
Dave Syer
d8a1927a36 Add optional links to a dependency
See gh-163
2017-01-30 15:30:41 +01:00
Spring Buildmaster
dd02650e22 Next Development Version 2017-01-27 12:52:11 +00:00
Stephane Nicoll
b58c7a046b Switch version to 0.2.0.BUILD-SNAPSHOT
Closes gh-352
2017-01-27 13:40:45 +01:00
Stephane Nicoll
3d0a3a7e14 Polish config metadata output 2017-01-27 10:22:15 +01:00
Stephane Nicoll
1aa10d39b0 Remove use of @since 2017-01-27 10:11:33 +01:00
Stephane Nicoll
330cb13c64 Add support for BOM ordering
This commit adds an `order` attribute on `BillOfMaterials` that allows to
order BOMs in the generated project. Lowest value have higher priority.

When the project is generatede with a custom parent, the Spring Boot
dependencies BOM itself has an order of a 100. Any BOM that is added with
an order lower than 100 has higher priority, i.e. could potentially
override dependencies provided by the Spring Boot dependency mechanism.

This mechanism does not work reliably when using the
`spring-boot-starter-parent` so it should be used with care. However, it
can be useful when overriding dependencies that Spring Boot does not
manage itself.

Closes gh-343
2017-01-17 19:18:52 +01:00
Stephane Nicoll
5efc6dc947 Prepare for Spring Boot 1.5 compatibility 2017-01-06 13:06:31 +01:00
Kamil Szymanski
36c7d30f4b Remove redundant targetCompatibility from gradle buildscript
See gh-330
2017-01-03 14:55:12 +01:00
Stephane Nicoll
54c118ed70 Switch to Gradle 3 as of Spring Boot 2
This commit automatically switches Gradle-based project to Gradle 3 if
Spring Boot 2 or higher is selected. Other projects remain on 2.x

Closes gh-331
2017-01-03 14:52:16 +01:00
Stephane Nicoll
827b9d6e93 Auto-updatable version ranges
This commit improves the version format so that the minor and patch
elements can hold a special 'x' character besides the version, i.e.
`1.x.x.RELEASE` or `2.4.x.BUILD-SNAPSHOT`. A `VersionParser` now takes
care to resolve those against a list of known Spring Boot versions.

This is particularly useful in version ranges that have to change when
the latest Spring Boot versions change. Spring Initializr already auto-
udpates itself based on the sagan metadata. When a range is using this
feature, it is also automatically updated.

It might be hard to track the actual range values on a given instance so
an `InfoContributor` is now automatically exposed to list them.

Closes gh-328
2017-01-03 14:02:33 +01:00
Stephane Nicoll
5149d0c965 Remove unecessary newline 2016-12-28 13:44:53 +01:00
Sebastien Deleuze
e6cf9cf658 Upgrade to Kotlin 1.0.6 with kotlin-spring plugin
The kotlin-spring plugin automatically opens classes annotated or
meta-annotated with annotations like @Component or @Transactional.

Closes gh-333
2016-12-28 13:41:01 +01:00
dev
a3a05000b0 template should load with utf-8 and save with utf-8 2016-12-07 09:29:58 +00:00
Stephane Nicoll
7a20b7f71b Polish
Closes gh-317
2016-11-25 16:04:13 +01:00
Brian Clozel
8ee8d72e62 Show version requirements for disabled starters
This commit writes the version range information in human readable
format and adds it to the starter list when starters are disabled.

Closes gh-293
2016-11-25 15:58:54 +01:00
Stephane Nicoll
0a4f631b3a Harmonize metadata term 2016-11-22 01:43:36 +09:00
Stephane Nicoll
079f46f51c Support for compileOnly scope
start.spring.io exposes an annotation processor (Lombok) that's quite
popular but is exposed as a compile/transitive dependency. This commit
introduces a `compileOnly` scope that maps to Gradle's `compileOnly`
scope and Maven's `optional` flag.

There is a case to support optional dependencies in general but
unfortunately, Gradle doesn't have support for such feature.

Closes gh-128
2016-11-04 11:38:15 +01:00