Feign makes writing java http clients easier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

45 lines
1.2 KiB

// For Artifactory
rootProject.status = version.contains('-SNAPSHOT')?'snapshot':'release'
subprojects { project ->
apply plugin: 'java' // Plugin as major conventions
version = rootProject.version
sourceCompatibility = 1.6
// GRADLE-2087 workaround, perform after java plugin
status = rootProject.status
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
// Ensure output is on a new line
javadoc.doFirst { println "" }
artifacts {
archives sourcesJar
archives javadocJar
}
}
task aggregateJavadoc(type: Javadoc) {
description = 'Aggregate all subproject docs into a single docs directory'
source subprojects.collect {project -> project.sourceSets.main.allJava }
classpath = files(subprojects.collect {project -> project.sourceSets.main.compileClasspath})
destinationDir = new File(projectDir, 'doc')
}
// Generate wrapper, which is distributed as part of source to alleviate the need of installing gradle
task createWrapper(type: Wrapper) {
gradleVersion = '1.1'
}