0

Using the guide https://www.youtube.com/watch?v=7RHYDNSRSOs I want to deploy the application to Heroku. However, git push heroku master throws an error:

    :compileJava NO-SOURCE
       :processResources NO-SOURCE
       :classes UP-TO-DATE
       :findMainClass
       :jar
       :bootRepackage FAILED

       FAILURE: Build failed with an exception.

       * What went wrong:
       Execution failed for task ':bootRepackage'.
       > Unable to find main class

       * Try:
       Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

       BUILD FAILED

       Total time: 15.555 secs
 !     ERROR: Failed to run Gradle!
       We're sorry this build is failing. If you can't find the issue in application
       code, please submit a ticket so we can help: https://help.heroku.com
       You can also try reverting to the previous version of the buildpack by running:
       $ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-gradle#previous-version

       Thanks,
       Heroku
 !     Push rejected, failed to compile Gradle app.
 !     Push failed

The project normally works during compilation in IntelliJ. They work without a problem.

rzelek
  • 3,975
  • 1
  • 33
  • 35
dsfgdsg
  • 29
  • 2

0 Answers0