@@ -2,7 +2,7 @@ import mill.define.Target
2
2
import mill .util .Jvm
3
3
import $ivy .`com.lihaoyi::mill-contrib-bloop:$MILL_VERSION`
4
4
import $ivy .`io.github.davidgregory084::mill-tpolecat::0.3.1`
5
- import $ivy .`de.tototec::de.tobiasroeser. mill.vcs.version ::0.2 .0`
5
+ import $ivy .`io.chris-kipp:: mill-ci-release ::0.1 .0`
6
6
7
7
import os .Path
8
8
import mill ._
@@ -12,7 +12,7 @@ import scalajslib._
12
12
import scalanativelib ._
13
13
import mill .scalajslib .api ._
14
14
import io .github .davidgregory084 ._
15
- import de . tobiasroeser .mill .vcs . version . VcsVersion
15
+ import io . kipp .mill .ci . release . CiReleaseModule
16
16
17
17
object versions {
18
18
val scala212Version = " 2.12.16"
@@ -270,12 +270,12 @@ trait RPCCrossPlatformModule extends Module { shared =>
270
270
}
271
271
}
272
272
273
- trait JsonRPCModule extends ScalaModule with PublishModule with scalafmt.ScalafmtModule {
273
+ trait JsonRPCModule extends ScalaModule with CiReleaseModule with scalafmt.ScalafmtModule {
274
274
def scalafmt () = T .command(reformat())
275
275
def fmt () = T .command(reformat())
276
276
def refreshedEnv = T .input(T .ctx().env)
277
277
def publishVersion = T {
278
- if (refreshedEnv().contains(" CI" )) VcsVersion .vcsState().format ()
278
+ if (refreshedEnv().contains(" CI" )) super .publishVersion ()
279
279
else " dev"
280
280
}
281
281
override def scalacOptions = T {
@@ -294,4 +294,8 @@ trait JsonRPCModule extends ScalaModule with PublishModule with scalafmt.Scalafm
294
294
Developer (" Baccata" , " Olivier Mélois" , " https://github.com/baccata" )
295
295
)
296
296
)
297
+
298
+ override def sonatypeUri = " https://s01.oss.sonatype.org/service/local"
299
+ override def sonatypeSnapshotUri =
300
+ " https://s01.oss.sonatype.org/content/repositories/snapshots"
297
301
}
0 commit comments