Initial setup
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
maven {
|
||||
url "https://plugins.gradle.org/m2/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.7'
|
||||
//classpath 'org.asciidoctor:asciidoctorj-epub3:1.5.0-alpha.6'
|
||||
classpath ('org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16') {
|
||||
exclude group: 'org.jruby'
|
||||
}
|
||||
classpath 'org.jruby:jruby:9.1.17.0'
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'org.asciidoctor.convert'
|
||||
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
description = 'Kalorien Manager Application'
|
||||
|
||||
final BUILD_DATE = new Date().format('dd.MM.yyyy').toString()
|
||||
|
||||
asciidoctorj {
|
||||
version = '1.6.0-alpha.7'
|
||||
}
|
||||
|
||||
asciidoctor {
|
||||
backends 'html5', 'pdf'
|
||||
attributes 'build-gradle': file('build.gradle'),
|
||||
'source-highlighter': 'coderay',
|
||||
'toc': 'left',
|
||||
'toc-title': 'Inhaltsverzeichnis',
|
||||
'revdate': BUILD_DATE,
|
||||
'revnumber': version,
|
||||
'idprefix': 'id_',
|
||||
'chapter-label': '',
|
||||
'icons': 'font',
|
||||
'setanchors': '',
|
||||
'idseparator': '-',
|
||||
'endpoint-url': 'http://www.ingenieurbuero-peetz.de',
|
||||
'imagesdir': './images',
|
||||
'docinfo1': ''
|
||||
}
|
||||
|
||||
build.dependsOn(['asciidoctor'])
|
||||
|
||||
wrapper {
|
||||
gradleVersion = "5.2"
|
||||
}
|
||||
Reference in New Issue
Block a user