forked from Covisint-Hackathon/Java-HelloWorld-Sample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (39 loc) · 918 Bytes
/
Copy pathbuild.gradle
File metadata and controls
50 lines (39 loc) · 918 Bytes
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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'war'
sourceCompatibility = 1.8
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'Hello World', 'Implementation-Version': version
}
}
configurations {
providedCompile
}
repositories {
mavenCentral()
}
sourceSets {
main.compileClasspath += configurations.providedCompile
test.compileClasspath += configurations.providedCompile
test.runtimeClasspath += configurations.providedCompile
}
dependencies {
compile 'org.springframework:spring-webmvc:4.1.6.RELEASE'
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version:'3.0.1'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
test {
systemProperties 'property': 'value'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}