Skip to content

try mill#27

Draft
rolang wants to merge 7 commits into
masterfrom
try-mill
Draft

try mill#27
rolang wants to merge 7 commits into
masterfrom
try-mill

Conversation

@rolang
Copy link
Copy Markdown
Owner

@rolang rolang commented May 31, 2026

No description provided.

rolang added 7 commits May 24, 2026 13:28
…SourceFiles

The ExampleModule trait defined moduleDir as a non-overriding def with
an absolute path, causing millSourcePath to dispatch to the parent's
default moduleDir. This left sources.dest empty and allSourceFiles empty,
so no .class files were produced and example.jsoniter.Json was missing
from the classpath (185 compilation errors).

Fix by using override def with the same relative-path pattern as CoreModule.
Also fix specFile path and cliBin usage.
- Replace VirtusLab/scala-cli-setup with actions/setup-java (no sbt needed)
- Replace 'sbt buildCliBinary test' with './mill tests.__.test'
- Replace 'sbt publishSigned sonaRelease' with './mill core.{jvm,native}.publish cli.publish'

The mill wrapper script in the project root bootstraps Mill 1.1.6 automatically.
…box violations

- Replace hardcoded /home/roman/... path with TaskCtx.workspace (Mill's
  official API for the project root inside tasks)
- Remove cliBinPath (wrote outside Task.dest, hit sandbox restriction);
  buildCliBinary now writes to Task.dest/cli
- Fix testLocal sources to use moduleDir instead of os.pwd
- Add import mill.api.TaskCtx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant