-
-
Notifications
You must be signed in to change notification settings - Fork 954
/
Copy pathbuild.gradle
76 lines (58 loc) · 2.24 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import org.codehaus.groovy.ant.Groovy
plugins {
id 'groovy'
id 'java-library'
id 'project-report'
}
version = projectVersion
group = 'org.apache.grails'
configurations {
// Required to keep Gradle classes off the test compile classpath.
gradleConf.extendsFrom compileClasspath
}
dependencies {
implementation platform(project(':grails-bom'))
gradleConf gradleApi()
// grails-docs classes are used in Gradle builds,
// so we must compile with Groovy 3 until Gradle upgrades to Groovy 4.
compileOnly "org.codehaus.groovy:groovy:$GroovySystem.version"
compileOnly "org.codehaus.groovy:groovy-ant:$GroovySystem.version"
api "org.apache.commons:commons-text",
"org.slf4j:jcl-over-slf4j",
"org.apache.ant:ant",
"org.grails:grails-gdoc-engine",
"org.yaml:snakeyaml"
api "org.asciidoctor:asciidoctorj"
implementation "org.xhtmlrenderer:flying-saucer-pdf-openpdf:${project['flying-saucer-pdf-openpdf.version']}", {
// TODO: For some reason, this version is not being resolved from grails-bom
}
runtimeOnly "org.slf4j:slf4j-api"
api "org.jsoup:jsoup"
testImplementation("org.spockframework:spock-core") { transitive = false }
testImplementation 'org.apache.groovy:groovy-test-junit5'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.platform:junit-platform-runner'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
sourceSets {
main {
compileClasspath = configurations.gradleConf
}
}
tasks.register("docFilesJar", Jar) {
description = 'Package up files used for generating documentation.'
archiveVersion = null
archiveFileName = "grails-doc-files.jar"
from "src/main/template"
}
tasks.named('jar', Jar) {
from docFilesJar
}
jar.dependsOn docFilesJar
apply {
from rootProject.layout.projectDirectory.file('gradle/assemble-config.gradle')
from rootProject.layout.projectDirectory.file('gradle/docs-config.gradle')
from rootProject.layout.projectDirectory.file('gradle/java-config.gradle')
from rootProject.layout.projectDirectory.file('gradle/publish-config.gradle')
from rootProject.layout.projectDirectory.file('gradle/test-config.gradle')
}