Update Gradle Wrapper to version 5.2
Add Asciidoctor to build.
This commit is contained in:
+49
-5
@@ -1,14 +1,58 @@
|
||||
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'
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'project-report'
|
||||
|
||||
group = 'com.ibtp'
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = '5.2'
|
||||
asciidoctorj {
|
||||
version = '1.6.0-alpha.7'
|
||||
}
|
||||
|
||||
group 'com.ibtp.versabundus'
|
||||
description = 'Project Versabundus: Implementierung von Rolit in Java'
|
||||
version = '0.0.1-SNAPSHOT'
|
||||
|
||||
final BUILD_DATE = new Date().format('dd.MM.yyyy').toString()
|
||||
|
||||
asciidoctor {
|
||||
//backends 'html5', 'pdf', 'epub3', 'docbook'
|
||||
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': ''
|
||||
}
|
||||
|
||||
wrapper {
|
||||
gradleVersion = "5.2"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user