forked from Swagger2Markup/markup-document-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (61 loc) · 1.86 KB
/
build.gradle
File metadata and controls
68 lines (61 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.0.0"
}
}
description = 'A Markup (Markdown, AsciiDoc) document builder'
version = '1.1.2'
group = 'io.github.swagger2markup'
apply plugin: 'java'
apply plugin: 'org.asciidoctor.convert'
apply from: 'gradle/publishing.gradle'
apply from: 'gradle/coverage.gradle'
tasks.withType(JavaCompile) {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
options.deprecation = true
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked"
options.compilerArgs << "-Xdoclint:none"
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.18'
//compile 'org.apache.commons:commons-collections4:4.1'
compile 'org.apache.commons:commons-lang3:3.4'
compile "commons-io:commons-io:2.4"
compile "commons-codec:commons-codec:1.10"
compile "nl.jworks.markdown_to_asciidoc:markdown_to_asciidoc:1.0"
testCompile 'junit:junit:4.11'
testCompile 'io.github.robwin:assertj-diff:0.1.1'
testCompile "org.mockito:mockito-core:1.9.5"
testCompile 'ch.qos.logback:logback-classic:1.1.6'
testCompile 'io.github.robwin:assertj-diff:0.1.1'
}
asciidoctor {
backends = ['html5', 'pdf']
attributes = [
doctype: 'book',
toc: 'left',
toclevels: '2',
numbered: ''
]
sourceDir "build/tmp"
}
tasks.asciidoctor {
dependsOn 'check'
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}