Changing between maven and gradle in a project
Answered
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.
Please sign in to leave a comment.
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 rootpom.xml/build.gradle(.kts).There should be “
Add as Maven Project” / “Link Gradle Project” option respectively.Let me know if it works for you!