refactor: use justfile as a command runner#255
Merged
chitralverma merged 4 commits intomainfrom Feb 17, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request refactors the build system to use justfile as the primary command runner, moving native library build logic from bash scripts in justfile into sbt tasks. The refactoring aims to consolidate build logic and provide a cleaner interface through just commands.
Changes:
- Moved native library generation logic from justfile bash script to sbt tasks in NativeBuildSettings.scala
- Added utility functions in Utils.scala for process execution and logging
- Created cleanHeaders command in ExtraCommands.scala
- Simplified justfile recipes to delegate to sbt commands
- Updated documentation (README.md, CONTRIBUTING.md) to reflect the new command patterns
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| project/Utils.scala | Added executeProcess and getProcessLogger utility functions, plus nativeRoot taskKey definition |
| project/NativeBuildSettings.scala | Moved native library build logic from justfile into generateNativeLibrary sbt task |
| project/GeneralSettings.scala | Added settings sequence with nativeRoot configuration (unused) |
| project/ExtraCommands.scala | Added cleanHeaders task to remove generated JNI headers |
| justfile | Simplified recipes to delegate to sbt commands instead of containing bash logic |
| build.sbt | Configured nativeRoot and applied ExtraCommands.commands |
| README.md | Updated build commands to use just instead of direct sbt calls |
| CONTRIBUTING.md | Updated development commands to use just instead of direct sbt calls |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.