82 lines
2.2 KiB
Groovy
82 lines
2.2 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'
|
|
classpath 'io.spring.gradle:dependency-management-plugin:0.3.1.RELEASE'
|
|
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
|
|
classpath 'me.champeau.gradle:jbake-gradle-plugin:0.2'
|
|
classpath 'org.jbake:jbake-core:2.3.2'
|
|
classpath 'org.asciidoctor:asciidoctorj:1.5.2'
|
|
classpath 'org.freemarker:freemarker:2.3.19'
|
|
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.2.1.RELEASE'
|
|
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
|
|
}
|
|
}
|
|
description = 'swagger2markup Build'
|
|
version = '0.1.0'
|
|
group = 'io.swagger2markup'
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'maven-publish'
|
|
apply plugin: 'org.asciidoctor.convert'
|
|
apply plugin: 'jacoco'
|
|
apply plugin: 'com.github.kt3k.coveralls'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
apply plugin: 'com.jfrog.bintray'
|
|
apply from: 'gradle/publishing.gradle'
|
|
|
|
tasks.withType(JavaCompile) {
|
|
sourceCompatibility = "1.7"
|
|
targetCompatibility = "1.7"
|
|
options.deprecation = true
|
|
options.encoding = 'UTF-8'
|
|
options.compilerArgs << "-Xlint:unchecked"
|
|
}
|
|
|
|
repositories {
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile 'io.swagger:swagger-compat-spec-parser'
|
|
compile 'commons-collections:commons-collections'
|
|
testCompile 'junit:junit'
|
|
}
|
|
|
|
dependencyManagement {
|
|
dependencies {
|
|
"io.swagger:swagger-compat-spec-parser" "1.0.0"
|
|
"commons-collections:commons-collections" "3.2.1"
|
|
"com.mangofactory:swagger-springmvc" "0.9.5"
|
|
"com.jayway.restassured:spring-mock-mvc" "2.4.0"
|
|
"junit:junit" "4.11"
|
|
}
|
|
}
|
|
|
|
asciidoctor {
|
|
attributes = [
|
|
doctype: 'book',
|
|
toc: 'left',
|
|
toclevels: '1'
|
|
]
|
|
}
|
|
|
|
jacocoTestReport {
|
|
reports {
|
|
xml.enabled = true // coveralls plugin depends on xml format report
|
|
html.enabled = true
|
|
}
|
|
}
|
|
|
|
tasks.coveralls {
|
|
dependsOn 'check'
|
|
}
|
|
|
|
task wrapper(type: Wrapper) {
|
|
gradleVersion = '2.2.1'
|
|
} |