-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
134 lines (118 loc) · 4.96 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'war'
apply from: 'gradle/compress-webrsc.gradle'
apply from: 'gradle/zip-all.gradle'
group = 'com.civilizer'
description = """Civilizer"""
sourceCompatibility = 1.7
targetCompatibility = 1.7
ext {
explodedWarDir = file("${buildDir}/civilizer-war")
springVersion = '4.2.0.RELEASE'
springSecurityVersion = '3.2.9.RELEASE'
slf4jVersion = '1.6.6'
jettyVersion = '9.3.0.M2'
}
configurations {
jettyRunner { transitive = false }
}
repositories {
mavenCentral()
maven { url "http://download.java.net/maven/2/" }
maven { url "http://repository.primefaces.org" }
maven { url "https://repository.jboss.org/nexus/content/repositories/releases" }
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile ("org.apache.commons:commons-lang3:3.3.2") { force = true }
compile ("commons-io:commons-io:2.4") { force = true }
compile ("commons-fileupload:commons-fileupload:1.3.1") { force = true }
compile ("aspectj:aspectjrt:1.5.4") { force = true }
compile ("org.springframework:spring-context:${springVersion}") {
exclude(module: 'commons-logging')
force = true
}
compile ("org.springframework:spring-core:${springVersion}") { force = true }
compile ("org.springframework:spring-beans:${springVersion}") { force = true }
compile ("org.springframework:spring-aop:${springVersion}") { force = true }
compile ("org.springframework:spring-webmvc:${springVersion}") { force = true }
compile ("org.springframework:spring-web:${springVersion}") { force = true }
compile ("org.springframework:spring-expression:${springVersion}") { force = true }
compile ("org.springframework:spring-jdbc:${springVersion}") { force = true }
compile ("org.springframework:spring-orm:${springVersion}") { force = true }
compile ("org.hibernate:hibernate-entitymanager:4.2.0.Final") { force = true }
compile ("org.hibernate:hibernate-validator:4.2.0.Final") { force = true }
compile ("com.h2database:h2:1.4.193") { force = true }
compile ("javax.validation:validation-api:1.0.0.GA") { force = true }
compile ("joda-time:joda-time:2.0") { force = true }
compile ("org.jadira.usertype:usertype.core:4.0.0.GA") { force = true }
compile ("org.slf4j:slf4j-api:1.6.6") { force = true }
compile ("javax.inject:javax.inject:1") { force = true }
compile ("javax.servlet:jstl:1.2") { force = true }
compile ("org.springframework.webflow:spring-faces:2.4.2.RELEASE") { force = true }
compile ("org.springframework.security:spring-security-web:${springSecurityVersion}") { force = true }
compile ("org.springframework.security:spring-security-config:${springSecurityVersion}") { force = true }
compile ("javax.el:el-api:2.2") { force = true }
compile ("org.glassfish.web:el-impl:2.2") { force = true }
compile ("org.primefaces:primefaces:6.0") { force = true }
compile ("org.primefaces.themes:all-themes:1.0.9") { force = true }
compile ("org.apache.myfaces.core:myfaces-api:2.2.8") { force = true }
compile ("org.apache.myfaces.core:myfaces-impl:2.2.8") { force = true }
compile ("log4j:log4j:1.2.15") {
exclude(module: 'mail')
exclude(module: 'jms')
exclude(module: 'jmxtools')
exclude(module: 'jmxri')
}
runtime ("org.slf4j:jcl-over-slf4j:1.6.6") { force = true }
runtime ("org.slf4j:slf4j-log4j12:1.6.6") { force = true }
testCompile ("junit:junit:4.10") { force = true }
providedCompile ("javax.servlet:servlet-api:2.5") { force = true }
jettyRunner ("org.eclipse.jetty:jetty-runner:${jettyVersion}") { force = true }
// mandatory dependencies for using Spock
compile "org.codehaus.groovy:groovy-all:2.4.6"
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
// optional dependencies for using Spock
testRuntime "cglib:cglib-nodep:3.1" // allows mocking of classes (in addition to interfaces)
testRuntime "org.objenesis:objenesis:2.1" // allows mocking of classes without default constructor (together with CGLIB)
}
sourceSets {
extra {
compileClasspath += sourceSets.main.output
compileClasspath += sourceSets.main.compileClasspath
compileClasspath += fileTree(dir: "${projectDir}", include: "extra/lib/*.jar")
copy {
from configurations.jettyRunner
into "${projectDir}/extra/lib"
rename { "jetty-runner.jar" }
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.extraClasses << {
copy {
from "${buildDir}/classes/extra"
into "${buildDir}/extra"
}
}
task explodedWar(type: Copy) {
into explodedWarDir
with war
}
//test {
//testLogging {
//events "passed", "skipped", "failed", "standardOut", "standardError"
//}
//}
war {
exclude "**/extra/**"
exclude "**/jetty-*"
dependsOn = [ explodedWar, extraClasses ]
}
task all {
dependsOn = [ clean, zipAll ]
}