This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A minimum Gradle file to get you started with asciidoctor-packt | |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'org.ysb33r.gradle:vfs-gradle-plugin:1.0-beta1' | |
classpath 'commons-httpclient:commons-httpclient:3.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Not quite sure if this will work as expected, but probably | |
// worth a trying if you want xi:include documents to be inlucdd. | |
def spf = javax.xml.parsers.SAXParserFactory.newInstance() | |
spf.namespaceAware = true | |
spf.setXIncludeAware ( true ) | |
def parser = new XmlSlurper(spf.newSAXParser()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Uses a single Groovy template and multiple sets of text input files. | |
// It generates a set of Groovy source files using the content of the text input files to set tokens within the | |
// template file. | |
task generateGroovySources( type : Copy ) { | |
from 'examples', { | |
include '*.txt' | |
} | |
into "${buildDir}/generated-src" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a workaround for the Grain plugin for Gradle | |
// It generates the Grain build into a subproject if one runs grainInstall | |
// It also elimnates the current way Grain drops stuff all over your build area. | |
// IN reality the Grain plugin needs a rewrite, but this is a workaround for now. | |
plugins { | |
id "com.sysgears.grain" version "0.2.3" | |
} | |
grain { |
OlderNewer