Skip to content

Commit

Permalink
Revert "Revert "NebulaResponsiblePlugin: configureEach for tasks with…
Browse files Browse the repository at this point in the history
… type""

This reverts commit 154a7df.
  • Loading branch information
rpalcolea committed Nov 4, 2019
1 parent 154a7df commit c032df2
Showing 1 changed file with 13 additions and 6 deletions.
Expand Up @@ -7,6 +7,7 @@ import nebula.plugin.info.InfoPlugin
import nebula.plugin.publishing.maven.MavenPublishPlugin
import nebula.plugin.publishing.publications.JavadocJarPlugin
import nebula.plugin.publishing.publications.SourceJarPlugin
import org.gradle.api.Action
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.tasks.javadoc.Javadoc
Expand Down Expand Up @@ -40,12 +41,18 @@ class NebulaResponsiblePlugin implements Plugin<Project> {
project.plugins.apply(DependencyLockPlugin)

// TODO Publish javadoc somehow
project.tasks.withType(Javadoc) { Javadoc task ->
task.failOnError = false
}
project.tasks.withType(Test) { Test testTask ->
testTask.testLogging.exceptionFormat = 'full'
}
project.tasks.withType(Javadoc).configureEach(new Action<Javadoc>() {
@Override
void execute(Javadoc javadoc) {
javadoc.failOnError = false
}
})
project.tasks.withType(Test).configureEach(new Action<Test>() {
@Override
void execute(Test test) {
test.testLogging.exceptionFormat = 'full'
}
})
}

private boolean isBuildingSomething(Project project) {
Expand Down

0 comments on commit c032df2

Please sign in to comment.