Search code examples
gradleherokugradle-kotlin-dsl

Heroku not recognize gradle - Could not find a pom.xml file


-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/java.tgz
       Could not find a pom.xml file! Please check that it exists and is committed to Git.
       More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
 !     Push failed

This is seen in Heroku's web app enter image description here

This is my repo: https://github.com/ericntd/spring-boot-heroku-demo

I already have "image": "heroku/gradle" in app.json


Solution

  • The buildpack information can be found under Settings tab, the Framework section. (should be heroku/gradle). Besure to remove heroku/java build pack if it's there (auto-detected and added by Heroku) enter image description here

    Alternative is to use the Heroku CLI and set the build pack desired (gradle)