Commit Graph

23 Commits

Author SHA1 Message Date
Dave Syer
13e6ec4431 Add MockRestServiceServer for spring.io boot version metadata test 2016-09-26 16:16:27 +01:00
Stephane Nicoll
040830e6f1 Upgrade to Spring Boot 1.4.1.RELEASE 2016-09-24 08:42:39 +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
2b505dd899 Polish contribution
Closes gh-289
2016-09-16 17:23:07 +02:00
Brian Clozel
4d78a62a65 Deselect incompatible deps when changing Boot version
This commit removes the dependency tag from the list of all dependencies
not supported by the selected Boot version. Previously, the dependency
input checkbox was unchecked, but the green tag was still present.

Instead of hiding incompatible dependencies in the full list, the
choices are now marked as "disabled"; it is impossible to select those
checkboxes and the cursor displays a "not-allowed" icon when hovering
the dependency.

Closes gh-109
Closes gh-286
2016-09-16 17:11:59 +02:00
Brian Clozel
6ab9b5573e Upgrade to JQuery 3.1.0 2016-09-16 14:22:42 +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
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
Stephane Nicoll
d9c65a5a07 Add support for configurable properties
This commit introduces a `buildProperties` property on the request that
can be used to specify Gradle/Maven build-specific properties as well as
an arbitrary number of version overrides.

Instead of hard-coding some properties in the templates, these defaults
are now inherited from the request itself.

Closes gh-259
2016-07-20 13:42:57 +02:00
Stephane Nicoll
6089f49c1a Add build-specific tests 2016-07-12 14:42:41 +02:00
Stephane Nicoll
f45228376f Polish contribution
Closes gh-223
2016-07-08 17:09:21 +02:00
Ryan Gardner
625d5bee15 Customize the parent pom to use
See gh-223
2016-07-08 14:54:33 +02:00
Stephane Nicoll
0ac320e5ae Enable strict validation of dependencies
Previously, if one invokes the service asking for dependency `foo` and
`foo` does not exist we created a starter for it, that is
`spring-boot-starter-foo`. This mechanism was put in place because we
don't know all starters and to offer a nice fallback for users who know
what they're doing.

That statement proved to be wrong since users actually discover new
starters via the service and don't seem to attempt to create such starter
that are located in the `org.springframework.boot` groupId anyway. Most
if not all of those are pilot errors.

This commit enables strict validation of dependencies and generate an
appropriate exception if it isn't defined in the meta-data.

Closes gh-234
2016-07-08 14:37:41 +02:00
Stephane Nicoll
a3d072f20a Add aliases to the list of keywords
This commit makes sure that a dependency can be found in the UI via its
aliases, if any.

Closes gh-231
2016-07-08 12:01:46 +02:00
Stephane Nicoll
d8a0651ad4 Remove charset parameter check on textual resources
Closes gh-236
2016-07-06 09:08:55 +02:00
Stephane Nicoll
3f82ab06c6 Upgrade to Spring Boot 1.3.6.RELEASE 2016-07-04 16:56:04 +02:00
Stephane Nicoll
87c5a5d116 Upgrade to Spring Boot 1.3.5.RELEASE 2016-05-10 08:57:33 +02:00
Stephane Nicoll
145125ed91 Upgrade to Spring Boot 1.3.4.RELEASE 2016-05-08 16:26:33 +02:00
Stephane Nicoll
2d9ac9bd5a Improve dependency mapping to include coordinates
This commit improves the dependency mapping infrastructure to include the
groupId and artifactId attributes alongside the existing version. For
consistency, the attribute has been renamed from `versions` to
`mappings`.

This allows to better support the `redis` use case: the starter was
renamed from `spring-boot-starter-redis` to
`spring-boot-starter-data-redis` and previously we had two entries
excluding each other using version ranges.

Closes gh-219
2016-04-24 05:20:59 +02:00
Stephane Nicoll
abf16f8b1a Fix typo 2016-04-14 16:09:18 +02:00
Stephane Nicoll
542ee7d91b Modularize project structure
This commit splits the feature of Spring Initializr in several modules:

* `initializr-generator` is a standalone library that is responsible for
generating projects based on a `File` directory. It has a minimal set of
dependencies and is not web-related
* `initializr-web` provides the web integration (project generation,
meta-data, etc)
* `initializr-actuator` is an optional module that can be added to
support project-generation-specific statistics

Closes gh-214
2016-04-08 12:01:38 +02:00