46 lines
1.0 KiB
Groovy
46 lines
1.0 KiB
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2'
|
|
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.6'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'org.asciidoctor.convert'
|
|
|
|
version = '0.1.0'
|
|
group = 'io.swagger2asciidoc'
|
|
|
|
repositories {
|
|
jcenter()
|
|
mavenCentral()
|
|
mavenLocal()
|
|
maven {url "https://oss.sonatype.org/content/repositories/snapshots"}
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
sourceCompatibility = "1.7"
|
|
targetCompatibility = "1.7"
|
|
options.deprecation = true
|
|
options.encoding = 'UTF-8'
|
|
options.compilerArgs << "-Xlint:unchecked"
|
|
}
|
|
|
|
dependencies {
|
|
compile 'io.swagger:swagger-legacy-spec-parser:1.0.0-SNAPSHOT'
|
|
compile 'commons-collections:commons-collections:3.2.1'
|
|
testCompile 'junit:junit:4.11'
|
|
}
|
|
|
|
asciidoctor {
|
|
attributes = [
|
|
doctype: 'book',
|
|
toc: 'left',
|
|
toclevels: '1'
|
|
]
|
|
} |