Commit Graph

315 Commits

Author SHA1 Message Date
Stephane Nicoll
b60ae74daf Update changelog 2015-12-29 15:59:58 +01:00
Stephane Nicoll
05565dee3f Upgrade to GMavenPlus
A groovy-based project using Maven now builds with GMavenPlus as the
Groovy Eclipse maven compiler does not seem to be maintained anymore.

This commit also harmonizes the location of the code to be
`src/main/groovy` for both Gradle and Maven builds.

Joint compilation is enabled by default so that you can create pure Java
code in `src/main/java` and refer to any class within the project.

Users of IntelliJ IDEA may want to install a plugin that automatically
adds `src/main/groovy` to the sources when the GMavenPlus plugin is
added to the pom, see https://plugins.jetbrains.com/plugin/7442

Closes gh-90
2015-12-29 15:55:41 +01:00
Stephane Nicoll
cc85d3f003 Migrate build to gmavenplus
See gh-90
2015-12-29 15:26:24 +01:00
Stephane Nicoll
cb10cea654 Fix MetricsExportTests 2015-12-26 13:27:26 +01:00
Stephane Nicoll
245fe8f07e Temporarily remove provided scope for Lombok
Spring Initializr does not support the provided scope properly with
Gradle as it relies on the `providedRuntime` configuration added by the
war plugin.

Lombok should be added with an optional flag anyway so until the
service properly supports it, lombok is defined again with the default
(compile) scope.

Closes gh-171
2015-12-26 09:46:19 +01:00
Dave Syer
8c6cc47b67 Bump Spring Cloud to Brixton.M4 2015-12-23 11:46:59 +00:00
Stephane Nicoll
8fa0e0103d Restore Java 7 compatibility 2015-12-15 11:21:34 +01:00
Stephane Nicoll
496520e990 Expose dependencies meta-data
Register an additional endpoint at `/dependencies` that returns the
necessary information about the registered dependencies for a Spring
Boot version. If the `bootVersion` request parameter is not specified,
the default Spring Boot version is used.

The json content contains the artifact coordinates as well as the
necesasry BOM or repository to add. This information should be useful
enough for any tool to add additional dependencies to an existing
project or create one from scratch.

Closes gh-140
2015-12-11 17:05:59 +01:00
Stephane Nicoll
6a30dac6a6 Fix version management for REST Docs
Closes gh-166
2015-12-11 16:54:57 +01:00
Stephane Nicoll
7d65a6fdda Fix version management for PostgreSQL
Closes gh-167
2015-12-11 16:47:36 +01:00
Stephane Nicoll
143af6455e Dependency versions mapping support
If a dependency is fist managed by the service and later on by Spring
Boot, there is no way to keep a single entry that would change the
dependency according to the Spring Boot version.

A hack would consist of creating two entries that would have an exclusive
range but it's far from ideal.

This commit adds a `versions` attribute on each dependency that can
define an arbitrary number of mappings between a version and a range. If
one of those range matches, the related version is used (and the absence
of version means that no version need to be included). If no mapping
matched (or if there are no mappings at all), the default version is
used.

Closes gh-168
2015-12-11 16:46:45 +01:00
Stephane Nicoll
5fb8c84e5e Improve resources caching
Update controllers to add an ETag information so that meta-data is cached
on the client.

Also enables the compression for json, css and html resources.

Closes gh-165
2015-12-11 13:59:52 +01:00
Stephane Nicoll
89330da312 Restore integration tests
The new layout broke some integration tests as it is now necessary to
click on a link to display additional options.

 Tests have also been rewritten to take the new design (and new features)
 into account.
2015-12-11 13:48:26 +01:00
Andy Wilkinson
22bec6d00d Upgrade Spring REST Docs to 1.0.1.RELEASE 2015-12-11 12:36:34 +00:00
Stephane Nicoll
a978f1eaa7 Make sure to use InitializrMetadataProvider consistently
The auto-configuration was exposing a InitializrMetadata bean which is
wrong since InitializrMetadataProvider is the sole responsible to provide
it.
2015-12-11 11:19:08 +01:00
Stephane Nicoll
e1fccb1290 Merge pull request #146 from bclozel/gh-146
* pr/146:
  Add a reference to the github repo in a footer
2015-12-10 16:00:59 +01:00
Brian Clozel
f6817f2b0e Add a reference to the github repo in a footer
Closes gh-146
2015-12-10 16:00:40 +01:00
Stephane Nicoll
5dcaafdf54 Merge pull request #160 from danhyun/master
* pr/160:
  Upgrade to Gradle 2.9
2015-12-10 15:56:03 +01:00
Danny Hyun
2eb6edcac3 Upgrade to Gradle 2.9
Closes gh-160
2015-12-10 15:54:35 +01:00
Stephane Nicoll
991faf0839 Add support for Spring Session
Closes gh-151
2015-12-10 11:42:47 +01:00
Stephane Nicoll
1b3c5c803b Fix support of application/hal+json
Closes gh-143
2015-12-10 11:32:06 +01:00
Stephane Nicoll
6630e2fc99 Fix provided scope with Gradle build
Make sure to register the necessary configuration entry for Gradle when
a provided dependency is added as the build will fail otherwise.

