Skip to content

Commit

Permalink
Make the build work
Browse files Browse the repository at this point in the history
  • Loading branch information
jbartok committed Sep 13, 2024
1 parent 818d998 commit 312e3c6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 6 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
`kotlin-dsl`
id("org.gradle.kotlin-dsl.ktlint-convention") version "0.4.1"
id("org.gradle.kotlin-dsl.ktlint-convention") version "0.6.0"
}

repositories {
Expand All @@ -10,8 +10,12 @@ repositories {

dependencies {
implementation(kotlin("gradle-plugin"))
implementation("org.asciidoctor:asciidoctor-gradle-plugin:1.5.9.1")
implementation("org.ajoberstar:gradle-git-publish:0.3.3")

implementation("org.asciidoctor:asciidoctor-gradle-plugin:1.6.1")
constraints {
implementation("org.ysb33r.gradle:grolifant:0.12.1")
}
}

kotlinDslPluginOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ class UserGuidePlugin : Plugin<Project> {
fun Project.configureAsciidoctorTask() {
val asciidoctor by tasks.existing(AsciidoctorTask::class) {
sourceDir = file("src/docs/asciidoc")
sources(delegateClosureOf<PatternSet> {
include("index.adoc")
})
sources(
delegateClosureOf<PatternSet> {
include("index.adoc")
}
)

attributes(
mapOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public void execute(FileCopyDetails fileCopyDetails) {
public String apply(File input) {
calculateRenames();
String rename = renames.get(input);
if (rename!=null) {
if (rename != null) {
return rename;
}
return input.getName();
Expand Down

0 comments on commit 312e3c6

Please sign in to comment.