Update Gradle wrapper to 6.3 and Asciidoctor to 3.3.2

This commit is contained in:
2022-05-16 15:00:16 +02:00
parent 009463c00c
commit e85a508652
5 changed files with 70 additions and 45 deletions
+62 -39
View File
@@ -1,51 +1,74 @@
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'
}
plugins {
id 'org.asciidoctor.jvm.pdf' version '3.3.2'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'org.asciidoctor.jvm.gems' version '3.3.2'
id 'maven-publish'
}
apply plugin: 'org.asciidoctor.convert'
repositories {
jcenter()
ruby.gems()
}
version = '0.0.1-SNAPSHOT'
description = 'Kalorien Manager Application'
dependencies {
asciidoctorGems 'rubygems:rouge:3.15.0'
asciidoctorGems 'rubygems:asciidoctor-diagram:2.2.2'
}
final BUILD_DATE = new Date().format('dd.MM.yyyy').toString()
asciidoctorj {
version = '1.6.0-alpha.7'
def pdfFile = layout.buildDirectory.file("docs/asciidocPdf/" + project.name + ".pdf")
def pdfArtifact = artifacts.add('archives', pdfFile.get().asFile) {
type 'pdf'
builtBy asciidoctorPdf
}
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.thpeetz.de',
'imagesdir': './images',
'docinfo1': ''
publishing {
publications {
maven(MavenPublication) {
artifactId = project.name
artifact pdfArtifact
}
}
repositories {
maven {
url "https://gitlab.thpeetz.de/api/v4/projects/${projectId}/packages/maven"
credentials(HttpHeaderCredentials) {
name = "Private-Token"
value = gitLabPrivateToken
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
build.dependsOn(['asciidoctor'])
asciidoctorPdf {
dependsOn asciidoctorGemsPrepare
baseDirFollowsSourceFile()
asciidoctorj {
requires 'rouge', 'asciidoctor-diagram'
attributes 'build-gradle': file('build.gradle'),
'endpoint-url': 'https://www.thpeetz.de',
'source-highlighter': 'rouge',
'imagesoutdir': "$buildDir/asciidoc/pdf/images",
'imagesdir': "$buildDir/asciidoc/pdf/images",
'toc': 'left',
'toc-title': 'Inhaltsverzeichnis',
'revdate': BUILD_DATE,
'revnumber': { project.version.toString() },
'revremark': 'Entwurf',
'chapter-label': '',
'icons': 'font',
'idprefix': 'id_',
'idseparator': '-',
'docinfo1': ''
}
}
wrapper {
gradleVersion = "5.6.1"
gradleVersion = "6.3"
}
+5
View File
@@ -0,0 +1,5 @@
description='Kalorienmanager'
version=1.0.0-SNAPSHOT
group=de.thpeetz.docs
gitLabPrivateToken=bFcsw1ebNhoFgKysksU1
projectId=53
+1 -1
View File
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+1 -1
View File
@@ -1,2 +1,2 @@
rootProject.name = "Kalorienmanager"
rootProject.name = "kalorienmanager"