gothinkster / spring-boot-realworld-example-app

Example Spring codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld API spec.
MIT License
1.31k stars 680 forks source link

Could not find snakeyaml-1.27-android.jar (org.yaml:snakeyaml:1.27) #34

Closed vmihailenco closed 3 years ago

vmihailenco commented 3 years ago
./gradlew bootJar

* What went wrong:
Execution failed for task ':bootJarMainClassName'.
> Could not find snakeyaml-1.27-android.jar (org.yaml:snakeyaml:1.27).
  Searched in the following locations:
      file:/home/vmihailenco/.m2/repository/org/yaml/snakeyaml/1.27/snakeyaml-1.27-android.jar

Adding the v1.28 as a dependency to build.gradle fixes the problem for me

implementation 'org.yaml:snakeyaml:1.28'

Googling says that this is caused by incorrect classifier (android) in 1.27 version...

aisensiy commented 3 years ago

I don't have this issue and this app also successfully deployed in heroku. Just try to reinstall your dependencies.

hioymaci commented 3 years ago

I have also same problem and importing snakeyaml dependency is not working. After I removed manually repository directory (xxx/.m2/repository/org/yaml/snakeyaml) it works.

edwincabezas7 commented 3 years ago

same situation, thanks, it works for me: rm -rf /Users/xxxxxxxxx/.m2/repository/org/yaml/snakeyaml/1.23