Sfoglia il codice sorgente

Clean up gradle build steps

Greg Turnquist 13 anni fa
parent
commit
ae382bc181
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5
    5
      README.md

+ 5
- 5
README.md Vedi File

242
 
242
 
243
 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.
243
 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.
244
 
244
 
245
-Add the following configuration to your existing Gradle build file:
245
+Add the following dependency to your Gradle **build.gradle** file's `buildscript` section:
246
 
246
 
247
-`build.gradle`
248
 ```groovy
247
 ```groovy
249
-buildscript {
250
-    ...
251
     dependencies {
248
     dependencies {
252
         classpath("org.springframework.boot:spring-boot-gradle-plugin:0.5.0.BUILD-SNAPSHOT")
249
         classpath("org.springframework.boot:spring-boot-gradle-plugin:0.5.0.BUILD-SNAPSHOT")
253
     }
250
     }
254
-}
251
+```
252
+
253
+Further down inside `build.gradle`, add the following to the list of plugins:
255
 
254
 
255
+```groovy
256
 apply plugin: 'spring-boot'
256
 apply plugin: 'spring-boot'
257
 ```
257
 ```
258
 
258