Skip to content

Instantly share code, notes, and snippets.

@madmas
Created October 30, 2014 18:06
Show Gist options
  • Save madmas/72d93a94505bf00ef1bc to your computer and use it in GitHub Desktop.
Save madmas/72d93a94505bf00ef1bc to your computer and use it in GitHub Desktop.
AsciiDoktor gradle build
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.0'
}
}
plugins {
id "com.github.jruby-gradle.base" version "0.1.2"
id "org.asciidoctor.gradle.asciidoctor" version "1.5.0"
}
dependencies {
gems 'rubygems:asciidoctor-pdf:1.5.0.alpha.5', {
exclude module : 'asciidoctor'
exclude module : 'prawn'
exclude module : 'ttfunk'
}
gems 'rubygems:prawn:1.2.1'
gems 'rubygems:ttfunk:1.2'
}
apply plugin: 'org.asciidoctor.gradle.asciidoctor'
asciidoctor {
requires = ['asciidoctor-pdf']
sourceDir = new File('doc-src')
backends = ['html', 'pdf']
options = [
doctype: 'book'
]
gemPath = jruby.gemInstallDir
dependsOn jrubyPrepareGems
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment