-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
76 lines (65 loc) · 2.2 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
apply plugin: 'tomcat'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'jetty'
buildscript {
repositories {
add(new org.apache.ivy.plugins.resolver.URLResolver()) {
name = 'GitHub'
addArtifactPattern 'http://cloud.github.com/downloads/[organisation]/[module]/[module]-[revision].[ext]'
}
}
dependencies {
classpath 'bmuschko:gradle-tomcat-plugin:0.9.5'
}
}
//task testJavascript {
// def systemType = System.properties["os.name"].toString().toLowerCase().contains("mac")
// def cmdLine = "./testJavascript.sh " + (systemType?"mac":"linux")
// def process = cmdLine.execute()
// process.text.eachLine {println it}
// if (process.exitValue() != 0)
// assert fail: "javascript tests are failing!"
//}
//test.dependsOn (testJavascript)
sourceSets {
main {
resources {
srcDir "src/main/resources"
}
}
test {
resources {
srcDir "src/test/resources"
}
}
}
repositories {
mavenCentral()
}
task setupDB(type:Exec) {
commandLine 'sh', 'scripts/setup_database.sh'
}
dependencies {
def tomcatVersion = '7.0.11'
tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}"
tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
}
compile 'org.freemarker:freemarker:2.3.15'
compile 'org.hibernate:hibernate-core:4.1.7.Final'
compile 'org.hibernate:hibernate-entitymanager:4.1.7.Final'
compile 'org.springframework:spring-webmvc:3.1.2.RELEASE'
compile 'mysql:mysql-connector-java:5.1.21'
compile 'org.springframework:spring-jdbc:3.1.2.RELEASE'
compile 'org.springframework:spring-orm:3.1.2.RELEASE'
compile 'org.slf4j:slf4j-log4j12:1.5.6'
providedCompile 'org.apache.tomcat:servlet-api:6.0.35'
testCompile 'org.springframework:spring-test:3.1.2.RELEASE'
testCompile 'junit:junit:4.10'
testCompile 'org.mockito:mockito-all:1.9.0'
testCompile 'hsqldb:hsqldb:1.8.0.10'
// testCompile 'cglib:cglib:2.2.2'
compile 'cglib:cglib:2.2.2'
}