Created
March 29, 2015 20:56
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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