-
-
Notifications
You must be signed in to change notification settings - Fork 421
Closed
Labels
bountyThe fix/close of this issue is rewarded with a bountyThe fix/close of this issue is rewarded with a bounty
Milestone
Description
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.millcontaining aMavenModulefor the rootpom.xml, thepackage.millfor any subfolderpom.xmls - Convert the main and test dependencies on third-party libraries to
ivyDeps - Convert inter-subproject dependencies to
moduleDeps - Set any necessary
javacOptions - Implement
PublishModulewith 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:
- Gradle's Maven Importer https://docs.gradle.org/current/userguide/build_init_plugin.html#sec:pom_maven_conversion
- SBT's POM Reader Plugin https://github.com/sbt/sbt-pom-reader
Metadata
Metadata
Assignees
Labels
bountyThe fix/close of this issue is rewarded with a bountyThe fix/close of this issue is rewarded with a bounty