-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (33 loc) · 903 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
39
40
41
42
plugins {
// See: https://asciidoctor.github.io/asciidoctor-gradle-plugin/master/user-guide/#_the_new_asciidoctorj_plugin
id 'org.asciidoctor.jvm.convert' version '3.1.0'
// See: https://github.com/ajoberstar/gradle-git-publish
id 'org.ajoberstar.git-publish' version '3.0.0-rc.1'
}
repositories {
jcenter()
}
defaultTasks 'asciidoctor'
asciidoctor {
baseDirFollowsSourceDir()
resources {
from(sourceDir) {
include 'images/**/*.png'
exclude 'images/**/*.drawio'
include 'README.md'
}
from(projectDir) {
include 'LICENSE.txt'
}
}
}
gitPublish {
repoUri = '[email protected]:pomes/pomes.github.io.git'
branch = 'master'
commitMessage = 'Publishing website update'
contents {
from asciidoctor.outputDir
}
preserve {}
}
gitPublishCopy.dependsOn asciidoctor