From b5d86995128a45c33117ecfb7365f0eb2b450a61 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Fri, 8 Jul 2016 14:24:35 -0400 Subject: fix Organization and url in pom file --- stage2/Lib.scala | 102 +++++++++++++++++++++++++++---------------------------- 1 file changed, 50 insertions(+), 52 deletions(-) diff --git a/stage2/Lib.scala b/stage2/Lib.scala index 81d36f3..118c9a4 100644 --- a/stage2/Lib.scala +++ b/stage2/Lib.scala @@ -298,58 +298,56 @@ final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{ jarTarget: File ): File = { val xml = - - 4.0.0 - {groupId} - {artifactId ++ "_" ++ scalaMajorVersion} - {version} - jar - {name} - {description} - {url} - - {licenses.map{ license => - - {license.name} - {license.url} - repo - - }} - - - {developers.map{ developer => - - {developer.id} - {developer.name} - {developer.timezone} - {developer.url} - - }} - - - {scmUrl} - {scmConnection} - - {inceptionYear} - {organization.map{ org => - - {org.name} - {org.url.map( url => url )} - - }} - - { - dependencies.map{ - case d:ArtifactInfo => - - {d.groupId} - {d.artifactId} - {d.version} - - } - } - - + + 4.0.0 + {groupId} + {artifactId ++ "_" ++ scalaMajorVersion} + {version} + jar + {name} + {description} + {url} + + {licenses.map{ license => + + {license.name} + {license.url.map(url => url).getOrElse( scala.xml.NodeSeq.Empty )} + repo + + }} + + + {developers.map{ developer => + + {developer.id} + {developer.name} + {developer.timezone} + {developer.url} + + }} + + + {scmUrl} + {scmConnection} + + {inceptionYear} + {organization.map{ org => + + {org.name} + {org.url.map( url => url ).getOrElse( scala.xml.NodeSeq.Empty )} + + }.getOrElse(scala.xml.NodeSeq.Empty)} + + {dependencies.map{ + case d:ArtifactInfo => + + {d.groupId} + {d.artifactId} + {d.version} + + }} + + // FIXME: do not build this file name including scalaMajorVersion in multiple places val path = jarTarget.toString ++ ( "/" ++ artifactId++ "_" ++ scalaMajorVersion ++ "-" ++ version ++ ".pom" ) val file = new File(path) -- cgit v1.2.3