Skip to content

Commit 75ea803

Browse files
committed
Prefix project name with "scala-".
This way we get correct jar names. We had to tweak properties generation because over there we use project name as a file name without "scala-" prefix.
1 parent 9091f4d commit 75ea803

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

build.sbt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,8 @@ lazy val root = (project in file(".")).
177177
*/
178178
def configureAsSubproject(project: Project): Project = {
179179
val base = file(".") / "src" / project.id
180-
(project in base).settings(scalaSubprojectSettings: _*)//.
181-
// uncommenting this line causes `update` to fail with:
182-
// [error] a module is not authorized to depend on itself: org.scala-lang#scala-library;2.11.5
183-
// Ouch! This is tracked here: https://github.com/sbt/sbt/issues/1872
184-
//settings(name := s"scala-${project.id}")
180+
(project in base).settings(scalaSubprojectSettings: _*).
181+
settings(name := s"scala-${project.id}")
185182
}
186183

187184
/**
@@ -220,7 +217,7 @@ lazy val copyrightString = settingKey[String]("Copyright string.")
220217
lazy val generateVersionPropertiesFile = taskKey[File]("Generating version properties file.")
221218

222219
lazy val generateVersionPropertiesFileImpl: Def.Initialize[Task[File]] = Def.task {
223-
val propFile = (resourceManaged in Compile).value / s"${name.value}.properties"
220+
val propFile = (resourceManaged in Compile).value / s"${thisProject.value.id}.properties"
224221
val props = new java.util.Properties
225222

226223
/**

0 commit comments

Comments
 (0)