Commit Graph

1447 Commits

Author SHA1 Message Date
Stephane Nicoll
2f50cf1c8f Format source code
Closes gh-923
2019-06-12 14:46:53 +02:00
Stephane Nicoll
4132306a53 Upgrade to spring-javaformat 0.0.12
See gh-923
2019-06-12 14:46:40 +02:00
Andy Wilkinson
43b1148f64 Merge pull request #921 from OlgaMaciaszek
* gh-921:
  Polish "Allow adding <extensions>true</extensions> to plugin config"
  Allow adding <extensions>true</extensions> to plugin config

Closes gh-921
2019-06-10 14:15:40 +01:00
Andy Wilkinson
50160d4931 Polish "Allow adding <extensions>true</extensions> to plugin config"
See gh-921
2019-06-10 14:13:46 +01:00
Olga Maciaszek-Sharma
3e86a446a8 Allow adding <extensions>true</extensions> to plugin config
See gh-921
2019-06-10 14:13:37 +01:00
Stephane Nicoll
593b9ec878 Properly handle spring boot version metadata failure
See gh-145
2019-06-07 16:40:15 -04:00
Andy Wilkinson
04b2777b32 Correct Kotlin DSL syntax for adding and customizing configurations
Fixes gh-917
2019-06-06 09:51:20 +01:00
Stephane Nicoll
a79a9ae101 Upgrade to Gradle 4.10.3 for Spring Boot 2.0.x projects 2019-06-02 09:21:59 +02:00
Stephane Nicoll
fdd850ba78 Merge pull request #914 from bclozel
* pr/914:
  Prevent caching issues with browsers

Closes gh-914
2019-06-02 09:10:32 +02:00
Brian Clozel
ba73613050 Prevent caching issues with browsers
The main metadata endpoint is available at the root "/" path, for JSON
compatible media types. This endpoint is often requested by CLI and
IDEs. Initializr is setting HTTP response headers to tell clients to
cache the response body.

With this current situation, several HTTP caching issues can happen.

1. Since many formats are available at the same path, proxies can cache
the response body and redistribute it to many clients, even if they
don't request the same media type. To fix that, we need to add a
`Vary: Accept` response header; with that, proxies will cache responses
but take into account that different Accept request headers might yield
different responses.

2. Browsers have very specific caching implementations, and exposing
that metadata endpoint on "/" and at the same time an HTML page will
create issues related to HTTP caching. Navigation and refreshes might
result with strange problems. To fix that, we need to reinstate the
`/metadata/client` endpoint as a first class citizen (and not just a
redirect). This way, Web UIs can freely use that path to request the
metadata, without risking caching issues.

See gh-914
2019-06-02 09:08:12 +02:00
Stephane Nicoll
ce150380c2 Polish method name 2019-05-31 12:13:59 +02:00
Stephane Nicoll
209f092168 Make hasText public to validate corner cases 2019-05-31 11:19:37 +02:00
Stephane Nicoll
e063405b92 Allow to initialize a dependency builder from an existing dependency 2019-05-31 11:19:37 +02:00
Stephane Nicoll
31b60a6955 Model custom configuration for a Gradle dependency
Closes gh-850
2019-05-31 11:19:30 +02:00
Stephane Nicoll
d32b2f6a20 Model that a Maven dependency is optional
Closes gh-913
2019-05-31 09:35:43 +02:00
Stephane Nicoll
e6f287b298 Fix compatiblity with Microsoft Windows
Closes gh-879
2019-05-29 16:10:54 +02:00
Stephane Nicoll
62d0a94364 Migrate ProjectAssert to java.nio.file.Path 2019-05-28 15:29:28 +02:00
Stephane Nicoll
b8cac0407b Add dependency builder
This commit adds a builder for Dependency to allow it to be further
tuned without having to add an extra constructor.
2019-05-22 15:44:30 +02:00
Stephane Nicoll
7a30f771f2 Provide idiomatic test setup when JUnit Jupiter is available
This commit provides a better test infrastructure when JUnit 5 is
available:

* The default test class uses JUnit Jupiter API
* The vintage engine that the Spring Boot starter provides is excluded
so that only the Junit Jupiter API is available on the classpath

