Closed PerWiklander closed 9 months ago
What version of SBT? Also, what is the exact command you are running (sbt deployHeroku
or something more complex)?
sbt.version=0.13.9
sbt -DappEnv=staging deployHeroku
Any developments on this? I got the same problem on with 'sbt 0.13.13' , 'herokuSkipSubProjects in Compile ' although it defaults to true, the plugin is trying to run against subprojects
to anyone having the same problem, althoug herokuSkipSubProjectsis true, if you have a folder named project inside a subproject the plugin will try to run against it.
I just deleted/renamed the folder and problem solved
@br-nezasa do you have a sample app/repo that I can use to reproduce the problem?
@jkutner not public, just create a folder named project inside a subproject, you should be able to reproduce
make sure herokuSkipSubProjects = true
@br-nezasa I haven't been able to reproduce this (but it's probably just due to my ignorance WRT multi-module sbt projects). If you can provide an example app, it will definitely help me get this done quicker.
Also, is your deploy success despite the error (as mentioned in OP)? Or do you get a failure?
Create a project with two subprojects:
proj1/
proj2/
project/
build.sbt
While build.sbt
as follows
import Dependencies._
ThisBuild / scalaVersion := "2.13.1"
ThisBuild / version := "0.0.1"
ThisBuild / organization := "com.example"
ThisBuild / organizationName := "Example"
lazy val proj1 = (project in file("proj1"))
.settings(commonSettings: _*)
.enablePlugins(JavaAppPackaging)
.settings(
packageName in Docker := organization.value + "/proj1",
version in Docker := version.value,
herokuAppName in Compile := "app1"
)
lazy val proj2 = (project in file("proj2"))
.settings(commonSettings: _*)
.enablePlugins(JavaAppPackaging)
.settings(
packageName in Docker := organization.value + "/proj2",
version in Docker := version.value,
herokuAppName in Compile := "app2"
)
I found a workaround by deploying each subproject separately, i.e.
sbt proj1/stage proj1/deployHeroku
sbt proj2/stage proj2/deployHeroku
Closing this PR because this repository will be archived. See https://github.com/heroku/heroku-jvm-application-deployer for an alternative CLI to deploy locally compiled Scala applications.
Deploying to Heroku works fine, but each run is ended by an IllegalArgumentException.
This is in my build.sbt:
But I still get this: