Skip to content

Commit

Permalink
Update toolchain; remove gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderschramm1992 committed Feb 21, 2025
1 parent 7b23120 commit 8da0bf6
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 558 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.DS_Store

.gradle
gradlew
gradlew.bat
gradle/
build
.idea
topic-backlog-expert-level.iml
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "license-copyright"]
path = license-copyright
url = https://github.com/isaqb-org/license-copyright
[submodule "gradle-tools"]
path = gradle-tools
url = https://github.com/isaqb-org/gradle-tools
5 changes: 1 addition & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ Create an issue, a merge- or pull-request
== How to build the documents
Prerequisite: You need a Java Runtime(tm) installed.

You build the output documents with gradle:
[source,console]
$ ./gradlew buildDocs

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

In case you want to change that, adjust the following part of `build.gradle`:
Expand Down
44 changes: 4 additions & 40 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,42 +1,6 @@
import java.text.SimpleDateFormat

plugins {
id "java"
id "application"
}

def group = "org.isaqb"
def releaseVersion = System.getenv("RELEASE_VERSION")
def localVersion = "LocalBuild"
project.version = releaseVersion == null ? localVersion : releaseVersion
def curriculumFileName = "topic-backlog-expert-level"
def versionDate = new SimpleDateFormat("yyyyMMdd").format(new Date())
def languages = ["DE", "EN"]

repositories {
mavenCentral()
}

dependencies {
implementation("org.asciidoctor:asciidoctorj:2.5.10")
implementation("org.asciidoctor:asciidoctorj-pdf:2.3.9")
}

application {
mainClass.set("org.isaqb.asciidoc.Main")
applicationDefaultJvmArgs = [
"""-DprojectVersion=${project.version}""",
"""-DcurriculumFileName=${curriculumFileName}""",
"""-DversionDate=${versionDate}""",
"""-Dlanguages=${languages.join(',')}""",
"""--add-opens""", """java.base/sun.nio.ch=ALL-UNNAMED""",
"""--add-opens""", """java.base/java.io=ALL-UNNAMED"""]
}

tasks.register('buildDocs') {
description = 'Grouping task for generating all languages in several formats'
group = 'documentation'
dependsOn "run"
ext {
curriculumFileName = "curriculum-foundation"
languages = ["DE", "EN"]
}

defaultTasks "buildDocs"
defaultTasks 'buildDocs'
1 change: 1 addition & 0 deletions gradle-tools
Submodule gradle-tools added at 96b90b
1 change: 0 additions & 1 deletion gradle.properties

This file was deleted.

Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 0 additions & 7 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

249 changes: 0 additions & 249 deletions gradlew

This file was deleted.

Loading

0 comments on commit 8da0bf6

Please sign in to comment.