1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
import mill.scalalib
import mill.define.Command
import mill.scalalib.GenIdeaModule._
trait HelloWorldModule extends scalalib.ScalaModule {
def scalaVersion = "2.12.4"
object test extends super.Tests {
def testFrameworks = Seq("utest.runner.Framework")
}
def ideaJavaModuleFacets(ideaConfigVersion: Int): Command[Seq[JavaFacet]] = T.command {
ideaConfigVersion match {
case 4 =>
Seq(
JavaFacet("AspectJ", "AspectJ",
Element("configuration", childs = Seq(
Element("projectLibrary", childs = Seq(
Element("option", Map("name" -> "name", "value" -> "/tmp"))
))
))
)
)
}
}
override def ideaConfigFiles(ideaConfigVersion: Int): Command[Seq[IdeaConfigFile]] = T.command {
ideaConfigVersion match {
case 4 =>
Seq(
IdeaConfigFile(
name = "compiler.xml",
component = "AjcSettings",
config = Seq(Element("option", Map("name" -> "ajcPath", "value" -> "/tmp/aspectjtools.jar")))),
IdeaConfigFile(
name = "compiler.xml",
component = "CompilerConfiguration",
config = Seq(Element("option", Map("name" -> "DEFAULT_COMPILER", "value" -> "ajc")))
)
)
}
}
}
object HelloWorld extends HelloWorldModule
|