Skip to content

Commit

Permalink
fix: don't lock codenarc Gradle configuration
Browse files Browse the repository at this point in the history
Workaround for gradle/gradle#5894
  • Loading branch information
grv87 committed Jul 8, 2018
1 parent 88f0b7b commit 6237cbc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
9 changes: 0 additions & 9 deletions gradle/dependency-locks/codenarc.lockfile

This file was deleted.

11 changes: 10 additions & 1 deletion src/main/groovy/org/fidata/gradle/ProjectPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,16 @@ final class ProjectPlugin extends AbstractPlugin {
}
doLast {
project.configurations.each { Configuration configuration ->
if (configuration.canBeResolved) {
if (
/*
* WORKAROUND:
* CodeNarc doesn't work with its configuration locked
* https://github.com/gradle/gradle/issues/5894
* <grv87 2018-07-08>
*/
configuration.name != 'codenarc' &&
configuration.canBeResolved
) {
configuration.resolve()
}
}
Expand Down

0 comments on commit 6237cbc

Please sign in to comment.