-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
72 lines (59 loc) · 1.75 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
64
65
66
67
68
69
70
71
72
buildscript {
dependencies {
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.8'
}
}
plugins {
id 'org.ajoberstar.github-pages' version '1.1.0'
id 'org.asciidoctor.gradle.asciidoctor' version '1.5.1'
id 'org.asciidoctor.convert' version '1.5.2'
id 'com.github.jruby-gradle.base' version '0.1.5'
}
import org.asciidoctor.gradle.AsciidoctorTask
group 'at.martinahrer'
version '0.1'
dependencies {
gems 'rubygems:slim:2.1.0'
gems 'rubygems:thread_safe:0.3.4'
}
githubPages {
repoUri = 'git@github.com:MartinAhrer/fhs-mse-akt.git'
credentials {
username = project.hasProperty('githubToken') ? project.githubToken : ''
password = ''
}
pages {
from file(asciidoctor.outputDir.path + '/html5')
}
}
asciidoctor {
attributes 'build-gradle': file('build.gradle'),
'endpoint-url': 'http://example.org',
'source-highlighter': 'coderay',
'imagesdir': 'images',
'toc': 'left',
'icons': 'font',
'setanchors': 'true',
'idprefix': '',
'idseparator': '-',
'docinfo1': 'true'
}
publishGhPages.dependsOn asciidoctor
//build.dependsOn asciidoctor TODO: > Could not find property 'build' on root project 'mse-akt'. on cd server
task asciidoctorPdf (type: AsciidoctorTask, dependsOn: jrubyPrepareGems) {
sources {
include 'index.ad'
}
backends 'pdf'
attributes 'build-gradle': file('build.gradle'),
'endpoint-url': 'http://example.org',
'source-highlighter' : 'coderay',
'imagesdir':'./images',
'toc':'left',
'icons': 'font',
'setanchors':'true',
'idprefix':'',
'idseparator':'-',
'docinfo1':'true'
}
//build.dependsOn("asciidoctorPdf") TODO: -> see above