-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (39 loc) · 983 Bytes
/
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
47
apply plugin: "idea"
apply plugin: "java"
repositories {
mavenCentral()
maven { url "http://maven2.gueck.com/releases" }
// Spock snapshots are available from the Sonatype OSS snapshot repository
maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
}
project.ext {
spockVersion = '0.7-groovy-2.0'
groovyVersion = "2.2.1"
}
dependencies {
compile "mikaelhg:urlbuilder:1.3.2"
testCompile "org.codehaus.groovy:groovy-all:$groovyVersion"
testCompile "org.spockframework:spock-core:$spockVersion"
}
idea.project.ipr {
beforeMerged { project ->
project.modulePaths.clear()
}
}
idea.module.iml {
withXml {
it.node.@type = "PLUGIN_MODULE"
}
}
task setup {
dependsOn ideaModule, ideaProject
doLast {
copy {
from '.'
into '.idea/'
include '*.ipr'
rename { "modules.xml" }
}
project.delete "${project.name}.ipr"
}
}