This is an automated email from the ASF dual-hosted git repository.
nmalin pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new faa132ab02 Improved: Update codenarc version to 3.6.0 (OFBIZ-13301)
faa132ab02 is described below
commit faa132ab022dbbb2f1a7bb833153219378ba0b07
Author: Nicolas Malin <[email protected]>
AuthorDate: Fri Oct 10 11:03:54 2025 +0200
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
---
dependencies.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dependencies.gradle b/dependencies.gradle
index d52f7eb7af..fa40ae043f 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -108,7 +108,7 @@ dependencies {
runtimeOnly 'org.apache.logging.log4j:log4j-jcl:2.24.2' // need to
constrain to version to avoid classpath conflict (ReflectionUtil)
// specify last codenarc version for java 17 compliance
- codenarc('org.codenarc:CodeNarc:3.5.0')
+ codenarc('org.codenarc:CodeNarc:3.6.0-groovy-4.0')
// use constraints to update transitive dependencies
constraints {