Commit Graph

76 Commits

Author SHA1 Message Date
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
Stephane Nicoll
cc44d346fd Add .apt_generated to .gitignore
Closes gh-303
2016-10-19 13:00:49 +03:00
Stephane Nicoll
91c9ad384b Use new gradle plugin ID as of Spring Boot 1.4.2
Closes gh-296
2016-10-07 15:59:02 +02:00
Stephane Nicoll
2be67fdba7 Polish .gitignore generation
See gh-131
2016-09-21 14:18:20 +02:00
Stephane Nicoll
7bd1253c5d Polish 2016-09-20 18:26:21 +02:00
Stephane Nicoll
d61bf18fa2 Generate .gitignore
This commit improves the generator so that a `.gitignore` is added to
every project. The basic content of that file is determined by the build
system. If an agent is recognized, specific build tool settings are
added as well. This commit adds support for STS, IntelliJ IDEA and
NetBeans.

Closes gh-131
2016-09-20 18:12:17 +02:00
Stephane Nicoll
99fbe8a5ad Add support for NetBeans agent
Closes gh-290
2016-09-20 14:20:54 +02:00
Stephane Nicoll
61cc7eb41d Cache templates
This commit improves massively class loading performance by caching all
templates used by the generator. GroovyTemplate is now a bean rather than
a private utility.

Templates are cached by default and the cache is disabled automatically
if Devtools is in use (via a check of spring.groovy.template.cache).

Closes gh-288
2016-09-13 14:34:10 +02:00
Stephane Nicoll
0d167411a8 Remove Eclipse workaround
Closes gh-275
2016-08-30 16:15:38 +02:00
Stephane Nicoll
af2ae44b8d Upgrade to Spring Boot 1.4.0.RELEASE
This commit upgrades to Spring Boot 1.4.0.RELEASE and bumps to Java8. It
also migrate the cache library from Guava to Caffeeine.

The git and build information are now exposed via the `info` endpoint.

Closes gh-251
2016-07-29 12:52:53 +02:00
Stephane Nicoll
d018782726 Always set a default boot version
Previously, if the sagan meta-data did not provide a default, the live
instance wouldn't have one either. This means that all requests that
do not provide an explicit boot version will fail as well.

This commit sets the first version as the default if no default exists.

Closes gh-267
2016-07-29 12:30:50 +02:00
Stephane Nicoll
56210d9bf2 Add project request post processing
This commit introduces `ProjectRequestPostProcessor` as a mean to modify
an incoming `ProjectRequest` before and after its resolution against the
meta-data.

By default, all beans of that type are invoked automatically and they
are ordered against their `@Order` or `Ordered` settings.

Closes gh-260
2016-07-20 15:09:35 +02:00