-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (95 loc) · 3.04 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
apply plugin: 'groovy'
apply plugin: 'war'
apply plugin: 'com.bmuschko.tomcat'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-tomcat-plugin:2.0'
}
}
version = 0.1
sourceCompatibility = 1.7
ext {
commonsDbcpVersion = '1.4'
wicketVersion = '7.0.0-M4'
slf4jVersion = '1.7.7'
logbackVersion = '1.1.2'
groovyVersion = '2.3.6' // This must match the version shipped with Gradle
hibernateVersion = '4.3.7.Final'
mysqlVersion = '5.1.34'
spockVersion = '0.7-groovy-2.0'
javaxServletVersion = '3.1.0'
springVersion = '4.1.2.RELEASE'
springBootVersion = '1.1.9.RELEASE'
tomcatVersion = '7.0.11'
hsqlVersion = '2.3.2'
taLibVersion = '0.4.0'
guavaVersion = '18.0'
libs = [
database: [
"commons-dbcp:commons-dbcp:$commonsDbcpVersion",
"org.springframework.boot:spring-boot-starter-data-jpa:$springBootVersion",
"org.hibernate:hibernate-core:$hibernateVersion",
"mysql:mysql-connector-java:$mysqlVersion"
],
logging : [
"ch.qos.logback:logback-classic:$logbackVersion"
],
spock : [
"org.spockframework:spock-core:$spockVersion",
"org.spockframework:spock-spring:$spockVersion"
],
spring : [
"org.springframework:spring-core:$springVersion",
"org.springframework:spring-context:$springVersion",
"org.springframework:spring-web:$springVersion"
],
tomcat : [
"org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}",
dependencies.create("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
}
],
wicket : [
"org.apache.wicket:wicket:$wicketVersion",
"org.apache.wicket:wicket-extensions:$wicketVersion",
"org.apache.wicket:wicket-spring:$wicketVersion"
]
]
}
sourceSets {
main {
groovy {
resources {
srcDir 'src/main/resources'
srcDir 'src/main/groovy'
}
}
}
}
repositories {
mavenCentral()
}
dependencies {
providedCompile "javax.servlet:javax.servlet-api:$javaxServletVersion"
compile "org.codehaus.groovy:groovy-all:$groovyVersion"
compile libs.database
compile libs.wicket
compile libs.logging
compile libs.spring
compile "com.tictactec:ta-lib:$taLibVersion"
compile "com.google.guava:guava:$guavaVersion"
testCompile libs.spock
testCompile "org.springframework:spring-test:$springVersion"
testCompile "org.hsqldb:hsqldb:$hsqlVersion"
tomcat libs.tomcat
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2'
}
tasks.withType(Test) {
jvmArgs '-XX:-UseSplitVerifier'
}