Interestingly enough, this was only taken care of if the packaging is war
as we add the tomcat starter explicitly. We rather now add any provided
dependencies to the build with no special handling there, adding the
tomcat server in the model if necessary.

Closes gh-164
2015-12-10 11:18:50 +01:00
Stephane Nicoll
bda0135857 Fix lombok support
Remove the cloud dependency until Spring Boot itself provides a
dependency management for it. Also fix the scope so that lombok does
not leak in other projects.

Closes gh-154
2015-12-09 15:34:25 +01:00
Stephane Nicoll
77ba0e4641 Add missing starter attribute 2015-12-09 15:18:58 +01:00
Stephane Nicoll
65916948dd Add support for spring-retry
Closes gh-149
2015-12-09 15:10:15 +01:00
Andy Wilkinson
e24bbd46f3 Upgrade dependency-management-plugin to 0.5.4.RELEASE 2015-12-03 15:27:24 +00:00
Stephane Nicoll
fa7d9790a1 Upgrade to Spring Boot 1.3.0
Closes gh-123
2015-11-30 16:00:42 +01:00
Stephane Nicoll
ac86ea7688 Ignore .jar.original files 2015-11-30 16:00:18 +01:00
Dave Syer
7d929d766d Update tgz endpoint to make scripts explicitly executable 2015-11-25 10:27:19 +00:00
Dave Syer
809a9c3f84 Make scripts executable
Fixes gh-162
2015-11-25 10:16:34 +00:00
Dave Syer
f11e7f7160 Remove spring-cloud-starter-bus-rabbit (non-existent starter) 2015-11-25 10:16:34 +00:00
Stephane Nicoll
23a9b28cd2 Polish 2015-11-19 09:32:51 +00:00
Dave Syer
8733100aab Update Cloud to Brixton.M3 2015-11-18 15:21:27 +00:00
Stephane Nicoll
17447a3a67 Upgrade to Spring REST Docs 1.0.0.RELEASE 2015-11-18 11:50:01 +00:00
Dave Syer
6aea29f356 Remove spring-cloud-starter-bus-rabbit (non-existent starter) 2015-11-16 17:13:45 +00:00
Stephane Nicoll
f5e2de8f61 Allow to define "non starter" dependency
Previously, all dependencies were considered equal and enough to compile
and start the simple auto-generated boot application. There are some
corner cases such as the JDBC drivers and the new Ratpack integration.

This commit adds an extra flag on a dependency that determines if it is
a starter or not (the default is true). When no starter dependency has
been selected for the project, the root starter (`spring-boot-starter`)
is automatically added.

Closes gh-159
2015-11-16 10:44:45 +01:00
Stephane Nicoll
e2d54bc03f Revert 791fb26 and d715066 2015-11-16 10:17:12 +01:00
Dave Syer
791fb262ba Fix tests for default dependency 2015-11-13 16:50:03 +00:00
Dave Syer
d715066a5e Add default dependency if no spring-boot starters are added 2015-11-13 16:08:26 +00:00
Dave Syer
736ef6d2fe Add Ratpack dependency 2015-11-13 15:18:06 +00:00
Dave Syer
e00bd10e52 Confusing name: OAuth2 -> Cloud OAuth2 2015-11-13 15:08:26 +00:00
Stephane Nicoll
b3738d5aba Add Activiti starter
Closes gh-155
2015-11-12 12:24:20 +01:00
Dave Syer
5c80422ae0 Tweak version ranges for Cloud BOM 2015-11-07 17:20:41 +00:00
Dave Syer
f5c7f604c3 Update Spring Cloud to Brixton.M2 2015-11-04 15:43:18 +01:00
Stephane Nicoll
ee0d2a0f4e Add missing Spring Boot 1.3 starters
Closes gh-156
2015-11-02 16:58:53 +01:00
Stephane Nicoll
2b5afbcfa1 Update changelog 2015-10-06 15:07:38 +02:00
Stephane Nicoll
bd61334182 Add configuration meta-data
Closes gh-144
2015-10-06 15:06:18 +02:00
Stephane Nicoll
08a9c17a38 Update changelog 2015-10-06 11:13:50 +02:00
Brian Clozel
e74e65b3bf Auto-select first autocompletion entry
Because this feature is not natively supported by Twitter Typeahead,
this is based on a existing PR.
See twitter/typeahead.js#1356

See gh-145
2015-10-06 09:54:28 +02:00
Stephane Nicoll
524cc5d979 Properly harmonize groupId and package name
The service now links the groupId to the package name by default. Also,
renamed default value (`org.test`) to `com.example`.

Closes gh-141
2015-10-06 09:54:28 +02:00