Я пытаюсь развернуть свой проект на Heroku, я следовал этому учебнику и этому , но ни один не работал для меня.
Мой gradle выглядит так :
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'kotlinx-serialization'
version '0.0.1'
mainClassName = "io.ktor.server.jetty.EngineMain"
task stage(dependsOn: ['clean', 'installDist'])
repositories {
mavenLocal()
jcenter()
maven { url 'https://kotlin.bintray.com/ktor' }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
//Log
implementation "ch.qos.logback:logback-classic:$logback_version"
//KTor core
implementation "io.ktor:ktor-server-jetty:$ktor_version"
implementation "io.ktor:ktor-server-core:$ktor_version"
implementation "io.ktor:ktor-client-core:$ktor_version"
...
Я создал Procfile
с web: ./build/install/my-ws/bin/my-ws
Я запустил ./gradlew stage
в своем терминале, и он работал нормально.
Но когда я git push heroku master
я все еще получаю ошибку
remote: Building source:
remote:
remote: -----> Gradle app detected
remote: -----> Installing JDK 1.8... done
remote: -----> Building Gradle app...
remote: -----> executing ./gradlew stage
remote: Downloading https://services.gradle.org/distributions/gradle-4.10-all.zip
remote: ...............................................................................................................
remote:
remote: FAILURE: Build failed with an exception.
remote:
remote: * What went wrong:
remote: Task 'stage' not found in root project 'my-ws'.
remote: