-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (52 loc) · 1.78 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'war'
apply plugin: 'groovy'
//apply plugin: 'jetty'
//System.setProperty("spring.profiles.active", "prod")
apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin'
def compatibilityVersion = 1.8
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
compile (['org.springframework:spring-core:4.1.2.RELEASE'],
['org.springframework:spring-webmvc:4.1.2.RELEASE'],
['org.springframework:spring-context:4.1.2.RELEASE'],
['org.springframework:spring-tx:4.1.2.RELEASE'],
['org.springframework:spring-orm:4.1.2.RELEASE'],
['org.springframework:spring-beans:4.1.2.RELEASE'],
['org.hibernate:hibernate-core:4.3.7.Final'],
['org.slf4j:slf4j-simple:1.7.7'],
['postgresql:postgresql:9.1-901.jdbc4'],
['commons-dbcp:commons-dbcp:1.4'],
['com.fasterxml.jackson.core:jackson-databind:2.4.4'],
['org.hibernate:hibernate-validator:5.1.3.Final'],
['javax.servlet:javax.servlet-api:3.1.0'],
['hsqldb:hsqldb:1.8.0.10'])
//test
testCompile(['junit:junit:4.12'],
['org.mockito:mockito-all:1.10.19'],
['org.springframework:spring-test:4.1.2.RELEASE'],
['org.spockframework:spock-core:1.0-groovy-2.4'],
['cglib:cglib-nodep:2.2']
)
// testCompile 'org.springframework:spring-test:4.1.2.RELEASE'
//
// testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
// testCompile 'cglib:cglib-nodep:2.2'
}
war {
webAppDirName = 'web'
}
sourceSets {
test {
testLogging {
events 'passed', 'failed'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.5'
}