Error occurs when loading seed data

From Source Quick Start with ElasticSearch

When the load command is executed, an error is prompted:
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:runtime:component:SimpleScreens:compileGroovy’.

Could not resolve all task dependencies for configuration ‘:runtime:component:SimpleScreens:compileClasspath’.
Could not resolve project :framework.
Required by:
project :runtime:component:SimpleScreens
No matching variant of project :framework was found. The consumer was configured to find an API of a library compatible with Java 8, preferably not packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally but:
- Variant ‘apiElements’ capability moqui:framework:3.0.0 declares an API of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
- Other compatible attribute:
- Doesn’t say anything about its target Java environment (preferred optimized for standard JVMs)
- Variant ‘mainSourceElements’ capability moqui:framework:3.0.0 declares a component, and its dependencies declared externally:
- Incompatible because this component declares a component of category ‘verification’ and the consumer needed a library
- Other compatible attributes:
- Doesn’t say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn’t say anything about its target Java version (required compatibility with Java 8)
- Doesn’t say anything about its elements (required them preferably not packaged as a jar)
- Doesn’t say anything about its usage (required an API)
- Variant ‘runtimeElements’ capability moqui:framework:3.0.0 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
- Other compatible attribute:
- Doesn’t say anything about its target Java environment (preferred optimized for standard JVMs)
- Variant ‘testResultsElementsForTest’ capability moqui:framework:3.0.0:
- Incompatible because this component declares a component of category ‘verification’ and the consumer needed a library
- Other compatible attributes:
- Doesn’t say anything about how its dependencies are found (required its dependencies declared externally)
- Doesn’t say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn’t say anything about its target Java version (required compatibility with Java 8)
- Doesn’t say anything about its elements (required them preferably not packaged as a jar)
- Doesn’t say anything about its usage (required an API)
strong text

My environmental information is as follows:
1、openjdk version “11.0.17”
2、moqui-framework: 3.0.0
3、gradle:7.4.1

Make sure you don’t have old versions of components, or if you do and can’t update then remove the sourceCompatibility and/or targetCompatibility settings from the build.gradle files.

A simple fix may be

./gradlew getDepends

Also (based on the error) the problem isn’t a problem with loading. It’s with compiling the code.