Hi Can someone help me out with the below error i ...
# community-support
h
Hi Can someone help me out with the below error i am getting on build Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().
v
Maybe if you would provide the full error, not only a line. Optimally as build
--scan
URL, if possible.
h
could you please have a look at below error * Where: Build file '/home/ec2-user/apache-ofbiz-18.12.14/build.gradle' line: 1133 * What went wrong: A problem occurred evaluating root project 'ofbiz'.
Resolving dependency configuration 'implementation' is not allowed as it is defined as 'canBeResolved=false'.
Instead, a resolvable ('canBeResolved=true') dependency configuration that extends 'implementation' should be resolved.
v
That build is written for 5.0-rc-5. Why do you try to run it with Gradle 7.3.3? Always use the Gradle wrapper and never any installed Gradle version to run a build, then you know you run it with the Gradle version it is written for and known compatible with.
h
I was just following the steps given in documentation
to install and run the apacheofbiz
v
Well, seems either the documentation is wrong, or you did not follow it properly. Did you for example maybe use
gradle
while the docs tell you to use
gradlew
?
h
When i use gradle instead of gradlew i am getting response like bash: ./gradle: Is a directory
v
Your stacktrace shows that you have the code in /home/ec2-user/apache-ofbiz-18.12.14, which makes me guess that you try to build version 18.12.14. 18.12.14 is configured to use Gradle 5.0-rc-5: https://github.com/apache/ofbiz-framework/blob/release18.12.14/gradle/wrapper/gradle-wrapper.properties But your scan shows you build with 7.3.3. And there was never a version that used 7.3.3. They switched from 6.5 to 7.6: https://github.com/apache/ofbiz-framework/commit/fd810574db3e9842fa5fc34b8818fabbc0e126ea
h
Then do i need to use 7.6 or 5.0 ?
v
I have no idea, as I have no idea what you try to build there. As I said, it is not any official release it seems, as the project never used 7.3.3. And if you used the Gradle wrapper, then it is unclear what that is what you build there as no commit in the repository matches that state.
Also, here is a community helping you with solving problems in your Gradle builds. As this is not your build and you just follow the instructions of that project and fail, you should probably more complain to that project and seek their help to get this resolved.