serenity-bdd / serenity-cucumber4-starter

48 stars 73 forks source link

Choose between Gradle and Maven #9

Closed BartVanRaemdonck closed 5 years ago

BartVanRaemdonck commented 5 years ago

The starter project has a Gradle and a Maven setup, but I'm missing some instructions, if you want to use only Gradle or only Maven. Just deleting the lib files doesn't do the trick. So how do you config the project if you only want to use Gradle for example? How do you safely remove the maven libs and pom file without breaking anything?

wakaleo commented 5 years ago

You don't need to delete anything - there is no obligation to use maven or the pom.xml file if you prefer to use the build.gradle script. If you really want to remove the Maven build script, just delete the pom.xml file.

BartVanRaemdonck commented 5 years ago

And what about all the maven libs? Because if you delete the maven libs, then the project is broken.

wakaleo commented 5 years ago

That's not how maven works; if you delete the Maven dependencies Maven will just re-download them when needed. Same for Gradle. I don't know what "lib files" you are referring to though.

BartVanRaemdonck commented 5 years ago

Picture 24

If I only want to use Gradle, I have to delete the pom.xml file, but also those maven lib files? Otherwise the project is polluted?

wakaleo commented 5 years ago

That's the IntelliJ configuration; just reimport the project as a Gradle project.

BartVanRaemdonck commented 5 years ago

Ok, thank you!