Commit Graph

87 Commits

Author SHA1 Message Date
Brian Clozel
9d62d5cff3 Upgrade to Spring Boot 2.0.1
Note that the custom `CommandLineContentNegotiationStrategy` has been
adapted to the changes in the `ContentNegotiationStrategy` contract done
in https://jira.spring.io/browse/SPR-16624.

Closes gh-648
2018-04-07 10:46:21 +02:00
Stephane Nicoll
dbeb8225fa Polish 2018-03-08 16:38:44 +01:00
Stephane Nicoll
bae16aad3b Polish 2018-03-02 14:40:21 +01:00
Stephane Nicoll
155c929316 Make sure the browser's window has the focus 2018-03-01 15:30:38 +01:00
Stephane Nicoll
5e3c250fec Fix allowed HTTP methods
This commit reverts to `@RequestMapping` as certain endpoints are
invoked with `GET` or `POST`.

This is a temporary measure as we need to figure out and properly
document allowed methods for all endpoints

Closes gh-615
2018-03-01 10:07:17 +01:00
Stephane Nicoll
fe7650f2c8 Upgrade to Spring Boot 2.0.0
This commit upgrades to Spring Boot 2.0.0.

Please note that this commit does not change metrics names to use new
features of Micrometer yet (see gh-526)

Closes gh-611
2018-03-01 08:00:49 +01:00
Spring Buildmaster
0f67d2e583 Next Development Version 2018-02-27 15:17:36 +00:00
Stephane Nicoll
1d9a68d6fc Upgrade to Kotlin 1.2.20
This commits upgrade to Kotlin 1.2.20 and uses the new stdlib artifact
names. As a result, 2.0  milestones prior to Spring Boot 2.0.0.RC1 are
no longer supported.

Closes gh-576
2018-02-01 11:34:56 +01:00
Stephane Nicoll
63becddb94 Remove use of org.json
This commit removes all use of org.json in production code and moves
the json api to a test only dependency.

Closes gh-507
2017-12-29 15:30:44 +01:00
Stephane Nicoll
faa7de99c2 Add version range support for Kotlin version
Closes gh-556
2017-12-11 16:18:43 +01:00
Brian Clozel
56712c629c Fix Tracking code test for the homepage 2017-10-20 16:01:24 +02:00
Brian Clozel
f3b801e268 Use Tag Manager instead of Analytics
This commit replaces Google Analytics with Tag Manager in the official
start.spring.io service instance.
The code section has been moved from the end of the body to the end
of the head section.

Closes gh-525
2017-10-20 15:38:46 +02:00
Spring Buildmaster
7f4db38cee Next Development Version 2017-09-18 16:00:41 +00:00
Stephane Nicoll
8efe5f34be Ensure configuration can be serialized
Closes gh-506
2017-09-18 15:02:01 +02:00
Stephane Nicoll
cf93d5ddef Rework caching configuration
Closes gh-401
2017-09-15 13:29:45 +02:00
Stephane Nicoll
1bf0d0fcde Allow for RestTemplate customization
This commit reuses the `RestTemplateBuilder` infrastructure wherever
a `RestTemplate` is required. This allows to customize the rest template
if necessary.

Closes gh-481
2017-08-14 11:26:34 +02:00
Stephane Nicoll
fefde60a2e Use default methods for ProjectRequestPostProcessor 2017-07-03 08:14:38 +02:00
Stephane Nicoll
1eb64f0cc9 Upgrade to Spring Boot 1.4.7.RELEASE 2017-06-10 09:24:00 +02:00
Stephane Nicoll
feb145bf3b Polish "Promote language choice to page heading"
Closes gh-432
2017-05-23 14:56:25 +02:00
Brian Clozel
820107ad78 Promote language choice to page heading
This commit moves the language choice part of the form from the
"advanced" section to the main heading.

See gh-432
2017-05-23 14:46:58 +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
Stephane Nicoll
249c17776f Upgrade to Spring Boot 1.4.6.RELEASE 2017-04-21 12:44:04 +02:00
Stephane Nicoll
9a83defc4c Improve caching configuration
Rather than creating a `CacheManager` ourselves, we now rely on JCache
to provide a `CacheManager` that we'll augment with the caches that
initializr needs.

If Initializr is embedded in another app and that app uses JCache, then
its cache manager will be transparently upgraded to define the caches
that initializr needs. If not, such caches will have to be created as
part of the custom config.

Also, caching only kicks in if required at the service level.

This commit also switches the cache implementation to EhCache 3.

See gh-389
2017-03-29 12:55:29 +02:00
Stephane Nicoll
3c59c29855 Polish contribution
Closes gh-388
2017-03-15 16:49:46 +01:00
Stephane Nicoll
c9ca61015a Polish 2017-02-28 10:07:05 +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
Stephane Nicoll
53679aa860 Remove outdated references to Groovy 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
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
Stephane Nicoll
e8dd74b8ed Polish contribution
Closes gh-295
2017-02-02 15:03:00 +01:00
Stephane Nicoll
b356e233a2 Polish reference guide
See gh-295
2017-02-02 14:55:59 +01:00
Dave Syer
6242df5b6e Fix bug with stale state in http request factory
If we don't re-use an existing factory, the label doesn't change and
all the snippets get generated with the same identifier.

Remove explicit version from wiremock test

Add snippets attribute to build config

See gh-295
2017-02-02 10:21:38 +01:00
Stephane Nicoll
c7953bf999 Polish contribution
Move documentation to a dedicated module (`initializr-docs`) with a test
that uses the stubs with the Spring Cloud Contract runner.

See gh-295
2017-02-02 10:21:38 +01:00
Dave Syer
b7d8d5c813 Initiate initializr documentation
This commit commit adds restdocs and stub generators and initiate
a reference guide for Initializr.

Most of the controller tests now use MockMvc via a custom version
of the MockMvcClientHttpRequestFactory (from spring-test). The
snippet names are auto-generated in the form

<HttpMethod>/<path>[/queries(/<name-value)*][/headers](/name-value)*]

when there is a comma-separated value in a header it is
abbreviated as <first-value>.MORE.

Wiremock stubs are generated in the same form under
snippets/stubs (with ".json" as the
file extension).

The controller tests that stayed as full stack use a different
base class AbstractFullStackInitializrIntegrationTests.

A long JSON body can be broken out into separate snippets
for each field (or rather a list of fields supplied by the
user). This feature was already used with hard-coded snippets
in the wiki.

See gh-295
2017-02-02 10:21:38 +01:00
Stephane Nicoll
ba3c82b064 Fix integration tests 2017-01-31 14:42:35 +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
Stephane Nicoll
bda1376c23 Polish 2017-01-27 18:04:10 +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
f0cdd856bf Upgrade to Spring Boot 1.4.4.RELEASE 2017-01-27 10:31:00 +01:00