Skip to content

Commit a954162

Browse files
authored
Update to Mill 1.0.0 (#201)
1 parent cf41094 commit a954162

File tree

5 files changed

+322
-65
lines changed

5 files changed

+322
-65
lines changed

.github/workflows/actions.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,14 @@ jobs:
6464
distribution: 'temurin'
6565
java-version: 11
6666
- name: Publish to Maven Central
67-
run: ./mill -i mill.scalalib.PublishModule/
67+
run: ./mill -i mill.scalalib.SonatypeCentralPublishModule/
68+
6869
- name: Create GitHub Release
6970
id: create_gh_release
70-
# WARN: `actions/create-release` is currently unmaintained. It just works now, keep it until it breaks.
7171
uses: actions/[email protected]
7272
env:
7373
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
7474
with:
7575
tag_name: ${{ github.ref }}
7676
release_name: ${{ github.ref }}
77-
body:
7877
draft: false

.mill-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

build.mill

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
//| mill-version: 1.0.0
2+
//| mvnDeps:
3+
//| - com.github.lolgab::mill-mima_mill1:0.2.0
14
package build
25

36
import mill._
47
import scalalib._
58
import scalanativelib._
69
import mill.scalalib.publish.{Developer, License, PomSettings, VersionControl}
710

8-
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.1`
9-
import $ivy.`com.github.lolgab::mill-mima::0.0.24`
10-
11-
import de.tobiasroeser.mill.vcs.version.VcsVersion
11+
import mill.util.VcsVersion
1212
import com.github.lolgab.mill.mima._
1313

1414
val scalaNextVersion = sys.props.get("scalaNextVersion")
@@ -40,19 +40,19 @@ trait RequestsPublishModule extends PublishModule with MimaCheck {
4040
)
4141
)
4242

43-
def ivyDeps = Agg(ivy"com.lihaoyi::geny::1.1.1")
43+
def mvnDeps = Seq(mvn"com.lihaoyi::geny::1.1.1")
4444
}
4545

4646
trait RequestsCrossScalaModule extends CrossScalaModule with ScalaModule {
47-
def millSourcePath = build.millSourcePath / "requests"
48-
def sources = T.sources(millSourcePath / "src")
47+
def moduleDir = build.moduleDir / "requests"
48+
def sources = Task.Sources("src")
4949
}
5050

5151
trait RequestsTestModule extends TestModule.Utest {
52-
def ivyDeps = Agg(
53-
ivy"com.lihaoyi::utest::0.7.10",
54-
ivy"com.lihaoyi::ujson::1.3.13",
55-
ivy"com.dimafeng::testcontainers-scala-core:0.41.3"
52+
def mvnDeps = Seq(
53+
mvn"com.lihaoyi::utest::0.7.10",
54+
mvn"com.lihaoyi::ujson::1.3.13",
55+
mvn"com.dimafeng::testcontainers-scala-core:0.41.3"
5656
)
5757
}
5858

@@ -65,8 +65,8 @@ object requests extends Module {
6565
// trait RequestsNativeModule extends ScalaNativeModule with RequestsPublishModule {
6666
// override def scalaNativeVersion = scalaNativeVer
6767
//
68-
// def ivyDeps =
69-
// super.ivyDeps() ++ Agg(ivy"com.github.lolgab::scala-native-crypto::0.1.0")
68+
// def mvnDeps =
69+
// super.mvnDeps() ++ Seq(mvn"com.github.lolgab::scala-native-crypto::0.1.0")
7070
//
7171
// object test extends ScalaNativeTests with RequestsTestModule
7272
// }

0 commit comments

Comments
 (0)