Files
generations/build.gradle
T
2020-06-13 15:38:06 +02:00

50 lines
1000 B
Groovy

plugins {
id 'org.asciidoctor.jvm.pdf' version '3.1.0'
id 'org.asciidoctor.jvm.gems' version '3.1.0'
}
apply plugin: 'java'
description = 'Introduction to documentation'
version = '1.0.0-SNAPSHOT'
repositories {
jcenter()
ruby.gems()
}
dependencies {
asciidoctorGems 'rubygems:rouge:3.15.0'
}
final BUILD_DATE = new Date().format('dd.MM.yyyy').toString()
final DOK_VERSION = version
asciidoctorPdf {
dependsOn asciidoctorGemsPrepare
baseDirFollowsSourceFile()
asciidoctorj {
attributes 'build-gradle': file('build.gradle'),
'revdate': BUILD_DATE,
'revnumber': DOK_VERSION,
'endpoint-url': 'http://www.ingenieurbuero-peetz.de',
'imagesdir': './images',
'toc-title': 'Inhaltsverzeichnis',
'chapter-label': '',
'icons': 'font',
'idprefix': 'id_',
'idseparator': '-',
'setanchors': '',
'docinfo1': ''
}
}
task asciidoctor(dependsOn: asciidoctorPdf)
build.dependsOn(['asciidoctor'])
wrapper {
gradleVersion = "6.3"
}