forked from cbeams/distyles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (59 loc) · 1.82 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
configure(subprojects) {
group = 'org.springframework.samples.distyles'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
repositories {
maven { url "http://repo.springsource.org/libs-release" }
}
ext.springVersion = '3.1.1.RELEASE'
dependencies {
compile "org.springframework:spring-jdbc:${springVersion}"
compile 'hsqldb:hsqldb:1.8.0.10'
compile 'log4j:log4j:1.2.16'
testCompile 'junit:junit:4.9'
}
eclipse {
project {
natures 'org.springframework.ide.eclipse.core.springnature'
buildCommand 'org.springframework.ide.eclipse.core.springbuilder'
}
}
sourceSets {
main {
java.srcDirs = ['src/main']
resources.srcDirs = ['src/main']
}
test {
java.srcDirs = ['src/test']
resources.srcDirs = ['src/test']
}
}
sourceCompatibility=1.6
targetCompatibility=1.6
// show all compiler warnings
[compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:all']
task runTransferScript(type: JavaExec) {
description = 'Run the TransferScript main() method'
main = 'com.bank.app.TransferScript'
classpath = sourceSets.main.runtimeClasspath
}
}
configure([project(':style-3-autowired'),
project(':style-4-javaconfig'),
project(':style-5-hybrid')]) {
dependencies {
// for @ContextConfiguration testing support
testCompile "org.springframework:spring-test:${springVersion}"
}
}
configure([project(':style-4-javaconfig'),
project(':style-5-hybrid')]) {
dependencies {
// for @Configuration class support
compile 'cglib:cglib-nodep:2.2'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.0-rc-3'
}