Skip to content

Commit

Permalink
Clean up ci/package.mill, enforce scalafmt on build.mill/`package…
Browse files Browse the repository at this point in the history
….mill` files in CI, break up `readme.adoc` (#4342)
  • Loading branch information
lihaoyi authored Jan 16, 2025
1 parent db05eaa commit b2111f4
Show file tree
Hide file tree
Showing 20 changed files with 3,065 additions and 3,019 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,7 @@ jobs:
uses: ./.github/workflows/post-build-raw.yml
with:
java-version: '17'
buildcmd: ./mill -i mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources + __.mimaReportBinaryIssues + __.fix --check + mill.javalib.palantirformat.PalantirFormatModule/ --check + mill.kotlinlib.ktlint.KtlintModule/checkFormatAll
buildcmd: |
set -eux
./mill -i mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll + __.mimaReportBinaryIssues + __.fix --check + mill.javalib.palantirformat.PalantirFormatModule/ --check + mill.kotlinlib.ktlint.KtlintModule/checkFormatAll
./mill -i --meta-level 1 mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll
14 changes: 8 additions & 6 deletions build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import mill.define.Cross

// plugins and dependencies
import $meta._
import $file.ci.shared
import $file.ci.upload

import $packages._

object Settings {
Expand Down Expand Up @@ -271,8 +270,7 @@ def millVersion: T[String] = Task.Input {
// Ignore local changes when computing the VCS version string,
// since we make those in CI and can promise they are safe
VcsVersion.calcVcsState(Task.log).copy(dirtyHash = None).format()
}
else "SNAPSHOT"
} else "SNAPSHOT"
}

def millLastTag: T[String] = Task {
Expand Down Expand Up @@ -596,8 +594,12 @@ trait MillStableScalaModule extends MillPublishScalaModule with Mima {
),

// Overrides added for new methods, ought to be safe
ProblemFilter.exclude[ReversedMissingMethodProblem]("mill.scalalib.JavaModule.mill$scalalib$JavaModule$$super$internalRepositories"),
ProblemFilter.exclude[ReversedMissingMethodProblem]("mill.scalanativelib.ScalaNativeModule.mill$scalanativelib$ScalaNativeModule$$super$coursierProject"),
ProblemFilter.exclude[ReversedMissingMethodProblem](
"mill.scalalib.JavaModule.mill$scalalib$JavaModule$$super$internalRepositories"
),
ProblemFilter.exclude[ReversedMissingMethodProblem](
"mill.scalanativelib.ScalaNativeModule.mill$scalanativelib$ScalaNativeModule$$super$coursierProject"
),

// https://github.com/com-lihaoyi/mill/pull/3503
ProblemFilter.exclude[ReversedMissingMethodProblem](
Expand Down
2,462 changes: 2,462 additions & 0 deletions changelog.adoc

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion ci/package.mill

This file was deleted.

8 changes: 0 additions & 8 deletions ci/shared.mill

This file was deleted.

45 changes: 0 additions & 45 deletions ci/upload.mill

This file was deleted.

4 changes: 1 addition & 3 deletions contrib/package.mill
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import build.Deps

// plugins and dependencies
import $meta._
import $file.ci.shared
import $file.ci.upload

object `package` extends RootModule {
def contribModules: Seq[ContribModule] =
Expand Down Expand Up @@ -115,7 +113,7 @@ object `package` extends RootModule {
def testArgs = Task {
super.testArgs() ++
Seq(
s"-DMILL_SCOVERAGE2_VERSION=${build.Deps.scalacScoverage2Plugin.dep.version}",
s"-DMILL_SCOVERAGE2_VERSION=${build.Deps.scalacScoverage2Plugin.dep.version}"
)
}

Expand Down
Loading

0 comments on commit b2111f4

Please sign in to comment.