sbt / sbt-ci-release

sbt plugin to automate Sonatype releases from GitHub Actions
Apache License 2.0
286 stars 76 forks source link

Same names with different types error when using sbt-ci-release with sbt-git 2.0.0 #243

Closed kevin-lee closed 2 years ago

kevin-lee commented 2 years ago

Having both sbt-ci-release and sbt-git 2.0.0 causes the following error when running sbt.

[error] Some keys were defined with the same name but different types:
 'gitReader' (com.github.sbt.git.ReadableGit, com.typesafe.sbt.git.ReadableGit),
 'gitRunner' (sbt.Task[com.github.sbt.git.GitRunner], sbt.Task[com.typesafe.sbt.git.GitRunner])

My project/plugins.sbt has

addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.0")

I can see sbt-ci-release uses sbt-git 1.0.2. Can it be upgraded to 2.0.0?

kevin-lee commented 2 years ago

I think #236 can solve this issue.