Merge pull request #4300 from Philippus/default-maven-configs

Set default maven configurations in pom configuration, fixes #1380
This commit is contained in:
eugene yokota 2018-08-14 15:56:45 -04:00 committed by GitHub
commit 74f5cdc630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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,

View File

@ -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",