-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (53 loc) · 1.34 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
plugins {
id "org.asciidoctor.jvm.convert" version "3.3.1"
id "org.asciidoctor.jvm.pdf" version "3.3.1"
}
description = "AsciiDoc Sample"
configurations {
documentation
}
dependencies {
}
asciidoctor {
sourceDir file('src/docs/asciidoc')
sources {
include "index.adoc"
}
}
asciidoctorPdf {
sourceDir file('src/docs/asciidoc')
sources {
include "index.adoc"
}
attributes 'pdf-style' : 'src/docs/theme/KaiGenGothicKR-theme.yml',
'pdf-fontsdir' : 'src/docs/theme'
}
task zip(type: Zip) {
dependsOn asciidoctor, asciidoctorPdf
duplicatesStrategy "fail"
from(asciidoctorPdf.outputDir) {
into "reference/pdf"
rename "index.pdf", "${project.name}-reference.pdf"
}
from(asciidoctor.outputDir) {
into "reference/htmlsingle"
}
}
artifacts {
"documentation" zip
}
allprojects {
group "io.datadynamics.asciidoc"
repositories {
mavenCentral()
if (version.contains('-')) {
maven { url "http://nexus.data-dynamics.io/repository/maven-public" }
}
if (version.endsWith('-SNAPSHOT')) {
maven { url "http://nexus.data-dynamics.io/repository/maven-public" }
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, "minutes"
}
}