mirror of https://github.com/sbt/sbt.git
add checks to Artifact.extra
This commit is contained in:
parent
291e2dc17e
commit
7340febe05
|
|
@ -323,7 +323,7 @@ final case class Configuration(name: String, description: String, isPublic: Bool
|
||||||
|
|
||||||
final case class Artifact(name: String, `type`: String, extension: String, classifier: Option[String], configurations: Iterable[Configuration], url: Option[URL], extraAttributes: Map[String,String]) extends NotNull
|
final case class Artifact(name: String, `type`: String, extension: String, classifier: Option[String], configurations: Iterable[Configuration], url: Option[URL], extraAttributes: Map[String,String]) extends NotNull
|
||||||
{
|
{
|
||||||
def extra(attributes: (String,String)*) = Artifact(name, `type`, extension, classifier, configurations, url, extraAttributes ++ attributes)
|
def extra(attributes: (String,String)*) = Artifact(name, `type`, extension, classifier, configurations, url, extraAttributes ++ ModuleID.checkE(attributes))
|
||||||
}
|
}
|
||||||
object Artifact
|
object Artifact
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ private object IvyScala
|
||||||
private def configurationSet(configurations: Iterable[Configuration]) = HashSet(configurations.map(_.toString).toSeq : _*)
|
private def configurationSet(configurations: Iterable[Configuration]) = HashSet(configurations.map(_.toString).toSeq : _*)
|
||||||
/** Adds exclusions for the scala library and compiler jars so that they are not downloaded. This is
|
/** Adds exclusions for the scala library and compiler jars so that they are not downloaded. This is
|
||||||
* done because normally these jars are already on the classpath and cannot/should not be overridden. The version
|
* done because normally these jars are already on the classpath and cannot/should not be overridden. The version
|
||||||
* of Scala to use is done by setting scala.version in the project definition. */
|
* of Scala to use is done by setting build.scala.versions in the project definition. */
|
||||||
private def excludeScalaJars(module: DefaultModuleDescriptor, configurations: Iterable[Configuration])
|
private def excludeScalaJars(module: DefaultModuleDescriptor, configurations: Iterable[Configuration])
|
||||||
{
|
{
|
||||||
val configurationNames =
|
val configurationNames =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue