
Travis is terminating builds as they are producing too much logging. A major contributor to the volume of logging is the Gradle plugin's build. This commit switches off debug logging for the build and enables test event logging. This considerably reduces the volume of logging that is produced while still providing some insight into the build's tests.
67 lines
1.2 KiB
Groovy
67 lines
1.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'eclipse'
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile localGroovy()
|
|
compile gradleApi()
|
|
compile fileTree(dir: 'target/dependencies/compile', include: '*.jar')
|
|
testCompile gradleTestKit()
|
|
testCompile 'org.apache.commons:commons-compress:1.13'
|
|
testCompile fileTree(dir: 'target/dependencies/test', include: '*.jar')
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes 'Implementation-Version': (version ? version : 'unknown')
|
|
}
|
|
}
|
|
|
|
test {
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
}
|
|
}
|
|
|
|
eclipseJdt {
|
|
inputFile = rootProject.file('../../eclipse/org.eclipse.jdt.core.prefs')
|
|
doLast {
|
|
project.file('.settings/org.eclipse.jdt.ui.prefs').withWriter { writer ->
|
|
writer << file('../../eclipse/org.eclipse.jdt.ui.prefs').text
|
|
}
|
|
}
|
|
}
|
|
|
|
javadoc {
|
|
options {
|
|
author()
|
|
stylesheetFile = file('src/main/javadoc/spring-javadoc.css')
|
|
links = [
|
|
'http://docs.oracle.com/javase/8/docs/api/',
|
|
'https://docs.gradle.org/current/javadoc/'
|
|
]
|
|
}
|
|
title = "${project.description} $version API"
|
|
}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
task javadocJar(type: Jar) {
|
|
classifier = "javadoc"
|
|
from javadoc
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|