forked from nutzam/nutz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (55 loc) · 1.32 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
import org.gradle.api.file.FileCollection;
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
version = '1.r.58-SNAPSHOT'
sourceCompatibility = 1.6
targetCompatibility = 1.6
defaultTasks 'build'
buildDir = "target"
repositories {
mavenCentral()
}
sourceSets {
main{
java.srcDir "$projectDir/src"
}
test {
java.srcDirs "$projectDir/test"
resources.srcDir "$projectDir/test-prop"
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
dependencies {
compile "javax.servlet:servlet-api:2.5"
compile "log4j:log4j:1.2.17"
testCompile "commons-logging:commons-logging:1.1"
testCompile "commons-dbcp:commons-dbcp:1.4"
testCompile "com.h2database:h2:1.3.165"
testCompile "postgresql:postgresql:9.1-901-1.jdbc4"
testCompile "junit:junit:4.8.1"
testCompile "org.eclipse.jetty:jetty-webapp:7.6.8.v20121106"
testCompile "org.eclipse.jetty:jetty-jsp:7.6.8.v20121106"
}
processResources {
from ('src'){
exclude '**/*.java';
}
}
processTestResources {
from ('test'){
exclude '**/*.java';
}
}
test {
include "org/nutz/TestAll*"
jvmArgs "-Dfile.encoding=utf-8"
//showStackTraces = true
testLogging {
debug {
events "started", "skipped", "failed"
exceptionFormat "full"
}
}
}