Skip to content

Commit 50e4866

Browse files
committed
Provide keys through autoImport
1 parent 589743b commit 50e4866

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main/scala/ScalaModulePlugin.scala

+7-4
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ import sbt.librarymanagement.ivy.IvyDependencyResolution
1111
import sbt.librarymanagement.{ UnresolvedWarningConfiguration, UpdateConfiguration }
1212

1313
object ScalaModulePlugin extends AutoPlugin {
14-
val repoName = settingKey[String]("The name of the repository under github.com/scala/.")
15-
val mimaPreviousVersion = settingKey[Option[String]]("The version of this module to compare against when running MiMa.")
16-
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.")
14+
object autoImport {
15+
val repoName = settingKey[String]("The name of the repository under github.com/scala/.")
16+
val mimaPreviousVersion = settingKey[Option[String]]("The version of this module to compare against when running MiMa.")
17+
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.")
18+
val enableOptimizerInlineFrom = settingKey[String]("The value passed to -opt-inline-from by `enableOptimizer` on 2.13 and higher.")
19+
}
20+
import autoImport._
1721

1822
// See https://github.com/sbt/sbt/issues/2082
1923
override def requires = plugins.JvmPlugin
@@ -59,7 +63,6 @@ object ScalaModulePlugin extends AutoPlugin {
5963
scalaVersion := crossScalaVersions.value.head
6064
)
6165

62-
val enableOptimizerInlineFrom = settingKey[String]("The value passed to -opt-inline-from by `enableOptimizer` on 2.13 and higher")
6366
/**
6467
* Enable `-opt:l:inline`, `-opt:l:classpath` or `-optimize`, depending on the scala version.
6568
*/

0 commit comments

Comments
 (0)