Fix dependency problems in Gradle codenarc plugin that make build fail on Java <8
@@ -55,6 +55,8 @@ ext {
asciidoctorEpub3GemVersion = project(':asciidoctorj-epub3').version.replace('-', '.')
asciidoctorDiagramGemVersion = project(':asciidoctorj-diagram').version.replace('-', '.')
coderayGemVersion = '1.1.0'
+
+ codenarcVersion = '0.24.1'
groovyVersion = '2.4.7'
erubisGemVersion = '2.7.0'
hamlGemVersion = '4.0.5'
@@ -114,6 +116,11 @@ subprojects {
jcenter()
}
+ apply plugin: 'codenarc'
+ codenarc {
+ configFile = rootProject.file('config/codenarc/codenarc.groovy')
+ }
+
dependencies {
testCompile "junit:junit:$junitVersion"
testCompile "org.hamcrest:hamcrest-library:$hamcrestVersion"
@@ -124,10 +131,12 @@ subprojects {
testCompile "org.jboss.arquillian.junit:arquillian-junit-container:$arquillianVersion"
testCompile "org.jboss.arquillian.spock:arquillian-spock-container:$arquillianSpockVersion"
+ codenarc "org.codehaus.groovy:groovy:$groovyVersion"
+ codenarc "org.codehaus.groovy:groovy-xml:$groovyVersion"
+ codenarc "org.codehaus.groovy:groovy-ant:$groovyVersion"
+ codenarc("org.codenarc:CodeNarc:$codenarcVersion") {
+ exclude group: 'org.codehaus.groovy'
}
- apply plugin: 'codenarc'
- codenarc {
- configFile = rootProject.file('config/codenarc/codenarc.groovy')
}
test {
