This sample application uses the HeroDevs NES for Spring Boot 2.7 trial application. This repository demonstrates how to use Gradle 4.5 with the HeroDevs NES for Spring Boot 2.7 trial version.
🟡 Caution: This repository demonstrates a quick and simple way to integrate with the HeroDevs NES repository. Usernames and password values are hard coded in Gradle files. When moving to production, take care of your username and password values in a more secure way.
This application stores Pet data in a local H2 database. The information is automatically loaded when the Spring Boot application starts and is exposed via REST endpoints.
This application uses:
- Spring Boot 1.5
- Spring Framework 4.3
- Spring Security 4.2
- Spring Data JPA 1.11
These versions are managed by Spring Boot.
If you run the command
./gradlew version
You should see that the Gradle wrapper is using Gradle 4.5.
user_name@mac trial-spring-boot-2-7-gradle-4-5 % ./gradlew --version
------------------------------------------------------------
Gradle 4.5
------------------------------------------------------------
Now build the application with:
./gradlew clean build
And you should get a successful build.
Congratulations! Your Spring project is ready to be secure. Contact HeroDevs for a registry token to get full access. Simply change the herodevs_nes_registry_token
field in gradle.properties
or the password
in settings.xml
to your specific token and the next build will use NES for Spring dependencies with zero CVEs.