You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improved: Update build.gradle to the latest dependencies (OFBIZ-13194)
Thanks to previous precious Danny Trunk's work at OFBIZ-13123, this time the
effort was not too hard.
There are 2 aspects:
1) In build.gradle:
Uses <<version "latest.release">> for plugins following
https://docs.gradle.org/7.0/release-notes.html#using-dynamic-versions-in-the-plugins-block
Updates junitReport to 'org.apache.ant:ant-junit:1.10.15'
checkstyle to toolVersion = '10.20.2'
Adds a commented out "useLatestVersions" section. Commented out because
I tried to use the recommended useLatestVersions and useLatestVersionsCheck
ie gradlew -PenableDependencyUpdates useLatestVersions
&& gradlew -PenableDependencyUpdates useLatestVersionsCheck
and got an issue:
Execution failed for task ':useLatestVersionsCheck'
Maybe because of:
Failed to determine the latest version for the following dependencies
- org.apereo.cas:cas-server-support-ldap-core
- org.safehaus.jug:jug
This said it was useful, could be more if we complete the "useLatestVersions"
section
2) In Dependencies the "standard" updates with new comments when needed
ie removing or commenting issues in code with the help of useLatestVersions
feature
implementation 'org.apache.commons:commons-imaging:1.0-alpha3'// Alpha but OK, "Imaging was working and was used by a number of projects in production even before reaching its initial release as an Apache Commons component." Since 1.0.0-alpha4 (note the use of semver) the API has changed. Better wait an "official release" to rewrite OFBiz code...
implementation 'org.apache.shiro:shiro-core:1.13.0'// Got "Exception in thread "main" java.lang.UnsupportedOperationException: Cannot create a hash with the given algorithm: argon2" with 2.0.2 in integration tests
implementation 'org.apache.xmlgraphics:fop:2.3'// NOTE: since 2.4 dependencies are messed up. See https://github.com/moqui/moqui-fop/blob/master/build.gradle
implementation 'org.freemarker:freemarker:2.3.34-SNAPSHOT'// Remember to change the version number in FreeMarkerWorker class when upgrading. See OFBIZ-10019 if >= 2.4
75
-
implementation 'org.owasp.esapi:esapi:2.5.4.0'
75
+
implementation 'org.owasp.esapi:esapi:2.6.0.0'
76
76
implementation 'org.cyberneko:html:1.9.8'
77
77
implementation 'org.springframework:spring-test:5.3.29'// 6.1.4 does not compile
0 commit comments