Skip to content

Support mill init from an existing Maven project (1500USD Bounty) #3449

@lihaoyi

Description

@lihaoyi

From the maintainer Li Haoyi: I'm putting a 1500USD bounty on this issue, payable by bank transfer on a merged PR implementing this.


We should be able to run ./mill init to do a best effort conversion of an existing Maven project to Mill:

  • Code-generate a build.mill containing a MavenModulefor the root pom.xml, the package.mill for any subfolder pom.xmls
  • Convert the main and test dependencies on third-party libraries to ivyDeps
  • Convert inter-subproject dependencies to moduleDeps
  • Set any necessary javacOptions
  • Implement PublishModule with relevant metadata
  • Support POM inheritance, dependency management, etc.

Such a conversion will never be 100%, but if we can automate 80% of the conversion that will already be a huge help for people migrating to Mill or even just trying it out

Some prior art that can be used as reference:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bountyThe fix/close of this issue is rewarded with a bounty

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions