Skip to content

Commit 8902852

Browse files
Merge pull request #40 from isaqb-org/update-toolchain
Update toolchain
2 parents edcdb3f + 155c0fc commit 8902852

13 files changed

Lines changed: 15 additions & 662 deletions

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ advanced-template.iml
99
.settings
1010
.vscode/settings.json
1111
learning-objectives.adoc
12-
resources/-Modul-ADOK-1.6.revHEAD.docx
12+
gradle/wrapper/gradle-wrapper.properties
13+
gradle/wrapper/gradle-wrapper.jar
14+
gradlew
15+
gradlew.bat

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "license-copyright"]
88
path = license-copyright
99
url = https://github.com/isaqb-org/license-copyright
10+
[submodule "gradle-tools"]
11+
path = gradle-tools
12+
url = https://github.com/isaqb-org/gradle-tools

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ git clone https://github.com/isaqb-org/curriculum-adoc.git --recursive
6161
== How to Build the Documents
6262
Prerequisite: You need a Java Runtime(tm) 17 or higher installed.
6363

64-
You build the output documents with gradle.
64+
You build the output documents with gradle: `./gradle-tools/gradlew buildDocs`
6565
That will produce both pdf and html output in German (DE) _and_ English (EN), unless you modify the configuration.
6666

6767

build.gradle

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,6 @@
1-
import java.text.SimpleDateFormat
2-
3-
plugins {
4-
id "java"
5-
id "application"
6-
}
7-
8-
def group = "org.isaqb"
9-
def releaseVersion = System.getenv("RELEASE_VERSION")
10-
def localVersion = "LocalBuild"
11-
project.version = releaseVersion == null ? localVersion : releaseVersion
12-
def curriculumFileName = "curriculum-adoc"
13-
def versionDate = new SimpleDateFormat("yyyyMMdd").format(new Date())
14-
def languages = ["DE", "EN"]
15-
16-
repositories {
17-
mavenCentral()
18-
}
19-
20-
dependencies {
21-
implementation("org.asciidoctor:asciidoctorj:2.5.10")
22-
implementation("org.asciidoctor:asciidoctorj-pdf:2.3.9")
23-
}
24-
25-
application {
26-
mainClass.set("org.isaqb.asciidoc.Main")
27-
applicationDefaultJvmArgs = [
28-
"""-DprojectVersion=${project.version}""",
29-
"""-DcurriculumFileName=${curriculumFileName}""",
30-
"""-DversionDate=${versionDate}""",
31-
"""-Dlanguages=${languages.join(',')}""",
32-
"""--add-opens""", """java.base/sun.nio.ch=ALL-UNNAMED""",
33-
"""--add-opens""", """java.base/java.io=ALL-UNNAMED"""]
34-
}
35-
36-
apply from: 'scripts/includeLearningObjectives.gradle'
37-
38-
tasks.register('buildDocs') {
39-
description = 'Grouping task for generating all languages in several formats'
40-
group = 'documentation'
41-
dependsOn "includeLearningObjectives", "run"
1+
ext {
2+
curriculumFileName = "curriculum-adoc"
3+
languages = ["DE", "EN"]
424
}
435

44-
defaultTasks "buildDocs"
6+
defaultTasks 'buildDocs'

gradle-tools

Submodule gradle-tools added at 96b90ba

gradle/wrapper/gradle-wrapper.jar

-42.5 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 7 deletions
This file was deleted.

gradlew

Lines changed: 0 additions & 252 deletions
This file was deleted.

0 commit comments

Comments
 (0)