Hi Emad,

It seems the build is running fine with just some deprecation warnings.

What do you think is going wrong?

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 04.05.22 um 15:48 schrieb Emad Radwan:
Hi,

if it helps, I tried ‘cleanall’ and got the following. Anny hint, please.

Regards,
Emad

C:\apache-ofbiz-18>gradle --warning-mode all cleanall

Configure project :
The compile configuration has been deprecated for dependency declaration. This 
will fail with an error in Gradle 7.0. Please use the implementation 
configuration instead. Consult the upgrading guide for further information: 
https://docs.gradle.org/6.5/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
         at 
build_dlw0bl0qqhtvus3p2ggjy8z4s$_run_closure7.doCall(C:\apache-ofbiz-18\build.gradle:167)
         (Run with --stacktrace to get the full stack trace of this deprecation 
warning.)
The testCompile configuration has been deprecated for dependency declaration. 
This will fail with an error in Gradle 7.0. Please use the testImplementation 
configuration instead. Consult the upgrading guide for further information: 
https://docs.gradle.org/6.5/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
         at 
build_dlw0bl0qqhtvus3p2ggjy8z4s$_run_closure7.doCall(C:\apache-ofbiz-18\build.gradle:228)
         (Run with --stacktrace to get the full stack trace of this deprecation 
warning.)
The runtime configuration has been deprecated for dependency declaration. This 
will fail with an error in Gradle 7.0. Please use the runtimeOnly configuration 
instead. Consult the upgrading guide for further information: 
https://docs.gradle.org/6.5/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
         at 
build_dlw0bl0qqhtvus3p2ggjy8z4s$_run_closure7.doCall(C:\apache-ofbiz-18\build.gradle:231)
         (Run with --stacktrace to get the full stack trace of this deprecation 
warning.)
The runtime configuration has been deprecated for resolution. This will fail 
with an error in Gradle 7.0. Please resolve the runtimeClasspath configuration 
instead. Consult the upgrading guide for further information: 
https://docs.gradle.org/6.5/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
         at 
build_dlw0bl0qqhtvus3p2ggjy8z4s.getJarManifestClasspathForCurrentOs(C:\apache-ofbiz-18\build.gradle:1162)
         (Run with --stacktrace to get the full stack trace of this deprecation 
warning.)

Task :clean
Task :cleanCatalina
Task :cleanData
Task :cleanDownloads
Task :cleanEclipseClasspath UP-TO-DATE
Task :cleanEclipseJdt UP-TO-DATE
Task :cleanEclipseProject UP-TO-DATE
Task :cleanEclipse UP-TO-DATE
Task :cleanFooterFiles
Task :cleanIndexes
Task :cleanLogs
Task :cleanOutput
Task :cleanTempfiles
Task :cleanUploads
Task :cleanXtra
Task :cleanAll
BUILD SUCCESSFUL in 14s
15 actionable tasks: 11 executed, 4 up-to-date

On 2 May 2022, at 7:27 PM, Emad Radwan <eradwan1...@gmail.com> wrote:

Hello Jacques,

Thanks for the help, I changed to JDK 8 and having some progress, but still 
getting an error. How can I fix this?

Regards,
Emad




C:\apache-ofbiz-18>gradle --warning-mode=none loadall ofbiz
Task :compileJava UP-TO-DATE
Task :compileGroovy UP-TO-DATE
Task :processResources UP-TO-DATE
Task :classes UP-TO-DATE
Task :jar UP-TO-DATE
Task :assemble UP-TO-DATE
Task :checkstyleMain FAILED
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':checkstyleMain'.
Unable to create Root Module: config 
{C:\apache-ofbiz-18\config\checkstyle\checkstyle.xml}, classpath 
{C:\apache-ofbiz-18\build\classes\java\main;C:\apache-ofbiz-18\build\classes\groovy\main;C:\apache-ofbiz-18\build\resources\main;C:\Users\20102\.gradle\caches\modules-2\files-2.1\apache-xerces\xercesImpl\2.9.1\7bc7e49ddfe4fb5f193ed37ecc96c12292c8ceb6\xercesImpl-2.9.1.jar;C:\Users\20102\.gradle\caches\modules-2\files-2.1\com.google.zxing\core\3.3.3\b640badcc97f18867c4dfd249ef8d20ec0204c07\core-3.3.3.jar;C:\Users\20102\.gradle\caches\modules-2\files-2.1\com.googlecode.concurrentlinkedhashmap\concurrentl
On 2 May 2022, at 9:19 AM, Jacques Le Roux <jacques.le.r...@les7arts.com> wrote:

Hi Emad,

There is a JDK conflict, major version 62 is JDK 17, not yet supported by OFBiz 
only officially JDK 8, the demos are running with JDK 11.

Is that a clean (1st time build) for this instance on this machine? Else try a 
clean before building.

If it's not that, maybe a JDK conflict, especially if you use IntelliJ:
https://stackoverflow.com/questions/67079327/how-can-i-fix-unsupported-class-file-major-version-60-in-intellij-idea

Jacques

Le 02/05/2022 à 04:37, Emad Radwan a écrit :
Unsupported class file major version 62

Reply via email to