Changing between maven and gradle in a project

已回答

My company has a project that was originally built using maven.   It has been migrated to gradle.

I need to be able to switch between two branches in the versioning system, one is gradle currently, the other is maven.

Is there a non painful way to do this in IJ?  I cannot seem to get IJ to re-import using the different build systems.  We will be done and fully in Gradle someday, but not right now and I need to be able to swap these out pretty regularly for some time.

0

Hello, Michael!

Thank you for reporting this!

You should be able to force IDEA to import the Project using a specific Build System by navigating to Project Tool Window (switch to the “Project Files” view, if needed) and right-clicking the root pom.xml / build.gradle(.kts).

There should be “Add as Maven Project” / “Link Gradle Project” option respectively.

Let me know if it works for you!

0

请先登录再写评论。