Closes gh-905
2019-05-22 13:49:50 +02:00
Stephane Nicoll
a2950c9a56 Add support for dependency exclusions
Closes gh-906
2019-05-22 11:59:15 +02:00
Stephane Nicoll
b0597aaca1 Add modifiers support to TypeDeclaration
Closes gh-908
2019-05-22 10:10:30 +02:00
Stephane Nicoll
c298a6d021 Polish 2019-05-21 13:45:58 +02:00
Stephane Nicoll
9ea41f151d Configure JUnit platform with Spring Boot 2.2+
Closes gh-904
2019-05-21 13:31:00 +02:00
Stephane Nicoll
75228ba4a3 Add parentheses for method invocations with no argument
Closes gh-907
2019-05-21 11:39:04 +02:00
Madhura Bhave
fd8ebf728c Add more logging for debugging formatting failures on windows 2019-05-20 17:23:02 -07:00
Madhura Bhave
bac79bbbfd Polish 2019-05-20 16:03:36 -07:00
Stephane Nicoll
7900a09ce6 Fix doc sample to use HTTPS explicitly 2019-05-20 08:52:08 +02:00
Stephane Nicoll
372e823d21 Fix version references in Gradle KTS build
Closes gh-901
2019-05-17 18:45:40 +02:00
Stephane Nicoll
c7c16872c4 Polish "Add Gradle Kotlin DSL support"
In particular, this commit replaces the GradleKts dedicated build system
in favor of a dedicated build system dialect.

Closes gh-851

Co-authored-by: Andy Wilkinson <awilkinson@pivotal.io>
2019-05-15 16:54:50 +02:00
jnizet
239116b29a Add Gradle Kotlin DSL support
This commit refactors the existing Groovy DSL writers in order to share
code between the Groovy DSL and Kotlin DSL writers.

See gh-851
2019-05-15 16:54:50 +02:00
jnizet
020d66be63 Add GradleKts build system
This commit adds a BuildSystem implementation for the Gradle Kotlin DSL

See gh-851
2019-05-15 16:54:50 +02:00
Stephane Nicoll
96f2b5fbab Upgrade maven plugins 2019-05-15 16:53:17 +02:00
Stephane Nicoll
33e728a3a2 Upgrade to JUnit Jupiter 5.4.2 2019-05-15 16:52:58 +02:00
Stephane Nicoll
8fff7a32b7 Upgrade to Spring Boot 2.1.5 2019-05-15 16:52:51 +02:00
Stephane Nicoll
26fb971102 Upgrade to Gradle 5.4.1 2019-05-09 11:28:34 +02:00
Stephane Nicoll
69afcacce3 Merge pull request #890 from jnizet
* pr/890:
  Polish "Add support for Gradle's tasksWithType"
  Add support for Gradle's tasksWithType
2019-05-02 10:48:56 +02:00
Madhura Bhave
0f645c7143 Polish "Add support for Gradle's tasksWithType"
Closes gh-890

Co-authored-by: Stephane Nicoll <snicoll@pivotal.io>
2019-05-02 10:42:21 +02:00
jnizet
0eeb85697e Add support for Gradle's tasksWithType
This commit adds support for configuring several tasks at once using
a type. It also migrates the Kotlin support so that, instead of
configuring compileKotlin and compileTestKotlin, it configures all
tasks of type KotlinCompile at once.

See gh-890
2019-05-02 09:41:05 +02:00
Andy Wilkinson
3409325342 Allow ext properties to have non-String values
Closes gh-893
2019-04-30 13:09:14 +01:00
Madhura Bhave
e009a4e152 Change root of directory for building the docker image
This is done so that setup.sh can be accessed in the Dockerfile
2019-04-11 13:19:48 -07:00
Stephane Nicoll
9c16d576ff Align CI image to expose javadoc binary 2019-04-11 09:29:27 +02:00
Stephane Nicoll
76c036829e Upgrade maven plugins 2019-04-11 08:21:19 +02:00
Stephane Nicoll
e3c5d1eb53 Generate javadoc API 2019-04-11 08:21:10 +02:00
Stephane Nicoll
b636045057 Polish 2019-04-11 07:48:04 +02:00
Stephane Nicoll
1efc5a6900 Upgrade to asciidoctor maven plugin 1.6.0 2019-04-11 07:41:36 +02:00
Stephane Nicoll
f97867650d Extend conditions that can apply to more than one value
This commit extends the build system and platform conditions to allow
for several values to be specified. Those conditions match if any of
the provided value matches.

Closes gh-888
2019-04-11 07:37:10 +02:00
Stephane Nicoll
baffdfa74d Polish 2019-04-10 11:12:09 +02:00
Andy Wilkinson
b387a77e73 Disable HTML escaping when rendering Mustache templates
Closes gh-885
2019-04-05 10:40:50 +01:00
Stephane Nicoll
83436ae2ef Fix unresolved reference in generated documentation 2019-04-04 09:44:05 +02:00
Stephane Nicoll
8c3c220487 Upgrade to Spring Cloud contract 2.1.1 2019-04-04 09:20:56 +02:00