Add Custom scope to pom configuration

This commit is contained in:
Philippus 2018-08-13 22:37:55 +02:00
parent 15e6cdfd68
commit 1c5fd5bece
No known key found for this signature in database
GPG Key ID: 5C0AE9D9F7BC0247
1 changed files with 4 additions and 0 deletions

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