File tree Expand file tree Collapse file tree 2 files changed +20
-18
lines changed
Expand file tree Collapse file tree 2 files changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,27 @@ import mill.scalajslib.ScalaJSModule
1515import mill .scalalib ._
1616import mill .scalalib .publish ._
1717import mill .contrib .buildinfo .BuildInfo
18+ import $file .plugins .ci .CiReleaseModules
19+ import CiReleaseModules .{ReleaseModule , Discover }
1820
1921import scala .Ordering .Implicits ._
22+ import mill .eval .Evaluator
23+
24+ object InternalReleaseModule extends Module {
25+
26+ /** This is a replacement for the mill.scalalib.PublishModule/publishAll task
27+ * that should basically work identically _but_ without requiring the user to
28+ * pass in anything. It also sets up your gpg stuff and grabs the necessary
29+ * env variables to publish to sonatype for you.
30+ */
31+ def publishAll (ev : Evaluator ): Command [Unit ] = {
32+ ReleaseModule .publishAll(ev)
33+ }
34+
35+ import Discover ._
36+ lazy val millDiscover : mill.define.Discover [this .type ] =
37+ mill.define.Discover [this .type ]
38+ }
2039
2140object `compiler-core` extends Cross [CompilerCoreModule ](scalaVersions)
2241trait CompilerCoreModule
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import $file.buildDeps
66
77import header ._
88import $file .plugins .ci .CiReleaseModules
9- import CiReleaseModules .{CiReleaseModule , SonatypeHost , ReleaseModule , Discover }
9+ import CiReleaseModules .{CiReleaseModule , SonatypeHost , ReleaseModule }
1010import mill ._
1111import mill .scalajslib .api .ModuleKind
1212import mill .scalajslib .ScalaJSModule
@@ -17,23 +17,6 @@ import mill.contrib.buildinfo.BuildInfo
1717import mill .scalalib .api .ZincWorkerUtil
1818
1919import scala .Ordering .Implicits ._
20- import mill .eval .Evaluator
21-
22- object InternalReleaseModule extends Module {
23-
24- /** This is a replacement for the mill.scalalib.PublishModule/publishAll task
25- * that should basically work identically _but_ without requiring the user to
26- * pass in anything. It also sets up your gpg stuff and grabs the necessary
27- * env variables to publish to sonatype for you.
28- */
29- def publishAll (ev : Evaluator ): Command [Unit ] = {
30- ReleaseModule .publishAll(ev)
31- }
32-
33- import Discover ._
34- lazy val millDiscover : mill.define.Discover [this .type ] =
35- mill.define.Discover [this .type ]
36- }
3720
3821object ScalaVersions {
3922 val scala212 = " 2.12.18"
You can’t perform that action at this time.
0 commit comments