Could not find com.crio.warmup:annual-return:1.0.0

When i ran the below given command for Setup #1

./gradle bootrun

Got this error.

bash: ./gradle: Is a directory

So i ran

sudo ./gradlew build bootrun

But got this error.

Task :compileJava FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileJava’.
    Could not resolve all files for configuration ‘:compileClasspath’.
    Could not find com.crio.warmup:annual-return:1.0.0.
    Required by:
    project :

run ./gradlew build and ./gradlew publishToMaven in your repository_QMONEY directory then run that command.

don’t use sudo. Running a sudo may modify some file permissions which may be difficult to deal with.
Run gradlew Verifymavenjarscreated and check if files actually exist

1 Like

You have been running the wrong command
Run ./gradlew bootrun

Hey @omkarlubal if you are getting this error after resetting your workspace do

./gradlew publishToMavenLocal

1 Like