Skip to content

Instantly share code, notes, and snippets.

@aweigold
Created March 29, 2015 20:56
Show Gist options
  • Save aweigold/f5a0a8ca424800675313 to your computer and use it in GitHub Desktop.
Save aweigold/f5a0a8ca424800675313 to your computer and use it in GitHub Desktop.
Incorporating your README.md, doclet output, and reports with the gradle site plugin
buildscript {
repositories {
maven {
name = 'BintrayJCenter'
url = 'http://jcenter.bintray.com'
}
mavenCentral()
}
dependencies {
classpath 'us.carrclan.david.gradle:gradle-site-plugin:0.2.0'
}
}
apply plugin: 'site'
sourceSets {
readmeSource {
resources {
srcDir "$projectDir"
include 'README.md'
}
}
site {
resources {
srcDir 'build/docs'
srcDir 'build/reports'
source readmeSource.resources
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment