Skip to content

Update to Mill 1.0.0-RC1 #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,14 @@ jobs:
distribution: 'temurin'
java-version: 11
- name: Publish to Maven Central
run: ./mill -i mill.scalalib.PublishModule/
run: ./mill -i mill.scalalib.SonatypeCentralPublishModule/

- name: Create GitHub Release
id: create_gh_release
# WARN: `actions/create-release` is currently unmaintained. It just works now, keep it until it breaks.
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body:
draft: false
1 change: 0 additions & 1 deletion .mill-version

This file was deleted.

26 changes: 13 additions & 13 deletions build.mill
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//| mill-version: 1.0.0-RC1
//| mvnDeps:
//| - com.github.lolgab::mill-mima_mill1.0.0-RC1:0.2.0-M1
package build

import mill._
import scalalib._
import scalanativelib._
import mill.scalalib.publish.{Developer, License, PomSettings, VersionControl}

import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.1`
import $ivy.`com.github.lolgab::mill-mima::0.0.24`

import de.tobiasroeser.mill.vcs.version.VcsVersion
import mill.main.VcsVersion
import com.github.lolgab.mill.mima._

val scalaNextVersion = sys.props.get("scalaNextVersion")
Expand Down Expand Up @@ -40,19 +40,19 @@ trait RequestsPublishModule extends PublishModule with MimaCheck {
)
)

def ivyDeps = Agg(ivy"com.lihaoyi::geny::1.1.1")
def mvnDeps = Seq(mvn"com.lihaoyi::geny::1.1.1")
}

trait RequestsCrossScalaModule extends CrossScalaModule with ScalaModule {
def millSourcePath = build.millSourcePath / "requests"
def sources = T.sources(millSourcePath / "src")
def moduleDir = build.moduleDir / "requests"
def sources = Task.Sources("src")
}

trait RequestsTestModule extends TestModule.Utest {
def ivyDeps = Agg(
ivy"com.lihaoyi::utest::0.7.10",
ivy"com.lihaoyi::ujson::1.3.13",
ivy"com.dimafeng::testcontainers-scala-core:0.41.3"
def mvnDeps = Seq(
mvn"com.lihaoyi::utest::0.7.10",
mvn"com.lihaoyi::ujson::1.3.13",
mvn"com.dimafeng::testcontainers-scala-core:0.41.3"
)
}

Expand All @@ -65,8 +65,8 @@ object requests extends Module {
// trait RequestsNativeModule extends ScalaNativeModule with RequestsPublishModule {
// override def scalaNativeVersion = scalaNativeVer
//
// def ivyDeps =
// super.ivyDeps() ++ Agg(ivy"com.github.lolgab::scala-native-crypto::0.1.0")
// def mvnDeps =
// super.mvnDeps() ++ Seq(mvn"com.github.lolgab::scala-native-crypto::0.1.0")
//
// object test extends ScalaNativeTests with RequestsTestModule
// }
Expand Down
Loading