-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (39 loc) · 1.09 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.ajoberstar:gradle-git:0.7.1'
classpath 'me.champeau.gradle:jbake-gradle-plugin:0.2'
classpath 'org.jbake:jbake-core:2.4.0'
classpath 'org.asciidoctor:asciidoctorj:1.5.2'
classpath 'org.thymeleaf:thymeleaf:2.1.3.RELEASE'
classpath 'org.thymeleaf.extras:thymeleaf-extras-conditionalcomments:2.1.1.RELEASE'
classpath 'org.pegdown:pegdown:1.4.2'
}
}
apply plugin: 'me.champeau.jbake'
apply plugin: 'github-pages'
def siteDir = "$buildDir/site"
defaultTasks 'jbake'
jbake {
clearCache = true
input = file("$projectDir")
output = file("$siteDir")
}
githubPages {
repoUri = 'https://github.com/beelin/beelin.github.io.git'
targetBranch = 'master'
pages {
from(file("$siteDir")) {
into '.'
}
}
credentials {
// username = xxxx
password = ''
}
}
publishGhPages.dependsOn jbake
task publish(dependsOn: publishGhPages, group: 'render',
description: "Publishes buildDir to Github Pages on 'master' branch")