Clean up gradle build steps
This commit is contained in:
parent
90339b8288
commit
310deb3e95
10
README.md
10
README.md
@ -428,17 +428,17 @@ For demonstration purposes, there is code to create a `JdbcTemplate`, query the
|
|||||||
|
|
||||||
Now that your `Application` class is ready, you simply instruct the build system to create a single, executable jar containing everything. This makes it easy to ship, version, and deploy the service as an application throughout the development lifecycle, across different environments, and so forth.
|
Now that your `Application` class is ready, you simply instruct the build system to create a single, executable jar containing everything. This makes it easy to ship, version, and deploy the service as an application throughout the development lifecycle, across different environments, and so forth.
|
||||||
|
|
||||||
Add the following configuration to your existing Gradle build file:
|
Add the following dependency to your Gradle **build.gradle** file's `buildscript` section:
|
||||||
|
|
||||||
`build.gradle`
|
|
||||||
```groovy
|
```groovy
|
||||||
buildscript {
|
|
||||||
...
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath("org.springframework.boot:spring-boot-gradle-plugin:0.5.0.BUILD-SNAPSHOT")
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:0.5.0.BUILD-SNAPSHOT")
|
||||||
}
|
}
|
||||||
}
|
```
|
||||||
|
|
||||||
|
Further down inside `build.gradle`, add the following to the list of plugins:
|
||||||
|
|
||||||
|
```groovy
|
||||||
apply plugin: 'spring-boot'
|
apply plugin: 'spring-boot'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user