aboutsummaryrefslogtreecommitdiff
path: root/stage2/Lib.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-06-14 21:36:27 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-06-15 01:13:47 -0400
commit8794d3ce0ca7f92df24c317c9a9b7025aa0e3dee (patch)
tree60dc3f90c8936ccdaad56a5482a534efdc441eee /stage2/Lib.scala
parent10dbafc2117ba7b8e0183ac402176e7e815a5280 (diff)
downloadcbt-8794d3ce0ca7f92df24c317c9a9b7025aa0e3dee.tar.gz
cbt-8794d3ce0ca7f92df24c317c9a9b7025aa0e3dee.tar.bz2
cbt-8794d3ce0ca7f92df24c317c9a9b7025aa0e3dee.zip
adjust organization part of pom data model to better match the spec
Diffstat (limited to 'stage2/Lib.scala')
-rw-r--r--stage2/Lib.scala13
1 files changed, 7 insertions, 6 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala
index 71568b5..2a108ab 100644
--- a/stage2/Lib.scala
+++ b/stage2/Lib.scala
@@ -307,8 +307,7 @@ final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{
scmUrl: String, // seems like invalid URLs are used here in pom files
scmConnection: String,
inceptionYear: Int,
- organizationName: String,
- organizationUrl: URL,
+ organization: Option[Organization],
dependencies: Seq[Dependency],
jarTarget: File
): File = {
@@ -346,10 +345,12 @@ final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{
<connection>{scmConnection}</connection>
</scm>
<inceptionYear>{inceptionYear}</inceptionYear>
- <organization>
- <name>{organizationName}</name>
- <url>{organizationUrl}</url>
- </organization>
+ {organization.map{ org =>
+ <organization>
+ <name>{org.name}</name>
+ {org.url.map( url => <url>url</url> )}
+ </organization>
+ }}
<dependencies>
{
dependencies.map{