Skip to content

Commit

Permalink
fixes #201 change mill project path for sbt and maven tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rockjam committed Apr 18, 2018
1 parent ff572f2 commit 50fccd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scalalib/src/mill/scalalib/GenIdeaImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ object GenIdeaImpl {
val isTest = mod.isInstanceOf[TestModule]

val elem = moduleXmlTemplate(
mod.millModuleBasePath.value,
mod.intellijModulePath,
scalaVersionOpt,
Strict.Agg.from(resourcesPathRefs.map(_.path)),
Strict.Agg.from(normalSourcePaths),
Expand Down
2 changes: 2 additions & 0 deletions scalalib/src/mill/scalalib/JavaModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ trait JavaModule extends mill.Module with TaskModule { outer =>
def artifactName: T[String] = millModuleSegments.parts.mkString("-")

def artifactId: T[String] = artifactName()

def intellijModulePath: Path = millSourcePath
}

trait TestModule extends JavaModule with TaskModule {
Expand Down
2 changes: 2 additions & 0 deletions scalalib/src/mill/scalalib/MiscModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ trait MavenModule extends JavaModule{outer =>
override def resources = T.sources{ millSourcePath / 'src / 'main / 'resources }
trait Tests extends super.Tests with MavenTests {
override def millSourcePath = outer.millSourcePath
override def intellijModulePath = outer.millSourcePath / 'src / 'test
}
}

trait SbtModule extends MavenModule with ScalaModule{ outer =>
trait Tests extends super.Tests with MavenTests {
override def millSourcePath = outer.millSourcePath
override def intellijModulePath = outer.millSourcePath / 'src / 'test
}
}

Expand Down

0 comments on commit 50fccd4

Please sign in to comment.