-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
119 lines (99 loc) · 4.15 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
110
111
112
113
114
115
116
117
118
119
import org.apache.tools.ant.filters.ReplaceTokens
defaultTasks "build"
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'project-reports'
apply plugin: 'eclipse'
apply plugin: 'jetty'
apply plugin: 'aspectj'
version = '1.0.0'
springVersion = '3.0.5.RELEASE'
wicketVersion = '1.4.17'
jettyVersion = '6.1.25'
sourceCompatibility = 1.6
targetCompatibility = 1.6
group = 'com.xinlv.portal'
configurations {
compile.transitive = true
testCompile.transitive = true
}
sourceSets {
main {
resources {
srcDir 'src/main/resources'
srcDir 'src/main/java'
}
}
test {
resources {
srcDir 'src/test/resources'
srcDir 'src/test/java'
}
}
}
repositories {
mavenCentral()
mavenRepo(urls: 'http://wicketstuff.org/maven/repository')
mavenRepo(urls: 'http://repository.jboss.com/maven2')
mavenRepo(urls: 'http://m2.neo4j.org/')
mavenRepo(urls: 'http://maven.springframework.org/release')
mavenRepo(urls: 'http://maven.springframework.org/milestone')
mavenRepo(urls: 'http://maven.springframework.org/snapshot')
}
dependencies {
compile "org.apache.wicket:wicket:$wicketVersion"
compile "org.apache.wicket:wicket-extensions:$wicketVersion"
compile "org.apache.wicket:wicket-spring:$wicketVersion"
compile "org.apache.wicket:wicket-datetime:$wicketVersion"
compile 'org.slf4j:slf4j-log4j12:1.5.8'
compile 'oswego-concurrent:concurrent:1.3.4'
compile "org.springframework:spring-core:$springVersion"
compile "org.springframework:spring-beans:$springVersion"
compile "org.springframework:spring-web:$springVersion"
compile "org.springframework:spring-context:$springVersion"
compile "org.springframework:spring-aop:$springVersion"
compile "org.springframework:spring-aspects:$springVersion"
compile "org.springframework:spring-tx:$springVersion"
compile "org.springframework.security:spring-security-web:$springVersion"
compile "org.springframework.security:spring-security-config:$springVersion"
compile 'org.springframework.integration:spring-integration-mail:1.0.3.RELEASE'
compile 'org.springframework:spring-mock:2.0.8'
compile 'org.springframework.data:spring-data-neo4j:1.0.0.RC1'
compile 'org.springframework.data:spring-data-commons-core:1.0.0.RC1'
compile "org.springframework:spring-test:$springVersion"
compile 'commons-lang:commons-lang:2.5'
compile 'commons-httpclient:commons-httpclient:3.1'
compile 'com.thoughtworks.xstream:xstream:1.3.1'
compile 'commons-io:commons-io:1.4'
compile 'rome:rome:0.9'
ajc 'aspectj:aspectjtools:1.5.3'
compile 'aspectj:aspectjrt:1.5.3'
compile 'aspectj:aspectjtools:1.5.3'
testCompile 'junit:junit:4.8.1'
testCompile 'org.easymock:easymock:3.0'
// provided
providedDeps = [
'javax.activation:activation:1.1.1',
'javax.servlet:servlet-api:2.5',
"org.mortbay.jetty:jetty:$jettyVersion",
"org.mortbay.jetty:jetty-util:$jettyVersion",
"org.mortbay.jetty:jetty-management:$jettyVersion",
"org.mortbay.jetty:jetty-naming:$jettyVersion",
"org.mortbay.jetty:jetty-plus:$jettyVersion",
'javax.servlet:servlet-api:2.5',
'javax.mail:mail:1.4']
compile providedDeps
runtime 'org.neo4j:neo4j-kernel:1.3.M05'
}
// filtering resources
processResources {
// copy the rest and filter
from(sourceSets.main.resources.srcDirs) {
filter(ReplaceTokens, tokens: [xinlvVersion: project.version])
include '**/*.xml'
}
// copy images
from(sourceSets.main.resources.srcDirs) {
exclude '**/*.xml'
}
}