Gradle project in Netbeans(How can i migrate and set dependencies)

Hello everyone, I’m new to gradle. I would like to know a few things, if you can help me, I’m very grateful for that.

  1. I have several projects in netbeans and several repositories, what happens today is that I do not use gradle, so when I prepare the version, the .war file contains all the files of my project and also the repository, Not just the files needed from the repository(A feel ones). With this, I would like to know how can i migrate a project to the gradle and how I make the dependencies, to use just the necessary files in my .war. Can someone help me?

  2. Another detail would be the tests(tasks), could you give me more information on how I do this and how it works?

Thanks in advance! Thank you very much!

I’m waiting for an answer…