-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (69 loc) · 2.48 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
buildscript {
ext {
artifactGroup = "pl.garciapl.consul"
artifactName = "consul-pusher"
artifactVersion = "1.0.0-SNAPSHOT"
springBootVersion = "1.5.9.RELEASE"
cfg4jVersion = "4.4.0"
orbitzVersion = "0.12.7"
guavaVersion = "19.0"
gsonVersion = "2.7"
apacheCommonsIo = "2.5"
apacheCommonsCli = "1.3.1"
slf4jVersion = "1.7.12"
logbackVersion = "1.2.3"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath group: "org.springframework.boot", name: "spring-boot-gradle-plugin", version: "${springBootVersion}"
}
}
// ----------- Plugins -----------
apply plugin: "java"
apply plugin: "spring-boot"
apply plugin: "idea"
// ----------- Repositories -----------
repositories {
mavenLocal()
mavenCentral()
}
// ----------- External module dependencies -----------
dependencies {
compile group: "org.slf4j", name: "slf4j-api", version: "${slf4jVersion}"
compile group: 'ch.qos.logback', name: 'logback-core', version: "${logbackVersion}"
compile group: 'ch.qos.logback', name: 'logback-classic', version: "${logbackVersion}"
compile(group: "org.springframework.boot", name: "spring-boot-starter", version: "${springBootVersion}") {
exclude module: 'org.springframework.boot:spring-boot-starter-logging'
}
compile group: 'org.springframework.boot', name: 'spring-boot-starter-log4j2', version: "${springBootVersion}"
compile group: "org.cfg4j", name: "cfg4j-core", version: "${cfg4jVersion}"
compile group: "com.orbitz.consul", name: "consul-client", version: "${orbitzVersion}"
compile group: 'com.google.guava', name: 'guava', version: "${guavaVersion}"
compile group: 'com.google.code.gson', name: 'gson', version: "${gsonVersion}"
compile group: 'commons-io', name: 'commons-io', version: "${apacheCommonsIo}"
compile group: 'commons-cli', name: 'commons-cli', version: "${apacheCommonsCli}"
}
// ----------- EXTRA tasks -----------
// Generate Gradle wrapper
task wrapper(type: Wrapper) {
gradleVersion = "2.4"
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
// ----------- Task configurations -----------
defaultTasks "clean", "build"
// ----------- Task configurations -----------
jar {
baseName = "${artifactName}"
version = "${artifactVersion}"
}