Step 1 - Getting the code
In order to see how to work with Gradle and SonarQube, we need to start from a "Java with Gradle" project; either get one of yours or build a new one. If you work with an IDE like Apache Netbeans, you could create a simple "Java SE Application Gradle Project" as shown in the following picture.
This creates a proper "Java with Gradle" project, that is a project where the files have the required structure and where a set of default Gradle configuration files has already been prepared by the IDE.
For your convenience, in the home directory of the user "isvv" (/home/isvv), a simple "Java SE Application Gradle Project", called "IocGradle" has already been created.
This project is a small and simple example of the Inversion of Control (a.k.a. IoC) programming principle; you are invited to study it.
Of course, this project has already the proper configuration files, that is:
- "build.gradle"
- "settings.gradle"
- "gradle.properties"
For convenience, the user "isvv" can launch from her home the Apache Netbeans IDE, with the "IocGradle" project already preconfigured.