Skip to content

Commit faa132a

Browse files
committed
Improved: Update codenarc version to 3.6.0 (OFBIZ-13301)
Currently, codenarc 3.5.0 doesn't support groovy 4 and if we use java 17 syntax like direct switch, the file failed and not analysed : **** switch (myVar) { case x -> return true } **** To fix, we update codenarc to the latest version with groovy4 support : CodeNarc-3.6.0-groovy-4.0.jar [1] [1] https://github.com/CodeNarc/CodeNarc/releases/download/v3.6.0/CodeNarc-3.6.0-groovy-4.0.jar
1 parent 7dba6ac commit faa132a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ dependencies {
108108
runtimeOnly 'org.apache.logging.log4j:log4j-jcl:2.24.2' // need to constrain to version to avoid classpath conflict (ReflectionUtil)
109109

110110
// specify last codenarc version for java 17 compliance
111-
codenarc('org.codenarc:CodeNarc:3.5.0')
111+
codenarc('org.codenarc:CodeNarc:3.6.0-groovy-4.0')
112112

113113
// use constraints to update transitive dependencies
114114
constraints {

0 commit comments

Comments
 (0)