Update Gradle Wrapper to version 5.2

Add Asciidoctor to build.
This commit is contained in:
Thomas Peetz
2019-04-05 09:27:04 +02:00
parent d207184c2e
commit 00f6417c5e
5 changed files with 52 additions and 8 deletions
+49 -5
View File
@@ -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"
}