forked from arc42/arc42-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
44 lines (33 loc) · 968 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
43
44
// this is a local build file, used for debugging purposes only!
// YOU CANNOT CREATE DISTRIBUTIONS WITH IT
//
plugins {
id 'org.asciidoctor.jvm.convert' version '3.3.0'
}
apply plugin: 'java'
// what language are we building
// current choices: EN, DE, IT, ES, RU
// for RU, you might need to set different encoding options
def LANGUAGE = 'EN'
// what version of the template are we building here
version = "8.0.0-${LANGUAGE}-LOCAL-BUILD"
repositories {
mavenCentral()
}
// not found: /Users/gernotstarke/projects/arc42/arc42-template/src/config.adoc
asciidoctor {
baseDir file('./')
baseDirFollowsSourceDir()
sourceDir file("${LANGUAGE}/asciidoc")
sources{ include 'arc42-template.adoc' }
options = [
includedir: "./${LANGUAGE}/asciidoc/",
imagesdir: '../images'
]
outputDir = file( "build/${LANGUAGE}" )
resources {
from('./') {
include 'images/**'
}
}
}