-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (58 loc) · 2.68 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
常用命令:
1. tasks 列出项目可运行的task
2. assemble - 打包输出项目.
3. bootRepackage - 打可以通过'java -jar' 命令执行的JAR或WAR包
4. build - 测试并打包输出.
5. clean - 删除build目录.
6. jar - 打jar包.
7. javadoc - 打javadoc包.
8. dependencies - 显示项目的所有依赖关系.
9. uploadArchives - 上传':archives'中配置的所有包到 maven 仓库
*/
buildscript { // buildscript 不能抽取出来,只能重复写。
ext {
// sxGradleHome = "http://192.168.120.68/root/gradle-scripts/raw/master/"
// sxGradleHome = "https://gitee.com/qihualive/gradle-scripts-github/raw/master/"
sxGradleHome = "https://gitee.com/qihualive/gradle-scripts-github/raw/master/" //华哥的 gitee 配置
suixingpayStarterVersion = "3.0.4.RELEASE" // 基础框架
suixingpayConfigVersion = "1.1.0-SNAPSHOT" // 配置中心
fdPortalVersion = "1.0.0-SNAPSHOT" // 统一门户
springBootAdminVersion = "1.5.7"
}
apply from: sxGradleHome + 'maven.gradle'
apply from: sxGradleHome + 'spring-cloud-edgware.gradle' // 导入使用Spring Cloud及相应的Spring Boot版本号
repositories {
maven {
// url REPOSITORY_URL
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:2.0.0"
}
}
subprojects {
// 参考 http://172.16.60.101:8080/wcp/webdoc/view/Pubff8080815ebdbff7015fc2efb33600b1.html
apply from: sxGradleHome + 'maven.gradle'
apply from: sxGradleHome + 'spring-cloud.gradle'
// apply from: sxGradleHome + 'jacoco.gradle' //不需要 jacoco 的配置
// version = '1.0.0-SNAPSHOT' // 设置版本
// group = 'com.suixingpay.cloud' // 设置group id
description = '随行付Spring cloud 实现' // 设置描述
group 'com.suixingpay'
version '1.0-SNAPSHOT'
dependencies {
compileOnly('org.springframework.boot:spring-boot-configuration-processor')
compile('org.projectlombok:lombok')
testCompile('org.projectlombok:lombok')
annotationProcessor('org.projectlombok:lombok')
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompile "org.springframework.boot:spring-boot-test-autoconfigure"
compile group: 'org.slf4j', name: 'slf4j-api'
compile group: 'org.springframework', name: 'spring-aop'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-aop'
compile group: 'com.alibaba', name: 'fastjson', version: '1.2.58'
}
}