Skip to content

[sbt plugin] Configure custom configuration automatically #267

@adpi2

Description

@adpi2

Currently, custom configurations must be configured manually with one of these settings:

inConfig(CustomConfig)(DebugAdapterPlugin.runSettings)
inConfig(CustomConfig)(DebugAdapterPlugin.testSettings)

Otherwise, it is not possible to run/debug the main classes and the tests of these configuration.

For example this is how to configure the debugger for the IntegrationTest config:

lazy val root = (project in file(".")).
configs(IntegrationTest)
  .settings(
    Defaults.itSettings,
    inConfig(IntegrationTest)(DebugAdapterPlugin.testSettings), // configure the debugger for IntegrationTest 
    ...
  )

To improve this we can try to use the onLoad setting in sbt and configure the debugger automatically.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions