-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
102 lines (88 loc) · 3.48 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
apply plugin: 'war'
apply plugin: 'jetty'
apply plugin: 'groovy'
apply plugin: 'eclipse-wtp'
apply plugin: 'scala'
slf4jVersion = '1.6.3'
jettyVersion = '7.1.6.v20100715'
springVersion = "3.1.0.RELEASE"
springSecurityVersion = '3.1.0.RELEASE'
description = 'Spring Security Samples - SecureMail'
version = '1.0.0.CI-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
configurations {
integrationTestCompile {
extendsFrom testCompile
}
integrationTestRuntime {
extendsFrom integrationTestCompile, testRuntime
}
['commons-logging','log4j'].each { groupName -> all*.exclude group: groupName }
}
sourceSets {
integrationTest {
groovy.srcDir file('src/it/groovy')
resources.srcDir file('src/it/resources')
compileClasspath = sourceSets.main.output + sourceSets.test.output + configurations.integrationTestCompile
runtimeClasspath = output + compileClasspath + configurations.integrationTestRuntime
}
}
eclipse {
classpath.plusConfigurations += configurations.integrationTestRuntime
wtp {
component {
contextPath = 'mail'
}
}
}
dependencies {
scalaTools 'org.scala-lang:scala-compiler:2.9.1',
'org.scala-lang:scala-library:2.9.1'
groovy 'org.codehaus.groovy:groovy:1.8.2'
providedCompile 'javax.servlet:servlet-api:2.5@jar'
compile "org.springframework:spring-webmvc:$springVersion",
"org.springframework:spring-jdbc:$springVersion",
"org.slf4j:slf4j-api:$slf4jVersion",
"org.slf4j:log4j-over-slf4j:$slf4jVersion",
"org.slf4j:jul-to-slf4j:$slf4jVersion",
"org.slf4j:jcl-over-slf4j:$slf4jVersion",
"javax.servlet:jstl:1.2",
"javax.validation:validation-api:1.0.0.GA",
"org.hibernate:hibernate-validator:4.2.0.Final",
"org.springframework.security:spring-security-core:$springSecurityVersion",
"org.springframework.security:spring-security-taglibs:$springSecurityVersion",
'org.scala-lang:scala-library:2.9.1',
fileTree(dir: 'libs', include: '*.jar')
runtime "opensymphony:sitemesh:2.4.2",
"com.h2database:h2:1.3.160",
'cglib:cglib-nodep:2.2.2',
'ch.qos.logback:logback-classic:0.9.30',
"org.springframework.security:spring-security-web:$springSecurityVersion",
"org.springframework.security:spring-security-config:$springSecurityVersion"
testCompile "org.springframework:spring-test:$springVersion",
"org.easytesting:fest-assert:1.4",
"junit:junit:4.8"
integrationTestCompile 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.7.0',
'org.codehaus.geb:geb-spock:0.6.0',
'org.codehaus.geb:geb-core:0.6.0',
"org.eclipse.jetty:jetty-server:$jettyVersion",
"org.eclipse.jetty:jetty-servlet:$jettyVersion"
integrationTestCompile('org.spockframework:spock-core:0.5-groovy-1.8') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
}
task integrationTest(type: Test, dependsOn: [jar,jettyRunWar]) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
jettyRunWar.daemon = true
}
build.dependsOn integrationTest
[jettyRun, jettyRunWar]*.configure {
contextPath = "/mail"
}
task wrapper(type: Wrapper) {
gradleVersion = '1.0-milestone-6'
}