In my current sbt build definition file, I defined a new configuration and added the settings of this configuration to Project settings:
lazy val FunctionalTests = config("functional") extend(Shared)
lazy val functionalTestSettings = configure(FunctionalTests, "functional")
lazy val buildSettings = allOtherSettings ++ functionalTestSettings
And then added the new configuration to the Project definition as below:
lazy val core = Project("core", file("."))
.configs(UnitTests)
.configs(IntegrationTests)
.configs(FunctionalTests) // Is this required?
.settings(buildSettings : _*)
All of this works even if skipped specifying the configuration in the Project definition. Is it necessary to specify the configuration in the Project definition? If not, how is the above definition useful?
Thanks,
Uday.