mirror of https://github.com/sbt/sbt.git
Merge pull request #4300 from Philippus/default-maven-configs
Set default maven configurations in pom configuration, fixes #1380
This commit is contained in:
commit
74f5cdc630
|
|
@ -2031,7 +2031,8 @@ object Classpaths {
|
|||
.withExtra(pomExtra.value)
|
||||
.withProcess(pomPostProcess.value)
|
||||
.withFilterRepositories(pomIncludeRepository.value)
|
||||
.withAllRepositories(pomAllRepositories.value),
|
||||
.withAllRepositories(pomAllRepositories.value)
|
||||
.withConfigurations(Configurations.defaultMavenConfigurations),
|
||||
makeIvyXmlConfiguration := {
|
||||
makeIvyXmlConfig(
|
||||
publishMavenStyle.value,
|
||||
|
|
|
|||
|
|
@ -4,6 +4,10 @@ lazy val root = (project in file(".")).
|
|||
configs(Custom).
|
||||
settings(
|
||||
TaskKey[Unit]("checkPom") := checkPom.value,
|
||||
makePomConfiguration := {
|
||||
val p = makePomConfiguration.value
|
||||
p.withConfigurations(Configurations.defaultMavenConfigurations :+ Custom)
|
||||
},
|
||||
libraryDependencies ++= Seq(
|
||||
"a" % "a" % "1.0",
|
||||
"b" % "b" % "1.0" % "runtime,optional",
|
||||
|
|
|
|||
Loading…
Reference in New Issue