Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/willis7/enterprise-gradle

A bootstrapped Gradle project which includes features such as Integration Testing, Code Coverage, SonarQube and Publishing
https://github.com/willis7/enterprise-gradle

Last synced: 20 days ago
JSON representation

A bootstrapped Gradle project which includes features such as Integration Testing, Code Coverage, SonarQube and Publishing

Awesome Lists containing this project

README

        

# Enterprise Gradle Bootstrap

This project is a simple, MVC-based web application written in Java. Its main purpose is to demonstrate implementation approaches for typical project automation requirements with the help of Gradle.

## Technical implementation

* Java-based web application.
* Web requests handled by Spring MVC.
* Dependency Injection with Spring Beans.
* Unit tests implemented with JUnit and Mockito.
* Integration tests use Spring Test.
* Target runtime environment: Apache Tomcat.

## Applied Gradle features

* Usage of the Gradle Wrapper.
* Jacoco code coverage reporting.
* PMD source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth.
* Findbugs source code analyzer. Performs quality checks on your project's Java source files.
* Dependency security checking. Checks dependencies which have been linked to your project for security violations.
* SonarQube integration.
* Deployment to an embedded [Tomcat](http://tomcat.apache.org/) container for local development.

## Running the application

You can run your application on your local machine. There’s no need to install a Servlet container. In a terminal
window execute the following command from the root level of the project:

**Mac OS X/*nix**

./gradlew tomcatRun

**Windows**

gradlew.bat tomcatRun

After a few moments, you will find the following output:

...
Started Tomcat Server
The Server is running at http://localhost:8080/sample-app

Open your browser of choice and navigate to the URL.