Skip to content

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

Merged
merged 2 commits into from
Sep 12, 2019

Conversation

Philippus
Copy link
Member

fixes #30

@Philippus Philippus force-pushed the provide-keys-though-autoimport branch 2 times, most recently from 9466d35 to 31f5288 Compare April 10, 2019 13:10
@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?

@Philippus Philippus force-pushed the provide-keys-though-autoimport branch from 5bc44e0 to 33831d1 Compare July 8, 2019 18:38
@Philippus Philippus force-pushed the provide-keys-though-autoimport branch from 33831d1 to 1a2140c Compare July 8, 2019 18:51
@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