由于日志中出现以下错误,我无法在Heroku部署Spring Boot应用程序:
FAILURE: Build failed with an exception.
* What went wrong:
Task 'stage' not found in root project 'scraper'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
the docs
:
Gradle buildpack将根据
应用程序中的框架检测。对于弹簧靴,它会运行
./gradlew构建-x测试。对于Ratpack,它将运行。/gradlew
installDist-x测试。如果没有检测到已知的web框架,它将
这意味着Heroku没有检测到springboot,而是作为一个通用框架运行。。问题是为什么。在日志的开头我得到:
-----> Gradle app detected
-----> Installing JDK 1.8... done
-----> Building Gradle app...
-----> executing ./gradlew stage
作为技术人员,我有SpringBoot2.1.1,Gradle和Kotlin 1.3.11。