forked from cbeams/distyles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (38 loc) · 1.34 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
group = 'org.springframework.samples'
version = '1.0.0.SNAPSHOT'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
repositories {
// TODO: add $HOME/.m2/repository for convenience
mavenCentral()
}
dependencies {
compile 'org.springframework:spring-context:3.0.3.RELEASE'
compile 'org.springframework:spring-jdbc:3.0.3.RELEASE'
compile 'cglib:cglib-nodep:2.2'
compile 'hsqldb:hsqldb:1.8.0.10'
compile 'commons-logging:commons-logging:1.1.1'
compile 'log4j:log4j:1.2.16'
compile 'javax.inject:javax.inject:1'
testCompile 'org.springframework:spring-test:3.0.3.RELEASE'
testCompile 'junit:junit:4.7'
}
// enable all compiler warnings (GRADLE-1077)
[compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:all']
// generate .classpath files without GRADLE_CACHE variable (GRADLE-1079)
eclipseClasspath.variables = [:]
task runTransferScript(type: JavaExec) {
group = 'Run'
description = 'Run the TransferScript main() method'
main = 'com.bank.app.TransferScript'
classpath = sourceSets.main.runtimeClasspath
}
task wrapper(type: Wrapper) {
group = 'Admin'
description = "Generates gradlew and gradlew.bat bootstrap scripts"
gradleVersion = '0.9-preview-3'
// place jar file and properties into a
// subdirectory to avoid root dir clutter
jarPath = 'src/build'
}