Clarify mods to buildscript section

This commit is contained in:
Greg Turnquist 2013-08-16 15:07:38 -05:00
parent 310deb3e95
commit dacafdc141
1 changed files with 8 additions and 2 deletions

View File

@ -428,15 +428,21 @@ 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 dependency to your Gradle **build.gradle** file's `buildscript` section: Update your Gradle `build.gradle` file's `buildscript` section, so that it looks like this:
```groovy ```groovy
buildscript {
repositories {
maven { url "http://repo.springsource.org/libs-snapshot" }
mavenLocal()
}
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: Further down inside `build.gradle`, add the following to the list of applied plugins:
```groovy ```groovy
apply plugin: 'spring-boot' apply plugin: 'spring-boot'