forked from fuhoujun/e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
94 lines (81 loc) · 2.16 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
buildscript {
ext {
springBootVersion = "${springBootVersion}"
}
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
maven { url "http://repo2.maven.org/maven2" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath ("com.bmuschko:gradle-docker-plugin:3.0.3")
}
}
apply plugin:'groovy'
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
maven { url "http://repo2.maven.org/maven2" }
}
allprojects {
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
maven { url "http://repo2.maven.org/maven2" }
}
}
subprojects {
apply plugin:'groovy'
apply plugin: 'maven'
apply plugin: 'signing'
dependencies {
compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
maven { url "http://repo2.maven.org/maven2" }
}
jar {
manifest {
attributes("Implementation-Title": project.name,
"Implementation-Vendor": project.group,
"Created-By": project.group,
"Implementation-Version": project.version)
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task wrapper(type: Wrapper) {
gradleVersion = "${gradleVersion}"
}
}
task startSingleService(dependsOn: 'e-example:e-example-single:erun') << {
}
task eclean() << {
allprojects.each{
def o = new File(it.projectDir,".project");
o.delete()
o = new File(it.projectDir,"bin");
o.deleteDir()
o = new File(it.projectDir,".settings");
o.deleteDir()
o = new File(it.projectDir,"build.gradle.bak");
o.delete()
o = new File(it.projectDir,"logs");
o.deleteDir()
o = new File(it.projectDir,"build");
o.deleteDir()
o = new File(it.projectDir,".classpath");
o.delete()
o = new File(it.projectDir,".factorypath");
o.delete()
o = new File(it.projectDir,".apt_generated");
o.deleteDir()
o = new File(it.projectDir,".metadata");
o.deleteDir()
o = new File(it.projectDir,"pids");
o.deleteDir()
}
}