-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (72 loc) · 2.01 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
apply from: 'buildMicroservices.gradle'
apply from: 'buildMonolithic.gradle'
subprojects {
apply plugin: 'java'
apply plugin: "war"
apply plugin: 'eclipse-wtp'
apply plugin: 'idea'
version = '0.0.1'
description = "Exploring microservices"
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
//
// Define project library versions
//
ext {
springVersion = "4.1.6.RELEASE"
springBootVersion = "1.2.4.RELEASE"
junitVersion = "4.11"
jacksonCoreVersion = "2.5.2"
javaxServletApiVersion = "3.1.0"
}
dependencies {
compile 'com.fasterxml.jackson.core:jackson-core:' + jacksonCoreVersion
compile 'com.fasterxml.jackson.core:jackson-databind:' + jacksonCoreVersion
testCompile 'junit:junit:' + junitVersion
}
processResources {
expand project.properties
}
ext.sharedManifest = manifest {
attributes('provider' : 'gradle',
'Implementation-Title': project.name,
'Implementation-Version': project.version,
'Implementation-Description': project.description,
'Build-By': System.getProperty('user.name'),
'Build-JDK': System.getProperty('java.version'),
'Build-Time': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
'Source-Compatibility': project.sourceCompatibility,
'Target-Compatibility': project.targetCompatibility)
}
jar {
manifest = project.manifest {
from sharedManifest
}
}
war {
manifest = project.manifest {
from sharedManifest
}
}
//
// Setup IDE
//
eclipse {
classpath {
downloadSources=true
downloadJavadoc=true
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
}