Hi Community,


I downloaded 24.09.01 and running "gradle cleanall" but facing the following 
issue:



FAILURE: Build failed with an exception. 



* What went wrong:

A problem occurred configuring root project 'ofbiz'.

> Could not resolve all artifacts for configuration ':classpath'.

   > Could not resolve com.google.guava:guava:32.1.3-jre.

     Required by:

         project : > 
org.owasp.dependencycheck:org.owasp.dependencycheck.gradle.plugin:9.0.9 > 
org.owasp:dependency-check-gradle:9.0.9 > org.owasp:dependency-check-core:9.0.9

      > The consumer was configured to find a runtime of a component compatible 
with Java 8, packaged as a jar, and its dependencies declared externally. 
However we cannot choose between the following variants of 
com.google.guava:guava:32.1.3-jre:

          - androidRuntimeElements

          - jreRuntimeElements

        All of them match the consumer attributes:

          - Variant 'androidRuntimeElements' capabilities 
com.google.collections:google-collections:32.1.3-jre and 
com.google.guava:guava:32.1.3-jre declares a runtime of a component compatible 
with Java 8, packaged as a jar, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides a library but the consumer didn't ask for it

                  - Provides attribute 'org.gradle.jvm.environment' with value 
'android' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

          - Variant 'jreRuntimeElements' capabilities 
com.google.collections:google-collections:32.1.3-jre and 
com.google.guava:guava:32.1.3-jre declares a runtime of a component compatible 
with Java 8, packaged as a jar, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides a library but the consumer didn't ask for it

                  - Provides attribute 'org.gradle.jvm.environment' with value 
'standard-jvm' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

        The following variants were also considered but didn't match the 
requested attributes:

          - Variant 'androidApiElements' capabilities 
com.google.collections:google-collections:32.1.3-jre and 
com.google.guava:guava:32.1.3-jre declares a component compatible with Java 8, 
packaged as a jar, and its dependencies declared externally:

              - Incompatible because this component declares an API of a 
component and the consumer needed a runtime of a component

          - Variant 'jreApiElements' capabilities 
com.google.collections:google-collections:32.1.3-jre and 
com.google.guava:guava:32.1.3-jre declares a component compatible with Java 8, 
packaged as a jar, and its dependencies declared externally:

              - Incompatible because this component declares an API of a 
component and the consumer needed a runtime of a component

   > Could not resolve com.google.guava:guava:31.1-jre.

     Required by:

         project : > 
org.owasp.dependencycheck:org.owasp.dependencycheck.gradle.plugin:9.0.9 > 
org.owasp:dependency-check-gradle:9.0.9 > org.owasp:dependency-check-core:9.0.9 
> org.eclipse.packager:packager-rpm:0.19.0

      > The consumer was configured to find a runtime of a component compatible 
with Java 8, packaged as a jar, and its dependencies declared externally. 
However we cannot choose between the following variants of 
com.google.guava:guava:32.1.3-jre:

          - androidRuntimeElements

          - jreRuntimeElements

        All of them match the consumer attributes:

          - Variant 'androidRuntimeElements' capabilities 
com.google.collections:google-collections:32.1.3-jre and 
com.google.guava:guava:32.1.3-jre declares a runtime of a component compatible 
with Java 8, packaged as a jar, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides a library but the consumer didn't ask for it

                  - Provides attribute 'org.gradle.jvm.environment' with value 
'android' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

          - Variant 'jreRuntimeElements' capabilities 
com.google.collections:google-collections:32.1.3-jre and 
com.google.guava:guava:32.1.3-jre declares a runtime of a component compatible 
with Java 8, packaged as a jar, and its dependencies declared externally:

              - Unmatched attributes:

                  - Provides a library but the consumer didn't ask for it

                  - Provides attribute 'org.gradle.jvm.environment' with value 
'standard-jvm' but the consumer didn't ask for it

                  - Provides release status but the consumer didn't ask for it

        The following variants were also considered but didn't match the 
requested attributes:

          - Variant 'androidApiElements' capabilities 
com.google.collections:google-collections:32.1.3-jre and 
com.google.guava:guava:32.1.3-jre declares a component compatible with Java 8, 
packaged as a jar, and its dependencies declared externally:

              - Incompatible because this component declares an API of a 
component and the consumer needed a runtime of a component

          - Variant 'jreApiElements' capabilities 
com.google.collections:google-collections:32.1.3-jre and 
com.google.guava:guava:32.1.3-jre declares a component compatible with Java 8, 
packaged as a jar, and its dependencies declared externally:

              - Incompatible because this component declares an API of a 
component and the consumer needed a runtime of a component



* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output. Run with --scan to get full insights.



* Get more help at https://help.gradle.org



BUILD FAILED in 1s



WARNING: Error invoking build scan buildFinished action

        Cannot obtain value from provider of system property 'idea.vendor.name' 
at configuration time.

Use a provider returned by 'forUseAtConfigurationTime()' instead.





I am using following:

------------------------------------------------------------ 



Gradle 6.5.1

------------------------------------------------------------

java 17.0.6 2023-01-17 LTS 

Java(TM) SE Runtime Environment (build 17.0.6+9-LTS-190)

Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190, mixed mode, sharing)

------------------------------------------------------------





Please let me know if I need to make any changes please.


Thank You



Regards,

Swati Srivastava

(Software Development Engineer)

(Xerus Systems LLC)​

Reply via email to