Update Asciidoctor build
This commit is contained in:
+18
@@ -1,6 +1,24 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
build/
|
build/
|
||||||
.gradle/
|
.gradle/
|
||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
.settings/
|
.settings/
|
||||||
bin/
|
bin/
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
.gradle/
|
||||||
|
build/
|
||||||
|
>>>>>>> Setup buildsystem
|
||||||
|
=======
|
||||||
|
build/
|
||||||
|
.gradle/
|
||||||
|
.classpath
|
||||||
|
.project
|
||||||
|
.settings/
|
||||||
|
bin/
|
||||||
|
>>>>>>> changed Gradle wrapper to version 2.5
|
||||||
|
=======
|
||||||
|
.vscode/
|
||||||
|
>>>>>>> update build.gradle
|
||||||
|
|||||||
@@ -1,9 +1,18 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
>>>>>>> Import sources
|
||||||
Create Application:
|
Create Application:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- chmod +x gradlew
|
- chmod +x gradlew
|
||||||
- ./gradlew build
|
- ./gradlew build
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
>>>>>>> update build.gradle
|
||||||
|
=======
|
||||||
|
>>>>>>> Import sources
|
||||||
Create Documentation:
|
Create Documentation:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
@@ -11,5 +20,15 @@ Create Documentation:
|
|||||||
- ./gradlew asciidoctor
|
- ./gradlew asciidoctor
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
<<<<<<< HEAD
|
||||||
- build/asciidoc/pdf/generations.pdf
|
- build/asciidoc/pdf/generations.pdf
|
||||||
|
|
||||||
|
=======
|
||||||
|
- build/docs/asciidocPdf/generations.pdf
|
||||||
|
|
||||||
|
Build Library:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- chmod +x gradlew
|
||||||
|
- ./gradlew publish
|
||||||
|
>>>>>>> update build.gradle
|
||||||
|
|||||||
Vendored
+86
@@ -1,10 +1,53 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
>>>>>>> Change Gradle build
|
||||||
|
=======
|
||||||
|
>>>>>>> add integration of Jenkins and Nexus
|
||||||
|
=======
|
||||||
|
>>>>>>> Imported documentation from repository scriptorium
|
||||||
properties([
|
properties([
|
||||||
gitLabConnection('IBTP'),
|
gitLabConnection('IBTP'),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
node {
|
node {
|
||||||
stage("Checkout") {
|
stage("Checkout") {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
=======
|
||||||
|
// Build and test project generations with documentation
|
||||||
|
properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '5', artifactNumToKeepStr: '5', daysToKeepStr: '5', numToKeepStr: '5'))])
|
||||||
|
=======
|
||||||
|
>>>>>>> Change Gradle build
|
||||||
|
node {
|
||||||
|
stage("Checkout") {
|
||||||
|
checkout scm
|
||||||
|
<<<<<<< HEAD
|
||||||
|
>>>>>>> Import sources
|
||||||
|
withCredentials([usernamePassword(credentialsId: '201ea374-bda3-4a38-a18a-ccc9c39fb3ff', passwordVariable: 'ORG_GRADLE_PROJECT_nexusPassword', usernameVariable: 'ORG_GRADLE_PROJECT_nexusUsername')]) {
|
||||||
|
=======
|
||||||
|
}
|
||||||
|
gitlabBuilds(builds: ["build", "publish"]) {
|
||||||
|
stage("Build") {
|
||||||
|
gitlabCommitStatus("build") {
|
||||||
|
>>>>>>> Change Gradle build
|
||||||
|
sh "chmod +x gradlew"
|
||||||
|
sh "./gradlew clean build"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("Publish Build Results") {
|
||||||
|
gitlabCommitStatus("publish") {
|
||||||
|
archiveArtifacts allowEmptyArchive: true, artifacts: "build/asciidoc/pdf/*.pdf"
|
||||||
|
scanForIssues sourceCodeEncoding: 'UTF-8', tool: taskScanner(highTags: 'FIXME', ignoreCase: true, includePattern: 'src/**/*.adoc', normalTags: 'TODO')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<<<<<<< HEAD
|
||||||
|
>>>>>>> Replaced Slack notificatino with Telegram notification
|
||||||
}
|
}
|
||||||
gitlabBuilds(builds: ["build", "publish"]) {
|
gitlabBuilds(builds: ["build", "publish"]) {
|
||||||
stage("Build") {
|
stage("Build") {
|
||||||
@@ -21,3 +64,46 @@ node {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
=======
|
||||||
|
gradleBuild {}
|
||||||
|
>>>>>>> add integration of Jenkins and Nexus
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
}
|
||||||
|
}
|
||||||
|
>>>>>>> Import sources
|
||||||
|
=======
|
||||||
|
>>>>>>> add integration of Jenkins and Nexus
|
||||||
|
=======
|
||||||
|
=======
|
||||||
|
// Build and test project generations with documentation
|
||||||
|
properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '5', artifactNumToKeepStr: '5', daysToKeepStr: '5', numToKeepStr: '5'))])
|
||||||
|
node {
|
||||||
|
stage("Build") {
|
||||||
|
deleteDir()
|
||||||
|
checkout scm
|
||||||
|
withCredentials([usernamePassword(credentialsId: '201ea374-bda3-4a38-a18a-ccc9c39fb3ff', passwordVariable: 'ORG_GRADLE_PROJECT_nexusPassword', usernameVariable: 'ORG_GRADLE_PROJECT_nexusUsername')]) {
|
||||||
|
sh "chmod +x gradlew"
|
||||||
|
sh "./gradlew clean build asciidoctor -PnexusUrl=https://nexus.ingenieurbuero-peetz.de"
|
||||||
|
}
|
||||||
|
slackSend channel: '#devops', color: 'good', message: 'Build generations finished successfully', tokenCredentialId: 'slack-ibtpdev'
|
||||||
|
|
||||||
|
}
|
||||||
|
stage("Publish Build Results") {
|
||||||
|
junit allowEmptyResults: true, testResults: '**/build/test-results/**/*.xml'
|
||||||
|
openTasks canComputeNew: false, defaultEncoding: 'UTF-8', excludePattern: '', healthy: '', high: '', ignoreCase: true, low: '', normal: '', pattern: '*.gradle,**/*.java,**/*.adoc', unHealthy: ''
|
||||||
|
archiveArtifacts allowEmptyArchive: true, artifacts: "build/asciidoc/pdf/generations.pdf"
|
||||||
|
}
|
||||||
|
stage("Publish HTML") {
|
||||||
|
publishHTML(target: [
|
||||||
|
allowMissing: true,
|
||||||
|
alwaysLinkToLastBuild: true,
|
||||||
|
keepAll: false, reportDir: 'build/asciidoc/html5',
|
||||||
|
reportFiles: "generations.html",
|
||||||
|
reportName: "generations"
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
>>>>>>> Imported documentation from repository scriptorium
|
||||||
|
>>>>>>> Imported documentation from repository scriptorium
|
||||||
|
|||||||
+66
-25
@@ -1,44 +1,85 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'org.asciidoctor.jvm.pdf' version '3.1.0'
|
id 'org.asciidoctor.jvm.pdf' version '3.3.0'
|
||||||
id 'org.asciidoctor.jvm.gems' version '3.1.0'
|
id 'org.asciidoctor.jvm.gems' version '3.3.0'
|
||||||
|
id 'java'
|
||||||
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'java'
|
description = 'Anwendung Generations'
|
||||||
|
group = 'de.thpeetz.generations'
|
||||||
description = 'Introduction to documentation'
|
|
||||||
version = '1.0.0-SNAPSHOT'
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
ruby.gems()
|
ruby.gems()
|
||||||
|
maven {
|
||||||
|
url "https://gitlab.thpeetz.de/api/v4/packages/maven"
|
||||||
|
name "GitLab"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build.dependsOn(['asciidoctor'])
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
asciidoctorGems 'rubygems:rouge:3.15.0'
|
asciidoctorGems 'rubygems:rouge:3.15.0'
|
||||||
|
implementation 'org.slf4j:slf4j-api:1.7.22'
|
||||||
|
testImplementation 'junit:junit:4.12'
|
||||||
|
testImplementation 'org.mockito:mockito-all:1.9.5'
|
||||||
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
library(MavenPublication) {
|
||||||
|
from components.java
|
||||||
|
}
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url "https://gitlab.thpeetz.de/api/v4/projects/27/packages/maven"
|
||||||
|
credentials(HttpHeaderCredentials) {
|
||||||
|
name = "Private-Token"
|
||||||
|
value = gitLabPrivateToken
|
||||||
|
}
|
||||||
|
authentication {
|
||||||
|
header(HttpHeaderAuthentication)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final BUILD_DATE = new Date().format('dd.MM.yyyy').toString()
|
final BUILD_DATE = new Date().format('dd.MM.yyyy').toString()
|
||||||
final DOK_VERSION = version
|
|
||||||
|
jar {
|
||||||
|
manifest {
|
||||||
|
attributes 'Implementation-Title': 'Generations', 'Implementation-Version': version
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
|
||||||
asciidoctorPdf {
|
asciidoctorPdf {
|
||||||
dependsOn asciidoctorGemsPrepare
|
dependsOn asciidoctorGemsPrepare
|
||||||
|
baseDirFollowsSourceFile()
|
||||||
|
|
||||||
baseDirFollowsSourceFile()
|
asciidoctorj {
|
||||||
|
requires 'rouge'
|
||||||
asciidoctorj {
|
attributes 'build-gradle': file('build.gradle'),
|
||||||
attributes 'build-gradle': file('build.gradle'),
|
'endpoint-url': 'http://www.thpeetz.de',
|
||||||
'revdate': BUILD_DATE,
|
'source-highlighter': 'rouge',
|
||||||
'revnumber': DOK_VERSION,
|
'revdate': BUILD_DATE,
|
||||||
'endpoint-url': 'http://www.ingenieurbuero-peetz.de',
|
'revnumber': '1.0.0',
|
||||||
'imagesdir': './images',
|
'revremark': 'Entwurf',
|
||||||
'toc-title': 'Inhaltsverzeichnis',
|
'imagesdir': './images',
|
||||||
'chapter-label': '',
|
'toc': 'left',
|
||||||
'icons': 'font',
|
'toc-title': 'Inhaltsverzeichnis',
|
||||||
'idprefix': 'id_',
|
'chapter-label': '',
|
||||||
'idseparator': '-',
|
'icons': 'font',
|
||||||
'setanchors': '',
|
'idprefix': 'id_',
|
||||||
'docinfo1': ''
|
'idseparator': '-',
|
||||||
}
|
'docinfo1': ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task asciidoctor(dependsOn: asciidoctorPdf)
|
task asciidoctor(dependsOn: asciidoctorPdf)
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
version=1.0.0-SNAPSHOT
|
||||||
Vendored
BIN
Binary file not shown.
@@ -82,6 +82,7 @@ esac
|
|||||||
|
|
||||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
# Determine the Java command to use to start the JVM.
|
||||||
if [ -n "$JAVA_HOME" ] ; then
|
if [ -n "$JAVA_HOME" ] ; then
|
||||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||||
@@ -129,6 +130,7 @@ fi
|
|||||||
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
||||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||||
|
|
||||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||||
|
|
||||||
# We build the pattern for arguments to be converted via cygpath
|
# We build the pattern for arguments to be converted via cygpath
|
||||||
|
|||||||
Vendored
+4
-18
@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
|
|||||||
|
|
||||||
set JAVA_EXE=java.exe
|
set JAVA_EXE=java.exe
|
||||||
%JAVA_EXE% -version >NUL 2>&1
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto init
|
if "%ERRORLEVEL%" == "0" goto execute
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
@@ -54,7 +54,7 @@ goto fail
|
|||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||||
|
|
||||||
if exist "%JAVA_EXE%" goto init
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||||
@@ -64,28 +64,14 @@ echo location of your Java installation.
|
|||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
:init
|
|
||||||
@rem Get command-line arguments, handling Windows variants
|
|
||||||
|
|
||||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
|
||||||
|
|
||||||
:win9xME_args
|
|
||||||
@rem Slurp the command line arguments.
|
|
||||||
set CMD_LINE_ARGS=
|
|
||||||
set _SKIP=2
|
|
||||||
|
|
||||||
:win9xME_args_slurp
|
|
||||||
if "x%~1" == "x" goto execute
|
|
||||||
|
|
||||||
set CMD_LINE_ARGS=%*
|
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
|||||||
+1
-2
@@ -1,2 +1 @@
|
|||||||
rootProject.name = "generations"
|
rootProject.name="Generations"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
= Projektbeschreibung generations: Pflichtenheft der Anwendung generations
|
= Projektbeschreibung generations: Pflichtenheft der Anwendung generations
|
||||||
:author: Thomas Peetz
|
:author: Thomas Peetz
|
||||||
:email: <thomas.peetz@ingenieurbuero-peetz.de>
|
:email: <thomas.peetz@thpeetz.de>
|
||||||
:doctype: article
|
:doctype: article
|
||||||
:sectnums:
|
:sectnums:
|
||||||
:sectnumlevels: 4
|
:sectnumlevels: 4
|
||||||
|
|||||||
Reference in New Issue
Block a user