forked from OpenEMS/openems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
38 lines (35 loc) · 988 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
plugins {
id "com.github.node-gradle.node" version "1.3.0"
}
/*
* Javadoc
*/
task aggregatedJavadocs(type: Javadoc, description: 'Generate javadocs from all child projects as if it was a single project', group: 'Documentation') {
destinationDir = file("$buildDir/www/javadoc")
title = "OpenEMS Javadoc"
subprojects.each { proj ->
proj.tasks.withType(Javadoc).each { javadocTask ->
source += javadocTask.source
classpath += javadocTask.classpath
excludes += javadocTask.excludes
includes += javadocTask.includes
}
}
}
/*
* Antora docs
*/
node {
nodeModulesDir = file("${projectDir}/doc/build")
}
task antora(type: NodeTask) {
dependsOn npmInstall
script = file("doc/build/node_modules/@antora/cli/bin/antora")
args = ["doc/build/site.yml"]
doLast {
copy {
from "doc/build/.nojekyll", "doc/build/CNAME"
into "${buildDir}/www"
}
}
}