mirror of https://github.com/sbt/sbt.git
Fix repositories for dealing with snapshot modules.
This commit is contained in:
parent
004a557c37
commit
a1b8102d81
|
|
@ -88,9 +88,12 @@ object Transform {
|
|||
def read(file: File): Option[String] = try { Some(IO.read(file)) } catch { case _: java.io.IOException => None }
|
||||
lazy val Property = """\$\{\{([\w.-]+)\}\}""".r
|
||||
|
||||
def repositories(isSnapshot: Boolean) = Releases :: (if (isSnapshot) Snapshots :: Nil else Nil)
|
||||
def repositories(isSnapshot: Boolean) = Releases :: (if (isSnapshot) Snapshots :: SonatypeSnapshots :: Nil else Nil)
|
||||
lazy val Releases = typesafeRepository("releases")
|
||||
lazy val Snapshots = typesafeRepository("snapshots")
|
||||
lazy val SonatypeSnapshots = sonatypeRepsoitory("snapshots")
|
||||
def sonatypeRepsoitory(status: String) =
|
||||
s""" sonatype-$status: https://oss.sonatype.org/content/repositories/$status"""
|
||||
def typesafeRepository(status: String) =
|
||||
""" typesafe-ivy-%s: https://repo.typesafe.com/typesafe/ivy-%<s/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly""" format status
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue