Skip to content

Commit

Permalink
Merge pull request Netflix#263 from codewise-com/master
Browse files Browse the repository at this point in the history
Skipping doclint if building with Java 8. It breaks the build due to err...
  • Loading branch information
qiangdavidliu committed Nov 21, 2014
2 parents 564009b + 1691f26 commit 671263c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ subprojects {
}
}

if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}

project(':eureka-client') {
dependencies {
Expand Down
2 changes: 1 addition & 1 deletion gradle/convention.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ apply plugin: 'github-pages' // Used to create publishGhPages task

def docTasks = [:]
[Javadoc,ScalaDoc,Groovydoc].each{ Class docClass ->
def allSources = allprojects.tasks*.withType(docClass).flatten()*.source
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") {
Expand Down

0 comments on commit 671263c

Please sign in to comment.