-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
115 lines (91 loc) · 2.98 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse-wtp'
apply plugin: 'jetty'
apply plugin: "findbugs"
group = 'tw.edu.ncu.cc'
description = """NCU OAuth management"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration-test/java')
}
resources.srcDir file('src/integration-test/resources')
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
compileIntegrationTestJava.options.encoding = 'UTF-8'
dependencies {
// springframework
compile 'org.springframework:spring-orm:4.1.5.RELEASE'
compile 'org.springframework:spring-tx:4.1.5.RELEASE'
compile 'org.springframework:spring-webmvc:4.1.5.RELEASE'
compile 'org.springframework:spring-context-support:4.1.6.RELEASE'
compile 'jstl:jstl:1.2'
compile 'javax.inject:javax.inject:1'
// json
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.4'
// database
compile 'com.zaxxer:HikariCP:2.3.5'
compile 'mysql:mysql-connector-java:5.1.35'
// hibernate
compile 'org.hibernate:hibernate-core:4.3.8.Final'
compile 'org.hibernate:hibernate-entitymanager:4.3.8.Final'
compile 'org.hibernate:hibernate-validator:5.1.3.Final'
// util
compile 'org.apache.commons:commons-collections4:4.0'
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'commons-io:commons-io:2.4'
compile 'joda-time:joda-time:2.7'
compile 'com.google.guava:guava:18.0'
// tiles
compile 'org.apache.tiles:tiles-core:3.0.4'
compile 'org.apache.tiles:tiles-jsp:3.0.4'
// log
compile 'org.slf4j:slf4j-log4j12:1.7.12'
// security
compile 'org.springframework.security:spring-security-openid:4.0.0.RELEASE'
compile 'org.springframework.security:spring-security-config:4.0.0.RELEASE'
compile 'org.springframework.security:spring-security-taglibs:4.0.0.RELEASE'
// test
compile 'org.springframework:spring-test:4.1.5.RELEASE'
compile 'org.mockito:mockito-core:1.10.19'
testCompile 'junit:junit:4.12'
integrationTestCompile 'org.hamcrest:hamcrest-library:1.3'
compile 'javax.servlet:javax.servlet-api:3.1.0'
//integrationTestCompile 'junit:junit:4.12'
//integrationTestCompile 'org.springframework:spring-test:4.1.5.RELEASE'
}
eclipse {
classpath {
plusConfigurations += [configurations.integrationTestCompile]
}
}
task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
}
check.dependsOn integrationTest
integrationTest.mustRunAfter test
tasks.withType(Test) {
reports.html.destination = file("${reporting.baseDir}/${name}")
}
tasks.withType(FindBugs) {
ignoreFailures = true
reports {
xml.enabled = false
html.enabled = true
}
}