Skip to content

[2.x] *.sbt files in a global plugin directory are not loaded #8600

@azdrojowa123

Description

@azdrojowa123

I have an sbt file inside ~/.sbt/2/plugins/ and ~/.sbt/1.0/plugins. These files only contain a build info plugin declaration:

addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.13.1")

When I start an sbt 1.x project and type plugins, I can see that the BuildInfo plugin is loaded. I can use settings like buildInfoKeys.
However, when I start an sbt 2.x project and type plugins, the build info plugin isn't available, and I see errors when trying to use something like buildInfoKeys.

What's interesting is that if I make a typo in the sbt file inside ~/.sbt/2/plugins/, an exception is thrown, so sbt reads/detects the file - but it seems like it's not actually loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions