Skip to content

Conversation

Philippus
Copy link
Member

fixes #30

@SethTisue
Copy link
Member

review by @eed3si9n ?

val mimaPreviousVersion = settingKey[Option[String]]("The version of this module to compare against when running MiMa.")
val scalaVersionsByJvm = settingKey[Map[Int, List[(String, Boolean)]]]("For a Java major version (6, 8, 9), a list of a Scala version and a flag indicating whether to use this combination for publishing.")
object autoImport {
val repoName = settingKey[String]("The name of the repository under github.com/scala/.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sbt Plugins Best Practice recommends that we use plugin-specific prefix for all keys to avoid conflict - https://www.scala-sbt.org/1.x/docs/Plugins-Best-Practices.html#Key+naming+convention%3A+Use+prefix

If we are making these keys available automatically via autoImport, we should use our own prefix.

val scalaVersionsByJvm = settingKey[Map[Int, List[(String, Boolean)]]]("For a Java major version (6, 8, 9), a list of a Scala version and a flag indicating whether to use this combination for publishing.")
object autoImport {
val repoName = settingKey[String]("The name of the repository under github.com/scala/.")
val mimaPreviousVersion = settingKey[Option[String]]("The version of this module to compare against when running MiMa.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mima is a prefix used by MiMa plugin, so this especially seems bad, as it would cause a conflict if MiMa decides to add this feature.

@eed3si9n
Copy link
Member

eed3si9n commented Jul 8, 2019

Could you rebase this plz?

@lrytz lrytz merged commit 752edea into scala:2.x Sep 12, 2019
@lrytz
Copy link
Member

lrytz commented Sep 12, 2019

Thanks, @Philippus!

@Philippus Philippus deleted the provide-keys-though-autoimport branch September 9, 2020 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keys should do the right autoPlugin dance
4 participants