Skip to content

Commit

Permalink
Merge pull request #77 from Atry/master
Browse files Browse the repository at this point in the history
Separate path element with a dot instead of dash
  • Loading branch information
Atry authored Jun 12, 2019
2 parents 85d86a7 + 7828bef commit 2aee0b8
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.thoughtworks.sbtBestPractice
import sbt.Keys._
package com.thoughtworks.sbtBestPractice.subdirectoryOrganization

import sbt.Keys.{baseDirectory, organization}
import sbt._

/**
Expand All @@ -19,7 +20,7 @@ object SubdirectoryOrganization extends AutoPlugin {
case null =>
organization.value
case parent =>
s"${organization.value}.${Project.normalizeModuleID(parent.replace('/', '.'))}"
parent.split('/').map(Project.normalizeModuleID).mkString(organization.value, ".", "")
}
}
}
Expand Down

0 comments on commit 2aee0b8

Please sign in to comment.