Commit Graph

230 Commits

Author SHA1 Message Date
Stephane Nicoll
9507cfb3c2 Update changelog 2015-07-09 17:13:40 +02:00
Stephane Nicoll
6df0fd3000 Add BOM versions mapping
Spring Cloud supports Spring Boot 1.2 and 1.3 in two different release
lines so there is a need to change the Spring Cloud version according
to the chosen Spring Boot version.

Each bom can have arbitrary number of version mappings that permit
to customize the version and even the repositories used to build the
project

Closes gh-121
2015-07-09 17:12:51 +02:00
Stephane Nicoll
714593e5a4 Polish 2015-07-09 15:37:18 +02:00
Stephane Nicoll
95c5142056 Update changelog 2015-07-09 13:52:54 +02:00
Stephane Nicoll
4e868b053f Support for custom repository
A dependency or a dependency group may now declare a repository in case
it is not available in Maven central

Closes gh-125
2015-07-09 13:52:21 +02:00
Stephane Nicoll
f42e72f319 Fix typo 2015-07-09 13:50:39 +02:00
Stephane Nicoll
2233ead9de Merge pull request #124 from dsyer/feature/cloud-bom
* feature/cloud-bom:
  Update Cloud BOM version to Angel.SR3
2015-06-26 17:31:38 +02:00
Dave Syer
b529f559e3 Update Cloud BOM version to Angel.SR3
Closes gh-124
2015-06-26 17:29:38 +02:00
Stephane Nicoll
e6a1a17e51 Hide Spring Cloud with Spring Boot 1.3+
There are various reports that things are broken with the first Spring
Boot 1.3 milestone and the currently released Spring Cloud version.

We're now hiding it until the underlying issue is fixed.
2015-06-17 18:06:15 +02:00
Stephane Nicoll
605b551a9d Update version range for new starters 2015-06-12 09:13:50 +02:00
Stephane Nicoll
c116ab0fe5 Add DevTools dependency 2015-06-10 18:37:15 +02:00
Stephane Nicoll
5106e23591 Merge pull request #118 from MarkyMarkMcDonald/feature/default-to-java-8
* feature/default-to-java-8:
  Default java version to 8
2015-06-09 11:47:30 +02:00
Mark McDonald
6c7d9dd592 Default java version to 8
Closes gh-118
2015-06-09 11:44:41 +02:00
Stephane Nicoll
1a4c668ba5 Remove start-class property from Maven build
If one rename the main application class everything works fine in the IDE
but fails on the command-line as the previous class name is hard-coded
in the POM. This is only strictly necessary when more than one main class
is present in the project.

Closes gh-120
2015-06-09 11:42:26 +02:00
Dave Syer
1e85f535f2 Sanitize VCAP_SERVICES 2015-06-07 11:56:40 +01:00
Stephane Nicoll
bb7ecd0c50 Merge pull request #117 from dsyer/feature/cloud-upgrade
* feature/cloud-upgrade:
  Update for Spring Cloud 1.0.2
2015-06-05 16:54:49 +02:00
Dave Syer
e577059c49 Update for Spring Cloud 1.0.2 2015-06-05 15:16:20 +01:00
Stephane Nicoll
58a651dc02 Add cache starter 2015-06-04 15:14:49 +02:00
Stephane Nicoll
bde1d8ff14 Fix metrics export switch key 2015-06-04 15:11:45 +02:00
Stephane Nicoll
8fa2e15981 Fix manifest 2015-06-04 14:58:08 +02:00
Stephane Nicoll
56c1b5acc0 Merge pull request #96 from dsyer/metrics
* metrics:
  Polish
  Add metrics exporter for initializr service
2015-06-04 14:20:10 +02:00
Stephane Nicoll
f1f8786631 Polish
Polish metrics export feature added in 6f4d3f4

Closes gh-96
2015-06-04 14:19:17 +02:00
Dave Syer
6f4d3f4e03 Add metrics exporter for initializr service
If a RedisConnectionFactory is detected the system will now export
metrics to redis every 5s (initializr.metrics.rateMillis). Metric
names are prefixed with <id>.<hex>. where <id> defaults to the
application name (initializr.metrics.id) and <hex> is unique. An
aggregator app can then pick up the values and (for instance)
continue counters across restarts.

The code is meant to be easier to upgrade Spring Boot 1.3

There are 2 beans that we can simply remove when we upgrade to 1.3.
Meanwhile, the app will run with 1.3 (or 1.2) for testing if you
uncomment the @ExportMetricWriter.
2015-06-04 13:32:44 +02:00
Stephane Nicoll
7fdde4b0e4 Update changelog 2015-06-04 11:36:50 +02:00
Stephane Nicoll
a600120a81 Upgrade to Spring Boot 1.2.4 2015-06-04 11:34:38 +02:00
Stephane Nicoll
2ef0745832 Rename /metadata/service to /metadata/config
Also exposing a link for the client metadata at /metadata/client

Fixes gh-115
2015-06-04 11:32:15 +02:00
Stephane Nicoll
526a2e7b59 Better describe service capability
Make sure that the title and description of each capability is
configurable and expose that information in the meta-data.

This typically allows to customize the header of each capability in the
UI and the description in help usage such as the optimized text output
for command line clients.

See gh-89
2015-06-04 11:09:45 +02:00
Stephane Nicoll
67c4ef26c9 Merge pull request #111 from wilkinsona/dependency-management-plugin
* dependency-management-plugin:
  Update Gradle builds to use dependency managagement plugin 0.5.1.RELEASE
