apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' // we want to target Java 1.5 so this can be used on Android sourceCompatibility = JavaVersion.VERSION_1_6 targetCompatibility = JavaVersion.VERSION_1_5 dependencies { compile 'org.slf4j:slf4j-api:1.7.0' compile 'com.google.code.findbugs:jsr305:2.0.0' provided 'junit:junit:4.10' provided 'org.mockito:mockito-core:1.8.5' } eclipse { classpath { //you can tweak the classpath of the Eclipse project by adding extra configurations: plusConfigurations += configurations.provided downloadSources = true downloadJavadoc = true } } javadoc { // we do not want the org.rx.operations package include exclude '**/operations/**' options { doclet = "org.benjchristensen.doclet.DocletExclude" docletpath = [rootProject.file('./gradle/doclet-exclude.jar')] stylesheetFile = rootProject.file('./gradle/javadocStyleSheet.css') windowTitle = "RxJava Javadoc ${project.version}" } options.addStringOption('top').value = '

RxJava

' }