build polishing
This commit is contained in:
@@ -3,6 +3,9 @@ apply plugin: "groovy"
|
|||||||
version = "0.6-SNAPSHOT"
|
version = "0.6-SNAPSHOT"
|
||||||
description = "Spock Framework - Example Project"
|
description = "Spock Framework - Example Project"
|
||||||
|
|
||||||
|
// Spock works with Java 1.5 and above
|
||||||
|
sourceCompatibility = 1.5
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
// Spock releases are available from Maven Central
|
// Spock releases are available from Maven Central
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
+3
-2
@@ -1,13 +1,14 @@
|
|||||||
apply plugin: "idea"
|
apply plugin: "idea"
|
||||||
apply plugin: "eclipse"
|
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 {
|
idea {
|
||||||
project {
|
project {
|
||||||
jdkName "1.6"
|
jdkName "1.6"
|
||||||
configure(modules) {
|
configure(modules) {
|
||||||
excludeDirs = gitIgnoreDirs as Set
|
excludeDirs = files(gitIgnoreDirs) as Set
|
||||||
}
|
}
|
||||||
ipr {
|
ipr {
|
||||||
withXml { provider ->
|
withXml { provider ->
|
||||||
|
|||||||
Reference in New Issue
Block a user