Fix documentation site generation.

This commit is contained in:
Uwe Kubosch 2023-05-18 12:59:24 +02:00
parent 0a0ed7d428
commit 771db5062f
5 changed files with 17 additions and 13 deletions

View File

@ -63,7 +63,7 @@ gemResolverStrategy {
excludeConfigurations 'foo', 'bar' // <1>
excludeModule 'foo.*' // <2>
excludeModule 'foo.*', /1\.2.*/ // <3>
useGemVersionResolver 'gems2'
useGemVersionResolver 'gems2' // <4>
}
----
<1> Exclude configurations `foo` and `bar` from being considered for GEM resolver strategies.

View File

@ -1,7 +1,7 @@
base_url: http://jruby-gradle.org/
local_tz: UTC
haml:
:ugly: true
generation:
:in_threads: 0
asciidoctor:
:safe: unsafe
:base_dir: null

View File

@ -5,7 +5,7 @@ buildscript {
}
dependencies {
/* wow. so recursion */
classpath "com.github.jruby-gradle:jruby-gradle-plugin:1.1.1"
classpath "com.github.jruby-gradle:jruby-gradle-plugin:2.1.0-alpha.2"
}
}
apply plugin: 'groovy'
@ -18,14 +18,18 @@ configurations {
asciidoctor
}
dependencies {
asciidoctor('rubygems:awestruct:0.5.5')
asciidoctor('rubygems:coderay:1.1.0')
repositories {
ruby.gems()
}
/* later versions of 1.6.x have a dependency incompatibility with
* mime-types 2.x
*/
asciidoctor('rubygems:rest-client:1.6.7') { force = true }
dependencies {
asciidoctor('rubygems:awestruct:0.6.6')
asciidoctor('rubygems:coderay:1.1.3')
asciidoctor('rubygems:http_parser.rb:0.6.0')
asciidoctor('rubygems:public_suffix:4.0.7')
asciidoctor('rubygems:spoon:0.0.6')
asciidoctor('rubygems:htmlcompressor:0.4.0')
asciidoctor('rubygems:uglifier:4.2.0')
}
task prepareGroovyDocs(type: Copy) {

View File

@ -16,7 +16,7 @@ documentation intends only to cover the JRuby Gradle plugin's functionality.
[source,gradle]
.build.gradle
----
include::../examples/basic-topology.gradle[]
include::examples/basic-topology.gradle[]
----

View File

@ -17,7 +17,7 @@ dependencies {
/* Using the built-in `gems` configuration to describe the
* dependencies our JRubyExec-based tasks will need.
*/
gems "rubygems:asciidoctor:1.5.2+"
gems "rubygems:asciidoctor:2.0.20+"
}
task verifyAsciidoctorWorks(type: JRubyExec) {