aboutsummaryrefslogtreecommitdiffstats
path: root/gradle/github.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'gradle/github.gradle')
-rw-r--r--gradle/github.gradle38
1 files changed, 0 insertions, 38 deletions
diff --git a/gradle/github.gradle b/gradle/github.gradle
deleted file mode 100644
index 4a6f935..0000000
--- a/gradle/github.gradle
+++ /dev/null
@@ -1,38 +0,0 @@
-apply plugin: 'org.ajoberstar.github-pages'
-
-def docTasks = [:]
-[Javadoc,ScalaDoc,Groovydoc].each{ Class docClass ->
- def allSources = allprojects.tasks*.withType(docClass).flatten()*.source
- if (allSources) {
- def shortName = docClass.simpleName.toLowerCase()
- def docTask = task "aggregate${shortName.capitalize()}"(type: docClass, description: "Aggregate subproject ${shortName}s") {
- source = allSources
- destinationDir = file("${project.buildDir}/docs/${shortName}")
- if (delegate.hasProperty('options')) { // Groovydoc has no options
- options.links "http://docs.oracle.com/javase/7/docs/api/",
- "http://docs.oracle.com/javaee/7/api/",
- "http://docs.guava-libraries.googlecode.com/git/javadoc/"
- options.linkSource true
- if (JavaVersion.current().isJava8Compatible())
- options.addStringOption('Xdoclint:none', '-quiet')
- }
- doFirst {
- def classpaths = allprojects.findAll { it.plugins.hasPlugin(JavaPlugin) }.collect { it.sourceSets.main.compileClasspath }
- classpath = files(classpaths)
- }
- }
- docTasks[shortName] = docTask
- publishGhPages.dependsOn(docTask)
- }
-}
-
-githubPages {
- repoUri = "[email protected]:shevek/${rootProject.githubProjectName}.git"
- pages {
- docTasks.each { shortName, docTask ->
- from(docTask.outputs.files) {
- into "docs/${shortName}"
- }
- }
- }
-}