From 7f2fdf569d5701c21266cc4a709e527bfacf5554 Mon Sep 17 00:00:00 2001 From: stansfieldj Date: Thu, 18 Jul 2024 13:35:50 +0100 Subject: [PATCH] Fix asciidoctor build by moving away from pygments highlighting to rouge highlighting --- build.gradle | 2 -- gradle/asciidoc.gradle | 11 +---------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index a26321e69..30f6b06d6 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,6 @@ plugins { id 'idea' id "io.github.reyerizo.gradle.jcstress" version "0.8.14" id 'org.asciidoctor.jvm.convert' version '3.3.2' - id 'org.asciidoctor.jvm.gems' version '3.3.2' id "me.champeau.jmh" version "0.6.8" id "biz.aQute.bnd.builder" version "6.3.1" } @@ -50,7 +49,6 @@ wrapper.gradleVersion = '7.6' repositories { mavenCentral() - ruby.gems() } sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11 diff --git a/gradle/asciidoc.gradle b/gradle/asciidoc.gradle index 5be911c12..42d61fd3d 100644 --- a/gradle/asciidoc.gradle +++ b/gradle/asciidoc.gradle @@ -2,14 +2,6 @@ // Configure ASCIIDoc publishing // -dependencies { - asciidoctorGems 'rubygems:pygments.rb:2.+' -} - -asciidoctorj { - requires("pygments") -} - asciidoctor { languages 'en' resources { @@ -28,7 +20,7 @@ asciidoctor { // the documents themselves - so to some degree it's pointless setting anything // at a document level. That said, IntelliJ IDEA doesn't know this, so it's // still kind of nice to have them at a document level so it doesn't complain! - attributes 'source-highlighter': 'pygments', + attributes 'source-highlighter': 'rouge', 'toc': 'left', 'icons': 'font', 'xrefstyle': 'short', @@ -37,5 +29,4 @@ asciidoctor { baseDirFollowsSourceFile() asciidoctorj.version = '2.4.3' - dependsOn asciidoctorGemsPrepare } \ No newline at end of file