How to configure parameters for a subproject in the sbt shell (without using the project command)?

In sbt shell how to set parameter for subproject?

I know that I can project subproject, and then set key := value, but I do not want projects to change. Ideally, something is not too different from:

set key in subproject := value
+4
source share
1 answer

I think the problem is that you defined your projects in build.sbtand they don't seem to be visible in the sbt console. At least in the current version of sbt - see this problem and this problem that were actually fixed just a couple of days ago (!)

I found two ways to overcome this limitation.

Use quotes around project id

set version in "projectId" := "some-version"

project/build.scala

build/Build.scala:

import sbt._
import Keys._

object Build extends Build {
  lazy val projectA, projectB = project
}

set version in projectA := "1.42-SNAPSHOT .

, build/Build.scala, , - build.sbt . set.

+6

All Articles