1
1
buildscript {
2
2
repositories {
3
3
mavenCentral()
4
- maven { url " https://plugins.gradle.org/m2/" }
4
+ maven {
5
+ url " https://plugins.gradle.org/m2/"
6
+ }
7
+ maven {
8
+ name = ' ajoberstar-backup'
9
+ url = ' https://ajoberstar.org/bintray-backup/'
10
+ }
5
11
}
6
12
dependencies {
7
13
classpath " org.asciidoctor:asciidoctor-maven-plugin:${ project.asciiDoctorMavenPluginVersion} "
@@ -25,14 +31,15 @@ repositories {
25
31
maven {
26
32
url " https://oss.sonatype.org/content/repositories/snapshots"
27
33
}
34
+ maven { url ' https://jitpack.io' }
28
35
}
29
36
30
37
dependencies {
31
- testCompile " io.vavr:vavr:${ project.version} "
32
- testCompile " junit:junit:4.11"
33
- testCompile " org.assertj:assertj-core:3.0.0"
34
- testCompile " ch.qos.logback:logback-classic:0.9.26"
35
- testCompile " org.mockito:mockito-core:1.10.19"
38
+ testImplementation " io.vavr:vavr:${ project.version} "
39
+ testImplementation " junit:junit:4.11"
40
+ testImplementation " org.assertj:assertj-core:3.0.0"
41
+ testImplementation " ch.qos.logback:logback-classic:0.9.26"
42
+ testImplementation " org.mockito:mockito-core:1.10.19"
36
43
}
37
44
38
45
compileJava {
@@ -51,14 +58,18 @@ asciidoctor {
51
58
sourceDir = file(' src/docs/asciidoc' )
52
59
outputDir = file(" $buildDir /docs/asciidoc" )
53
60
61
+ options backend : ' html5'
62
+
54
63
baseDirFollowsSourceDir()
55
64
65
+ attributes(
66
+ ' project-version' : project. version
67
+ )
68
+
56
69
sources {
57
70
include ' index.adoc'
58
71
}
59
- outputOptions {
60
- backends = [' html5' ]
61
- }
72
+
62
73
resources {
63
74
from(sourceDir) {
64
75
include ' images/**'
@@ -72,7 +83,7 @@ tasks.withType(Copy).configureEach {
72
83
73
84
tasks. register(' copyCNAME' , Copy ) {
74
85
from ' CNAME'
75
- into file(asciidoctor. outputDir. path + ' /html5 ' )
86
+ into file(asciidoctor. outputDir. path)
76
87
}
77
88
78
89
// asciidoctor.dependsOn test
@@ -88,7 +99,7 @@ githubPages {
88
99
}
89
100
90
101
pages {
91
- from file(asciidoctor. outputDir. path + ' /html5 ' )
102
+ from file(asciidoctor. outputDir. path)
92
103
// into project.version
93
104
}
94
105
}
0 commit comments