heroku/heroku-gradle-plugin

heroku.appName by System property

Closed this issue · 4 comments

It would be great to be able to pass the app name by command line

./gradlew deployHeroku -Dheroku.appName=myapp

like with the maven plugin

Fixed by e12e64c. Will be available in 1.0.0

I faced this issue today where the plugin failed to find the app name, although there is an app.json present in the project root directory.

Malax commented

app.json usually does not contain a specific app name this plugin could use to deploy the app. This is the order the plugin tries to resolve the app name in:

  • The heroku.properties file
  • The heroku.appName system property
  • The configuration in Gradle
  • The "heroku" Git remote

This could be much better documented, I created #27 to track this. Do you have any of those settings available/configured?

I referred to the official sample app for Java, and didn't see a heroku.properties file. There's an app.json though.