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)
|
.withExtra(pomExtra.value)
|
||||||
.withProcess(pomPostProcess.value)
|
.withProcess(pomPostProcess.value)
|
||||||
.withFilterRepositories(pomIncludeRepository.value)
|
.withFilterRepositories(pomIncludeRepository.value)
|
||||||
.withAllRepositories(pomAllRepositories.value),
|
.withAllRepositories(pomAllRepositories.value)
|
||||||
|
.withConfigurations(Configurations.defaultMavenConfigurations),
|
||||||
makeIvyXmlConfiguration := {
|
makeIvyXmlConfiguration := {
|
||||||
makeIvyXmlConfig(
|
makeIvyXmlConfig(
|
||||||
publishMavenStyle.value,
|
publishMavenStyle.value,
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@ lazy val root = (project in file(".")).
|
||||||
configs(Custom).
|
configs(Custom).
|
||||||
settings(
|
settings(
|
||||||
TaskKey[Unit]("checkPom") := checkPom.value,
|
TaskKey[Unit]("checkPom") := checkPom.value,
|
||||||
|
makePomConfiguration := {
|
||||||
|
val p = makePomConfiguration.value
|
||||||
|
p.withConfigurations(Configurations.defaultMavenConfigurations :+ Custom)
|
||||||
|
},
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
"a" % "a" % "1.0",
|
"a" % "a" % "1.0",
|
||||||
"b" % "b" % "1.0" % "runtime,optional",
|
"b" % "b" % "1.0" % "runtime,optional",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue