Skip to content

feat: add Mill build system and Google Java Format #32

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: main
Choose a base branch
from

Conversation

taciturnaxolotl
Copy link
Member

@taciturnaxolotl taciturnaxolotl commented Aug 12, 2025

Summary

This PR introduces Mill as a modern alternative build system to Gradle, along with Google Java Format for consistent code styling.

What is Mill?

Mill is a modern build tool that offers fast incremental compilation, simple configuration, and built-in caching. It works identically across Windows, macOS, and Linux.

Fancy features

  • Everything works with mill! - All WPILib 2025 and vendor dependencies work so far; more testing with actually deploying is needed though
  • Google Java Format - Automatic code formatting with git hooks that should be consistent across all machines
  • GitHub CI - Automated formatting checks and compilation to catch stuff earlier

Installation

# Install Mill
curl -L https://github.com/com-lihaoyi/mill/releases/latest/download/mill > mill && chmod +x mill

# Or: brew install mill (macOS) / choco install mill (Windows)

# Setup project
mill setupGitHooks  # Install pre-commit formatting
mill compile        # Build robot code
mill deploy         # Deploy to RoboRIO

Gradle still works - this is additive. We can try Mill while keeping Gradle as backup.

@taciturnaxolotl taciturnaxolotl force-pushed the taciturnaxolotl/mill branch 2 times, most recently from 64fe8df to f1d2e18 Compare August 12, 2025 02:18
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.

2 participants