-
Notifications
You must be signed in to change notification settings - Fork 17
Provide keys through autoImport #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
9466d35
to
31f5288
Compare
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/.") |
There was a problem hiding this comment.
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.") |
There was a problem hiding this comment.
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.
Could you rebase this plz? |
5bc44e0
to
33831d1
Compare
33831d1
to
1a2140c
Compare
Thanks, @Philippus! |
fixes #30