scalacenter / sbt-dependency-submission

A Github Action to submit the dependency graph of an sbt build to the Dependency Submission API
Apache License 2.0
58 stars 17 forks source link

Include SBT plugins as dependencies #147

Open MPV opened 9 months ago

MPV commented 9 months ago

Does this support including SBT plugins as dependencies?

Over in #138 @adpi2 said:

This Github action submits the snapshot of all the dependencies downloaded by the build: the compile dependencies, the test dependencies, the scala tools (compiler and scaladoc), and their transitive dependencies, for all Scala versions and platforms.

We've seen this working, but are missing SBT plugins when using this action.

What are your thoughts on adding support for this?

MPV commented 9 months ago

Here's a concrete example:

$ cat project/plugins.sbt
addSbtPlugin("org.xerial.sbt"            % "sbt-pack"      % "0.17")
addSbtPlugin("ch.epfl.scala"             % "sbt-scalafix"  % "0.11.1")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat"  % "0.4.4")
addSbtPlugin("org.scoverage"             % "sbt-scoverage" % "2.0.9")
MPV commented 9 months ago

Here's an example using this action, on the above change:

adpi2 commented 8 months ago

What are your thoughts on adding support for this?

It would be great, but I have not yet found a good way to implement it.