forked from eutro/MultiblockTweaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddon.gradle.kts
30 lines (28 loc) · 851 Bytes
/
addon.gradle.kts
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
tasks.register("copyExamples") {
doLast {
val scriptsDir = file("$projectDir/run/scripts")
val examplesDir = file("$projectDir/examples")
scriptsDir.deleteRecursively()
examplesDir.copyRecursively(scriptsDir)
}
}
tasks.named("runClient").configure {
dependsOn("copyExamples")
}
val javadoc: Javadoc by tasks
javadoc.apply {
exclude { el ->
el.file.isFile &&
(el.file.name != "package-info.java" &&
el.file.useLines { lines -> !lines.contains("@ZenRegister") })
}
setDestinationDir(file("docs/gtceu"))
(options as StandardJavadocDocletOptions).run {
locale("en")
tags!!.addAll(listOf(
"zenClass:a:ZenClass:",
"zenGetter:a:ZenGetter:",
"zenSetter:a:ZenSetter:"
))
}
}