2015-03-10 14:09:24 +00:00
|
|
|
|
### 59.10.2. 自定义Gradle,用于产生一个导入依赖管理的pom
|
|
|
|
|
|
|
|
|
|
以下示例展示了如何配置Gradle去产生一个导入`spring-boot-dependencies`提供的依赖管理的pom。请参考[Gradle用户指南](http://gradle.org/docs/current/userguide/userguide.html)获取更多信息。
|
|
|
|
|
```gradle
|
|
|
|
|
uploadArchives {
|
|
|
|
|
repositories {
|
|
|
|
|
mavenDeployer {
|
|
|
|
|
pom {
|
|
|
|
|
project {
|
|
|
|
|
dependencyManagement {
|
|
|
|
|
dependencies {
|
|
|
|
|
dependency {
|
|
|
|
|
groupId "org.springframework.boot"
|
|
|
|
|
artifactId "spring-boot-dependencies"
|
|
|
|
|
version "1.3.0.BUILD-SNAPSHOT"
|
|
|
|
|
type "pom"
|
|
|
|
|
scope "import"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|