forked from WeBankFinTech/Dockin-RM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·97 lines (85 loc) · 3.21 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*
* Copyright (C) @2020 Webank Group Holding Limited
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/**
* @author isaacdong
* @date 2017.04.18
*/
buildscript {
repositories {
maven { url "http://maven.weoa.com/nexus/content/groups/public/" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springboot_version")
classpath("com.alibaba:fastjson:$fastjsonVersion")
}
configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' }
}
apply plugin: 'org.springframework.boot'
apply plugin: 'java'
repositories {
maven { url "http://maven.weoa.com/nexus/content/groups/public/" }
}
List jmh = [ "org.openjdk.jmh:jmh-core:$jmh_version", "org.openjdk.jmh:jmh-generator-annprocess:$jmh_version" ]
dependencies {
compile ("io.kubernetes:client-java:$k8s_client_version")
compile ("net.javacrumbs.shedlock:shedlock-spring:4.1.0")
compile ("net.javacrumbs.shedlock:shedlock-provider-jdbc-template:4.1.0")
compile ("com.alibaba:fastjson:$fastjsonVersion")
compile ("org.springframework.boot:spring-boot-gradle-plugin:$springboot_version")
compile ("org.springframework.boot:spring-boot-starter-web:$springboot_version")
compile ("org.springframework.boot:spring-boot-starter-aop:$springboot_version")
compile ("org.springframework.boot:spring-boot-starter-test:$springboot_version")
compile ("org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.0")
compile ("org.apache.httpcomponents:httpasyncclient:4.1.1")
compile ("org.aspectj:aspectjtools:1.8.9")
compile ("com.alibaba:druid-spring-boot-starter:1.1.10")
compile ('org.apache.directory.studio:org.apache.commons.io:2.4')
compile ("org.assertj:assertj-core:3.9.0")
compile ("mysql:mysql-connector-java:5.1.24")
compile ("org.testng:testng:6.14.3")
testCompile jmh
}
bootRun.doFirst { mkdir 'dist' }
bootRun {
addResources = false
workingDir = './dist'
jvmArgs = [
"-server",
"-Xmx512m",
"-XX:MaxMetaspaceSize=128m",
"-Xdebug",
"-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=39122",
"-Dspring.devtools.restart.enabled=false",
"-Duser.language=zh",
"-Dspring.config.location=classpath:application.properties,classpath:dockin-client.properties",
]
}
jar {
baseName = "dockin-rm"
version = "v1.0.0"
manifest {
attributes("Manifest-Version": 1.0,
"Main-Class": 'cn.webank.dockin.rm.server.DockinRMServer'
)
}
}
springBoot {
mainClass = 'cn.webank.dockin.rm.server.DockinRMServer'
layout = 'ZIP'
excludeDevtools
}
test{
useTestNG()
// systemProperties = []
}