-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Support mill init
from existing Gradle project (1500USD Bounty)
#3962
Comments
CC @ajaychandran in case you're interested, since you're already familiar with all the code and much of it can be shared |
mill init
from existing Gradle project (1000USD Bounty)mill init
from existing Gradle project (1500USD Bounty)
Bumping the bounty from 1000->1500USD |
…ting Gradle project (com-lihaoyi#3962) referencing com-lihaoyi#3756 - Add an `InitFromGradleModule` object and the trait with the same name, with common logic extracted from the `InitMavenModule` trait into the `InitFromAnotherBuildToolModule` trait - Add necessary dependencies and repository to use the Gradle Tooling API - Add lines in `MainModule.init` for Gradle adapted from those for Maven - Copy and adapt `BuildGen` and `BuildGenConfig` for Gradle from the `maven` module - Initially configure the `GradleConnector` and retrieve the `GradleBuild` with the Gradle Tooling API in `mill.main.gradle.BuildGen` - extract and move common build generator logic into the `build-gen` module and the `buildgen` package A `CommonBuildGenConfig` is extracted for both Maven and Gradle. "ir.scala" and "Tree.scala" and moved here from the `maven` module. As the original `build` package name is somewhat too broad and its directory is ignored by .gitignore by default, I don't think it's a proper name to use here.
This is a bit of a disappointment for me as I've also been working on this for a while and looks like @ajaychandran has beaten me to it 😅. Congratulations Ajay! I hadn't seen any updates here in a while, and mistakenly assumed no one is working on it. So lesson learned – I should have commented and asked. I've encountered some points during my own implementation, so I'd like to join the code review and share some suggestions if I may. |
@ShreckYe please go ahead and join the code review! |
@ShreckYe in fact I'll happily pay you 500USD, separate from the bounty, just to give a rigorous code review of @ajaychandran's PR given your experience wrestling with the problem in your own fork |
Thanks @lihaoyi. I will do it now. |
From the maintainer Li Haoyi: I'm putting a 1500USD bounty on this issue, payable by bank transfer on a merged PR implementing this.
Same as #3449 and #3450 but for Gradle instead of Maven and SBT.
The text was updated successfully, but these errors were encountered: