Multi-Module Spring Boot application with Gradle This repository is to show sample of multi-module spring boot application with Gradle
Github Actions Build status
Required Software, Tools and Version Java JDK Version: 11 Adopt OpenJDK (java -version) Git Client: Any latest version (git --version) Integrated Development Environment: Any version of IntelliJ Idea or Eclipse (withAnnotations Processing enabled forImmutables library) Swagger UI andOpenAPI docsUsingImmutables java library for request and response dto in REST apis Thymeleaf templates in server side web or htmlLogback for application logsLogback Access for tomcat access logsRest Assured library for testing api withrequest,response andcurl commands captured in console and gradle test reportsFeature toggle integration test for spring applicationMulti-module structure whichreuses test classes betweenunit,integration andacceptance tests Run unit and developer integration tests Open the urls in the browser
http://localhost:8081http://localhost:8081/swagger-ui.htmlhttp://localhost:8081/api-docsjava -jar application/build/libs/application.jarRun the qa acceptance test against target environment ./gradlew clean qaAcceptanceTest -DtestEnvironment=developmentor
TEST_ENVIRONMENT='development' ./gradlew clean qaAcceptanceTestRun the qa acceptance test against local Run the application in a terminal
Run the tests in another terminal window
./gradlew clean qaAcceptanceTest