This message was deleted.
# community-support
s
This message was deleted.
e
@Chris Lee do you have any thoughts?
c
iirc you can get that error if the project directory is invalid (does not exist - perhaps incorrectly relatively pathed).
Something like this in your build script, covering the relevant projects, may help:
Copy code
println(projectDir)
println(project(":plugins:java-core").projectDir)
the other item to check is that
:common-utils
is included in settings.gradle of eps-spark
e
Copy code
include ":common-utils"
project(":common-utils").projectDir = file("../../jas/common-utils")
is from eps-store/settings.gradle, but given I can do a
./gradlew clean
here I don't see a problem.
Usually I see this problem with defective relative paths, but I have looked at this so many way, I cannot see that as a problem...
From eps-spark/settings.gradle
Copy code
include ':eps-store'
project(":eps-store").projectDir = file("../eps-store")
looks fine, but that is not what gradle is complaining about.
I will try the println as you suggest...
Copy code
eps-spark % ./gradlew clean

> Configure project :
/Users/eric.kolotyluk/git/autonomous-iam/eps/eps-spark
/Users/eric.kolotyluk/git/autonomous-iam/eps/eps-store

> Configure project :elastic-store
Using INDEXER: elastic

> Configure project :eps-store
Using DB: cassandra

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/eric.kolotyluk/git/autonomous-iam/eps/eps-store/build.gradle' line: 73
Copy code
println(projectDir)
println(project(":eps-store").projectDir)
c
May help to have the script check for existence from it’s perspective:
Copy code
println(projectDir)
println(project(":plugins:java-core").projectDir)
println("Exists : " + project(":plugins:java-core").projectDir.exists())
e
Okay, starting to see where the problem is...
Copy code
eps-spark % ./gradlew clean

> Configure project :
/Users/eric.kolotyluk/git/autonomous-iam/eps/eps-spark
/Users/eric.kolotyluk/git/autonomous-iam/eps/eps-store
Exists : true

> Configure project :elastic-store
Using INDEXER: elastic

> Configure project :eps-store
/Users/eric.kolotyluk/git/autonomous-iam/eps/eps-store

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/eric.kolotyluk/git/autonomous-iam/eps/eps-store/build.gradle' line: 11

* What went wrong:
A problem occurred evaluating project ':eps-store'.
> Project with path ':common-utils' could not be found in project ':eps-store'.
In
eps-store/build.gradle
We can see line 11 in the screenshot However
Copy code
eps-store % ./gradlew clean    

> Configure project :
/Users/eric.kolotyluk/git/autonomous-iam/eps/eps-store
/Users/eric.kolotyluk/git/autonomous-iam/jas/common-utils
Exists : true
Using DB: cassandra

> Configure project :elastic-store
Using INDEXER: elastic

> Configure project :opensearch-store
Using INDEXER: elastic

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See <https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD SUCCESSFUL in 741ms
This is not how I would expect Gradle to behave, and I consider this a defect, but with Gradle, it often does not behave as I would expect...