aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorShevek <[email protected]>2013-12-27 05:49:13 -0800
committerShevek <[email protected]>2013-12-27 05:49:13 -0800
commitbdc6c852f418c3e042aa41469d84544e5f60a526 (patch)
tree7866346f0fa48ad46a6a427d016dd4b83451dbbe /build.gradle
parent39264fd6d2a6646e49f83b5b2b3512c1663a1c9b (diff)
Version bump to 1.4.0-SNAPSHOT.
Rewrite build system to use gradle. Clean up source for the new generation.
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle66
1 files changed, 66 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..df4f9d3
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,66 @@
+// 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.${githubProjectName}"
+
+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: VelocityPlugin
+
+dependencies {
+ compile 'com.google.code.findbugs:jsr305:2.0.2'
+ compile 'gnu.getopt:java-getopt:1.0.13'
+ compile 'org.apache.ant:ant:1.7.0'
+
+ testCompile 'junit:junit:4.8.1'
+}
+
+velocity {
+ def p = project
+ context {
+ version = p.version
+ }
+}
+
+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"
+ }
+ }
+}