Gradle Heroku Task 'stage'

artek :

I have a problem with deploying gradle project to heroku. Here is my gradle.build file

plugins {
    id 'java'
    id 'distribution'
}

group 'com.artek.ej_bot'
version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {
    flatDir {
        dirs 'libs'
    }

    mavenCentral()
}

dependencies {

    compile files(fileTree(dir: 'libs', includes: ['*.jar']))
    compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.6'
    testCompile group: 'junit', name: 'junit', version: '4.12'

}

task stage {
    dependsOn installDist
}

And I keep getting this error:

It looks like your project does not contain a 'stage' task, which Heroku needs in order to build your app

artek :

I run this command heroku config:set GRADLE_TASK="build" in terminal and deploy became successful

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Gradle include JavaFX for Heroku

分類Dev

Modify an existing gradle task

分類Dev

Modify an existing gradle task

分類Dev

Visualize gradle task dependencies

分類Dev

Passing in tags to Gradle cucumber task

分類Dev

Override Task in build.gradle

分類Dev

Passing parameter to custom Gradle task

分類Dev

Convert ant signJar task to gradle

分類Dev

ERROR Executor: Exception in task 0.0 in stage 6.0 spark scala?

分類Dev

Passing parameters to corb uri stage using ml-gradle

分類Dev

Gradle build: Execution failed for task ':app:lint'

分類Dev

Gradle build: Execution failed for task ':app:lint'

分類Dev

Android - what is gradle task connectedCheck used for

分類Dev

Gradle leftshift << operator with Task needed? (Is it superfluous)

分類Dev

Gradle: custom task with jvm arguments for Spring Boot

分類Dev

Could not get unknown property for task in Gradle?

分類Dev

Run gradle build(test) in subprojects in a custom task

分類Dev

Cannot exclude directories for a Gradle copy task

分類Dev

Gradle: execute tasks sequentially in some task

分類Dev

Use withType() for configuring Gradle task not compiling in IntelliJ

分類Dev

gradle: Skipping task ':compileJava' as it has no source files

分類Dev

Heroku deployment of Gradle application: pom.xml missing

分類Dev

heroku fails to pick gradle-wrapper and correct java version

分類Dev

How to execute a task before executing or building the subprojects in gradle?

分類Dev

make gradle dependency task to exclude test dependencies in its result

分類Dev

Android gradle - top level vs module level "build" task

分類Dev

What does the "ExtractAarTransform" in Gradle task "preDebugBuild" really mean?

分類Dev

How to build jacoco test report task in Kotlin (Gradle 5)

分類Dev

Gradle android: Where should I put my custom task?

Related 関連記事

  1. 1

    Gradle include JavaFX for Heroku

  2. 2

    Modify an existing gradle task

  3. 3

    Modify an existing gradle task

  4. 4

    Visualize gradle task dependencies

  5. 5

    Passing in tags to Gradle cucumber task

  6. 6

    Override Task in build.gradle

  7. 7

    Passing parameter to custom Gradle task

  8. 8

    Convert ant signJar task to gradle

  9. 9

    ERROR Executor: Exception in task 0.0 in stage 6.0 spark scala?

  10. 10

    Passing parameters to corb uri stage using ml-gradle

  11. 11

    Gradle build: Execution failed for task ':app:lint'

  12. 12

    Gradle build: Execution failed for task ':app:lint'

  13. 13

    Android - what is gradle task connectedCheck used for

  14. 14

    Gradle leftshift << operator with Task needed? (Is it superfluous)

  15. 15

    Gradle: custom task with jvm arguments for Spring Boot

  16. 16

    Could not get unknown property for task in Gradle?

  17. 17

    Run gradle build(test) in subprojects in a custom task

  18. 18

    Cannot exclude directories for a Gradle copy task

  19. 19

    Gradle: execute tasks sequentially in some task

  20. 20

    Use withType() for configuring Gradle task not compiling in IntelliJ

  21. 21

    gradle: Skipping task ':compileJava' as it has no source files

  22. 22

    Heroku deployment of Gradle application: pom.xml missing

  23. 23

    heroku fails to pick gradle-wrapper and correct java version

  24. 24

    How to execute a task before executing or building the subprojects in gradle?

  25. 25

    make gradle dependency task to exclude test dependencies in its result

  26. 26

    Android gradle - top level vs module level "build" task

  27. 27

    What does the "ExtractAarTransform" in Gradle task "preDebugBuild" really mean?

  28. 28

    How to build jacoco test report task in Kotlin (Gradle 5)

  29. 29

    Gradle android: Where should I put my custom task?

ホットタグ

アーカイブ