/
build.gradle
47 lines (41 loc) · 1.18 KB
/
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
configurations {
// Required to keep Gradle classes off the test compile classpath.
gradleConf.extendsFrom compile
}
dependencies {
gradleConf gradleApi()
compile "commons-lang:commons-lang:$commonsLangVersion",
"org.slf4j:jcl-over-slf4j:$slf4jVersion",
"org.apache.ant:ant:$antVersion",
'org.grails:grails-gdoc-engine:1.0.1',
'org.yaml:snakeyaml:1.8'
compile('org.xhtmlrenderer:core-renderer:R8') {
exclude group: 'bouncycastle', module:'bcprov-jdk14'
}
testCompile "junit:junit:$junitVersion"
testCompile("org.spockframework:spock-core:${spockVersion}") {
transitive = false
}
}
sourceSets {
main {
compileClasspath = configurations.gradleConf
}
}
task docFilesJar(type: Jar, description: 'Package up files used for generating documentation.') {
version = null
archiveName = "grails-doc-files.jar"
from "src/main/template"
doLast {
copy {
from docFilesJar.archivePath
into "${buildDir}/classes/main"
}
}
}
jar.dependsOn docFilesJar
eclipse {
classpath {
plusConfigurations += configurations.gradleConf
}
}