-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fix CrossVersion.Disabled compat #280
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ final case class ScalaVersion(full: String, binary: String) | |
private[librarymanagement] abstract class CrossVersionFunctions { | ||
|
||
/** Compatibility with 0.13 */ | ||
final val Disabled = sbt.librarymanagement.Disabled | ||
final val Disabled = sbt.librarymanagement.Disabled() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The corresponding construct in sbt 0.13 https://github.com/sbt/sbt-zero-thirteen/blob/v0.13.17/ivy/src/main/scala/sbt/CrossVersion.scala#L19: object Disabled extends CrossVersion { override def toString = "disabled" } so the above change could be considered valid for source compat with sbt 0.13, but in general we probably should recommend migrating to lowercase |
||
final val Binary = sbt.librarymanagement.Binary | ||
final val Constant = sbt.librarymanagement.Constant | ||
final val Full = sbt.librarymanagement.Full | ||
|
@@ -37,7 +37,7 @@ private[librarymanagement] abstract class CrossVersionFunctions { | |
def binary: CrossVersion = Binary() | ||
|
||
/** Disables cross versioning for a module. */ | ||
def disabled: CrossVersion = Disabled() | ||
def disabled: CrossVersion = Disabled | ||
|
||
/** Cross-versions a module with a constant string (typically the binary Scala version). */ | ||
def constant(value: String): CrossVersion = Constant(value) | ||
|
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.
More precisely "constant folded" not "inlined".