2015-05-11 18:54:29 +02:00
Andy Wilkinson
9462315281 Update Gradle builds to use dependency managagement plugin 0.5.1.RELEASE 2015-05-11 16:49:03 +01:00
Stephane Nicoll
1dfade6890 Upgrade to Vaadin 7.4.5 2015-05-07 11:07:57 +09:00
Stephane Nicoll
8f1ef94a90 Upgrade to Spring Cloud 1.0.1 2015-05-07 11:07:33 +09:00
Stephane Nicoll
003938f4b7 Add Spring cloud related starters
Merge start-cloud.start.spring.io with the "standard" instance.

Closes gh-93
2015-04-30 09:22:47 +02:00
Stephane Nicoll
76ac171ada Upgrade to Vaadin Spring Boot 1.0.0.beta3 2015-04-28 17:59:01 +02:00
Stephane Nicoll
b6059a5dcb Merge pull request #108 from wilkinsona/gradle-plugin-id
* gradle-plugin-id:
  Update generated build.gradle for Boot 1.3 to use latest plugin id
2015-04-23 21:07:07 +02:00
Andy Wilkinson
3ad25078e6 Update generated build.gradle for Boot 1.3 to use latest plugin id
Spring Boot 1.3 snapshots had changed the id of the Gradle plugin from
spring-boot to org.springframework.boot.spring-boot. This change has
since been reverted.

This commit updates the Initializr to revert back to using the old id,
spring-boot. Some custom Spring Boot 1.3 logic remains: the dependency
management plugin is not applied to a Boot 1.3 project as Spring Boot
1.3 applies it automatically.
2015-04-23 17:38:04 +01:00
Stephane Nicoll
df8b2ce329 Merge pull request #106 from wilkinsona/dependency-management-plugin
* dependency-management-plugin:
  Update Gradle builds to use dependency managagement plugin 0.5.0
2015-04-21 10:19:00 +02:00
Andy Wilkinson
e6c207335c Update Gradle builds to use dependency managagement plugin 0.5.0 2015-04-21 08:58:21 +01:00
Stephane Nicoll
6555c34643 Upgrade to Spring Boot 1.2.3.RELEASE 2015-04-20 15:18:27 +02:00
Stephane Nicoll
5143bd3af1 Add default options for a group of dependencies
BOM id and version range can now be shared at the group level. If no
specific attribute is set, the defaults from the group are inherited.

Closes gh-105
2015-04-20 14:47:36 +02:00
Stephane Nicoll
b699a97ded Add Vaadin support
Closes gh-102
2015-04-01 19:05:10 +02:00
Stephane Nicoll
861d29641c Fix indent 2015-03-27 09:19:09 +01:00
Stephane Nicoll
011dd7d67a Update changelog 2015-03-27 09:15:42 +01:00
Stephane Nicoll
ddfc57443e Support for Bill of Materials
Add explicit support for Bill Of Materials. When a dependency defines a
bom ID, the related bom is added to the project. The metadata are
validated on startup to make sure a dependency does not refer to an
unknown bom entry.

Closes gh-99
2015-03-27 09:00:27 +01:00
Stephane Nicoll
adf5cf068e Support for dependency management plugin
Add support for the dependency management plugin for Gradle so that BOMs
can be added to the project if needed.

Also, the Gradle plugin as from Spring Boot 1.3 has changed and this
commit brings a transparent support for it.

Closes gh-98
2015-03-26 17:31:18 +01:00
Stephane Nicoll
977765d188 Add postgreSQL option
Fixes gh-95 - See gh-85,gh-86
2015-03-24 16:29:40 +01:00
Stephane Nicoll
6212d1c766 Upgrade to Spring Boot 1.2.2.RELEASE 2015-03-10 15:29:18 +01:00
Stephane Nicoll
cb86153b29 Support dependency version in Gradle
Previously, if a dependency defines an explicit version in the meta-data
it was not defined properly in the gradle build file.

Fixes gh-82
2015-03-04 13:57:55 +01:00
Stephane Nicoll
15c800a469 update changelog 2015-03-04 13:57:20 +01:00
Stephane Nicoll
d1a341799b Expose service meta-data
InitializrMetadataBuilder can now merge a number of resources into a
single meta-data instance. A new `/metadata/service` endpoint is now
available and exposes the service meta-data of the current instance.

Combining those two, it is now possible to bootstrap an instance without
a single line of configuration; instead, the meta-data are built from the
content of a json document describing the service meta-data. This
document can be fetched remotely (via the new endpoint) or loaded from
a local file.

Each capability, including the InitializrConfiguration has now a `merge`
method with a "last wins" strategy. For collections, only unknown
elements are added.

Closes gh-88
2015-03-03 18:30:06 +01:00
Stephane Nicoll
d0985d3cc5 More flexible meta-data
Provide a more flexible meta-data contract and clearly separate the
service configuration from the options used to generate a project.

The meta-data now defines a fixed set of core service capabilities. Each
capability has an id, a type, a description and a 'content'. The
following capability types are supported:

* text: single value
* single-select: a list of values, one value should be chosen
* hierarchical-multi-select: values of values, many values can be chosen
* action: a specific single-select that defines the action to invoke

An extension can now build its own meta-data instance more easily.

Closes gh-87
2015-03-02 16:55:34 +01:00