File tree 5 files changed +26
-6
lines changed
5 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,15 @@ import mill.scalalib._
5
5
import mill.scalalib.scalafmt._
6
6
7
7
import build._
8
+ import build_.release
8
9
9
10
object `package` extends RootModule with CIRCTPanamaBinding
10
11
11
12
// Java Codegen for all declared functions.
12
13
// All of these functions are not private API which is subject to change.
13
- trait CIRCTPanamaBinding extends HasJextractGeneratedSources {
14
+ trait CIRCTPanamaBinding extends HasJextractGeneratedSources with release.ChiselPublishModule {
15
+ override def javadocOptions = Task(super.javadocOptions() ++ Seq("--enable-preview", "--release", "21"))
16
+
14
17
object utils extends Module {
15
18
val architecture = System.getProperty("os.arch")
16
19
val operationSystem = System.getProperty("os.name")
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import mill.scalalib.scalafmt._
6
6
import mill.define.Cross
7
7
8
8
import build._
9
+ import build_.release
9
10
10
11
object `package` extends RootModule {
11
12
// https://github.com/com-lihaoyi/mill/issues/3693
@@ -17,12 +18,16 @@ trait PanamaConverter
17
18
with HasPanamaOMModule
18
19
with CrossModuleBase
19
20
with HasScala2Plugin
20
- with ScalafmtModule {
21
+ with ScalafmtModule
22
+ with release.ChiselPublishModule {
21
23
def millSourcePath = super.millSourcePath / os.up
22
24
23
25
def panamaOMModule = panamaom.cross(crossScalaVersion)
24
26
def chiselModule = chisel(crossScalaVersion)
25
27
def pluginModule = plugin.cross(crossScalaVersion)
26
28
27
- override def moduleDeps = super.moduleDeps ++ Some(chiselModule)
29
+ // use to be propagated to downstream modules
30
+ override def moduleDeps = super.moduleDeps ++ Some(unipublish)
31
+
32
+ override def compileClasspath = Task { super.compileClasspath() ++ unipublish.localClasspath() }
28
33
}
Original file line number Diff line number Diff line change @@ -6,14 +6,20 @@ import mill.scalalib.scalafmt._
6
6
import mill.define.Cross
7
7
8
8
import build._
9
+ import build_.release
9
10
10
11
object `package` extends RootModule {
11
12
// https://github.com/com-lihaoyi/mill/issues/3693
12
13
object cross extends Cross[PanamaLib](v.scalaCrossVersions)
13
14
}
14
15
15
16
// The Scala API for PanamaBinding, API here is experimentally public to all developers
16
- trait PanamaLib extends ScalaModule with HasCIRCTPanamaBindingModule with CrossModuleBase with ScalafmtModule {
17
+ trait PanamaLib
18
+ extends ScalaModule
19
+ with HasCIRCTPanamaBindingModule
20
+ with CrossModuleBase
21
+ with ScalafmtModule
22
+ with release.ChiselPublishModule {
17
23
def millSourcePath = super.millSourcePath / os.up
18
24
19
25
def circtPanamaBindingModule = circtpanamabinding
Original file line number Diff line number Diff line change @@ -6,13 +6,19 @@ import mill.scalalib.scalafmt._
6
6
import mill.define.Cross
7
7
8
8
import build._
9
+ import build_.release
9
10
10
11
object `package` extends RootModule {
11
12
// https://github.com/com-lihaoyi/mill/issues/3693
12
13
object cross extends Cross[PanamaOM](v.scalaCrossVersions)
13
14
}
14
15
15
- trait PanamaOM extends ScalaModule with HasPanamaLibModule with CrossModuleBase with ScalafmtModule {
16
+ trait PanamaOM
17
+ extends ScalaModule
18
+ with HasPanamaLibModule
19
+ with CrossModuleBase
20
+ with ScalafmtModule
21
+ with release.ChiselPublishModule {
16
22
def millSourcePath = super.millSourcePath / os.up
17
23
18
24
def panamaLibModule = panamalib.cross(crossScalaVersion)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import mill.scalalib.scalafmt._
6
6
import mill.define.Cross
7
7
8
8
import build._
9
- import $file .release
9
+ import build_ .release
10
10
11
11
object `package` extends RootModule {
12
12
// https://github.com/com-lihaoyi/mill/issues/3693
You can’t perform that action at this time.
0 commit comments