This commit is contained in:
Stephane Nicoll
2019-01-29 15:25:34 +01:00
parent 0f53acc6bd
commit b60cbabb72
2 changed files with 153 additions and 150 deletions

View File

@@ -101,15 +101,16 @@ list of the available configuration options.
Here is the most basic dependency entry you could have Here is the most basic dependency entry you could have
```yml [source,yaml,indent=0]
initializr: ----
initializr:
dependencies: dependencies:
- name: Core - name: Core
content: content:
- id: security - id: security
name: Security name: Security
description: Secure your application via spring-security description: Secure your application via spring-security
``` ----
TIP: The `security` dependency is held within a group called "Core". TIP: The `security` dependency is held within a group called "Core".
@@ -122,8 +123,9 @@ Let's now add a custom dependency that is not managed by Spring Boot and that on
work from Spring Boot `1.2.0.RELEASE` and onwards but should not be used in the 1.3 work from Spring Boot `1.2.0.RELEASE` and onwards but should not be used in the 1.3
lines and further for some reason. lines and further for some reason.
```yml [source,yaml,indent=0]
initializr: ----
initializr:
dependencies: dependencies:
- name: Core - name: Core
content: content:
@@ -135,7 +137,7 @@ initializr:
bom: foo-bom bom: foo-bom
repository: foo-repo repository: foo-repo
versionRange: "[1.2.0.RELEASE,1.3.0.M1)" versionRange: "[1.2.0.RELEASE,1.3.0.M1)"
``` ----
If one selects this entry, the `com.example.foo:foo-core}` dependency will be added If one selects this entry, the `com.example.foo:foo-core}` dependency will be added
and the Bill of Materials and repository for `foo` will be added automatically to and the Bill of Materials and repository for `foo` will be added automatically to
@@ -166,8 +168,9 @@ support is meant to react to that.
For instance, if you want your groupId to default to `org.acme` and the For instance, if you want your groupId to default to `org.acme` and the
`javaVersions` to only be `1.8` and `11` you would write the following config: `javaVersions` to only be `1.8` and `11` you would write the following config:
```yml [source,yaml,indent=0]
initializr: ----
initializr:
groupId: groupId:
value: org.acme value: org.acme
javaVersions: javaVersions:
@@ -175,4 +178,4 @@ initializr:
default: false default: false
- id: 1.8 - id: 1.8
default: true default: true
``` ----

View File

@@ -347,7 +347,7 @@ declared at the top level (under `env`) and given an id via the key in the confi
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
env: env:
repositories: repositories:
my-api-repo-1: my-api-repo-1:
@@ -359,7 +359,7 @@ Once defined, the repository can then be referred back to in a dependency
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
dependencies: dependencies:
- name: Other - name: Other
content: content:
@@ -394,7 +394,7 @@ configuration key. Example:
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
env: env:
boms: boms:
my-api-bom: my-api-bom:
@@ -411,7 +411,7 @@ BOMs by referring to the id:
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
dependencies: dependencies:
- name: Other - name: Other
content: content:
@@ -437,7 +437,7 @@ Here's an example of a BOM with mappings:
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
env: env:
boms: boms:
cloud-bom: cloud-bom:
@@ -481,7 +481,7 @@ an alias can be defined for ths dependency;
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
dependencies: dependencies:
- name: Other - name: Other
content: content:
@@ -626,7 +626,7 @@ versions of Spring Boot, not of your dependency. For example:
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
dependencies: dependencies:
- name: Stuff - name: Stuff
content: content:
@@ -650,7 +650,7 @@ the values defined at the top level. For example:
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
dependencies: dependencies:
- name: Stuff - name: Stuff
content: content:
@@ -674,7 +674,7 @@ A mapping can also be applied to a BOM declaration. For example:
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
env: env:
boms: boms:
my-api-bom: my-api-bom:
@@ -713,7 +713,7 @@ existing Spring Boot starter) you can flag it as a "non starter":
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
dependencies: dependencies:
- name: Stuff - name: Stuff
content: content:
@@ -738,13 +738,13 @@ common settings in a group are the `groupId`, `versionRange` and `bom`:
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
initializr: initializr:
dependencies: dependencies:
- name: Stuff - name: Stuff
bom: stuff-bom bom: stuff-bom
versionRange: "[1.3.0.RELEASE,2.0.0.M1)" versionRange: "[1.3.0.RELEASE,2.0.0.M1)"
content: content:
... ...
---- ----
These dependencies, by default, will be available only for Spring Boot versions 1.3 up to These dependencies, by default, will be available only for Spring Boot versions 1.3 up to