From 950203364ff7612237fcb0b851ce0e82980530c5 Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Tue, 10 Mar 2015 21:53:25 +0800 Subject: [PATCH] Update 59.1. Including the plugin.md --- .../59.1. Including the plugin.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/VIII. Build tool plugins/59.1. Including the plugin.md b/VIII. Build tool plugins/59.1. Including the plugin.md index e69de29..539c156 100644 --- a/VIII. Build tool plugins/59.1. Including the plugin.md +++ b/VIII. Build tool plugins/59.1. Including the plugin.md @@ -0,0 +1,21 @@ +### 59.1. 包含该插件 + +想要使用Spring Boot Gradle插件,你只需简单的包含一个`buildscript`依赖,并应用`spring-boot`插件: +```gradle +buildscript { + dependencies { + classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.0.BUILD-SNAPSHOT") + } +} +apply plugin: 'spring-boot' +``` +如果想使用一个里程碑或快照版本,你可以添加相应的repositories引用: +```gradle +buildscript { + repositories { + maven.url "http://repo.spring.io/snapshot" + maven.url "http://repo.spring.io/milestone" + } + // ... +} +```