aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
blob: ce1a8cdb01acac75497b2283fe6b06ac5b3a4c19 (plain)
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
// Establish version and status
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name
group = "org.anarres"

buildscript {
    repositories {
        // mavenLocal()
        mavenCentral() // maven { url 'http://jcenter.bintray.com' }
    }
    apply from: file('gradle/buildscript.gradle'), to: buildscript 
}

allprojects {
    repositories { 
        // mavenLocal()
        mavenCentral() // maven { url: 'http://jcenter.bintray.com' }
    }
}

apply plugin: 'idea'

apply from: file('gradle/convention.gradle')
apply from: file('gradle/maven.gradle')
apply from: file('gradle/check.gradle')
apply from: file('gradle/license.gradle')
// apply from: file('gradle/release.gradle')

apply plugin: 'application'
apply plugin: 'velocity'

dependencies {
    compile 'com.google.code.findbugs:jsr305:2.0.2'
	compile 'gnu.getopt:java-getopt:1.0.13'
	// compile 'net.sf.jopt-simple:jopt-simple:4.7'
	compile 'org.apache.ant:ant:1.7.0'

	testCompile 'junit:junit:4.11'
	// testCompile 'com.google.guava:guava:18.0'
	testCompile 'commons-logging:commons-logging:1.2'
}

velocity {
	def p = project
	Map m = [
		version: project.version
	]
	context m
}

test {
	systemProperty 'org.apache.commons.logging.Log', 'org.apache.commons.logging.impl.SimpleLog'
	systemProperty 'org.apache.commons.logging.simplelog.defaultlog', 'debug'

	testLogging {
		if (System.properties['test.single']) {
			// events "passed", "skipped", "failed"
			events "started", "passed", "skipped", "failed"
			showExceptions true
			exceptionFormat "full"
			showStandardStreams true
		} else {
			events "failed"
		}       

		debug { 
			events "started", "passed", "skipped", "failed", "standard_out", "standard_error"
			exceptionFormat "full"
		}       
	}       
}