This repository has been archived by the owner on Mar 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
70 lines (59 loc) · 1.9 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
ext {
versions = [
grooid_new_library: new File('templates/grooid-new-library/VERSION').text.trim(),
grooid_new_project: new File('templates/grooid-new-project/VERSION').text.trim()
]
}
buildscript {
repositories {
jcenter()
maven { url "http://dl.bintray.com/pledbrook/plugins" }
}
dependencies {
classpath 'org.ajoberstar:gradle-git:1.4.2'
classpath "uk.co.cacoethes:lazybones-gradle:1.2.4"
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
}
}
apply plugin: 'uk.co.cacoethes.lazybones-templates'
apply plugin: 'org.asciidoctor.convert'
apply plugin: 'org.ajoberstar.github-pages'
lazybones {
repositoryName = "grooida/grooid-templates"
repositoryUsername = project.properties.bintrayUser
repositoryApiKey = project.properties.bintrayKey
publish=true
licenses = ["Apache-2.0"]
vcsUrl="https://github.com/grooida/grooid-templates"
}
asciidoctor {
sourceDir 'docs'
attributes 'source-highlighter' : 'prettify',
toc : 'left',
icons : 'font',
toclevels : 4,
stylesheet : 'css/style.css',
'pdf-style' : 'default',
'grooid-new-project' : versions.grooid_new_project,
'grooid-new-library' : versions.grooid_new_library
}
githubPages {
repoUri = 'https://github.com/grooida/grooid-templates.git'
deleteExistingFiles = true
pages {
from file('build/asciidoc/html5')
}
//https://github.com/ajoberstar/gradle-git/wiki/Travis-CI-Authentication
credentials {
username = project.properties.githubToken
password = ''
}
}
task copyResources(type: Copy) {
from ("docs") {
include 'css/**'
include 'imgs/**'
}
into("${buildDir}/asciidoc/html5")
}
asciidoctor.dependsOn copyResources