From 796217a67643defe7ad74b30d7d12c897e1eb880 Mon Sep 17 00:00:00 2001 From: Peter Niederwieser Date: Thu, 1 Mar 2012 03:16:07 +0100 Subject: [PATCH] build polishing --- build.gradle | 3 +++ gradle/ide.gradle | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 2772b85..cf64dbe 100755 --- a/build.gradle +++ b/build.gradle @@ -3,6 +3,9 @@ apply plugin: "groovy" version = "0.6-SNAPSHOT" description = "Spock Framework - Example Project" +// Spock works with Java 1.5 and above +sourceCompatibility = 1.5 + repositories { // Spock releases are available from Maven Central mavenCentral() diff --git a/gradle/ide.gradle b/gradle/ide.gradle index 32069d0..5ef6b2a 100644 --- a/gradle/ide.gradle +++ b/gradle/ide.gradle @@ -1,13 +1,14 @@ apply plugin: "idea" apply plugin: "eclipse" -def gitIgnoreDirs = files(file(".gitignore").readLines().findAll { !it.trim().startsWith("#") && it.trim().endsWith("/") }) +def gitIgnore = file(".gitignore").readLines() +def gitIgnoreDirs = gitIgnore*.trim().findAll { !it.startsWith("#") && it.endsWith("/") } idea { project { jdkName "1.6" configure(modules) { - excludeDirs = gitIgnoreDirs as Set + excludeDirs = files(gitIgnoreDirs) as Set } ipr { withXml { provider ->