aboutsummaryrefslogtreecommitdiff
path: root/stage2/Publish.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-04 02:55:14 +0000
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-04 20:43:13 -0500
commit4bd0255f0a39d87652c032533ce45eb65e8f3b1e (patch)
tree48704575b2b337feeeb457f7ab985fc5912e9c33 /stage2/Publish.scala
parent8d4d1b0f0b984ea39a92094e775e82bbb2bd9863 (diff)
downloadcbt-4bd0255f0a39d87652c032533ce45eb65e8f3b1e.tar.gz
cbt-4bd0255f0a39d87652c032533ce45eb65e8f3b1e.tar.bz2
cbt-4bd0255f0a39d87652c032533ce45eb65e8f3b1e.zip
handle trying to package / publish with no source files via exception
this saves us from having to do conditionals in several places
Diffstat (limited to 'stage2/Publish.scala')
-rw-r--r--stage2/Publish.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/stage2/Publish.scala b/stage2/Publish.scala
index a46e543..e80471f 100644
--- a/stage2/Publish.scala
+++ b/stage2/Publish.scala
@@ -15,12 +15,12 @@ trait PublishMaven extends PackageJars{
def organization: Option[Organization]
// ========== publish ==========
- private val releaseFolder = s"/${groupId.replace(".","/")}/${artifactId}_$scalaMajorVersion/$version/"
+ protected def releaseFolder = s"/${groupId.replace(".","/")}/${artifactId}_$scalaMajorVersion/$version"
def publishedArtifacts = `package` :+ pom
def publishLocal: Unit = lib.publishLocal(
- sourceFiles, publishedArtifacts, context.paths.mavenCache, releaseFolder
+ publishedArtifacts, context.paths.mavenCache, releaseFolder
)
// ========== package ==========