Search...
Toggle theme

Foundations 5.3.x - Trial

How to configure NES for Spring Foundations 5.3.x Trial Version

System Requirements

See our Minimum Requirements for using NES for Spring products.

Maven

  1. Update your pom.xml with NES package versions and repository details
  2. Set up Maven settings for trial
  3. Install & Run!

Example References Application

You can access and clone the these sample applications using NES for Spring to try out installing and building. A more detailed README file is provided in the example application.

Additionally, you can view an example Github commit to see exactly what code aspects to change to drop-in NES packages.

Detailed Maven Instructions

1. Update your Maven build files

Substitute Spring dependencies in your pom.xml like the following example (use appropriate version).

pom.xml
<parent>
  <groupId>com.herodevs.nes.springframework.boot</groupId>
  <artifactId>spring-boot-starter-parent</artifactId>

  <!-- NES version here -->  
  <version>2.7.18-spring-boot-2.7.19-trial</version>

  <relativePath />
</parent>

<!-- ... -->
<dependencies>
  <dependency>
    <groupId>com.herodevs.nes.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
  </dependency>
  <dependency>
    <groupId>com.herodevs.nes.springframework.boot</groupId>
    <artifactId>spring-boot-starter-test</artifactId>
    <scope>test</scope>
  </dependency>

<!-- other dependencies as needed -->

</dependencies>
<!-- ... -->

<repositories>
  <repository>
    <id>herodevs-nes-registry</id>
    <url>https://registry.nes.herodevs.com/maven</url>
  </repository>
</repositories>

<pluginRepositories>
  <pluginRepository>
    <id>herodevs-nes-registry</id>
    <url>https://registry.nes.herodevs.com/maven</url>
  </pluginRepository>
</pluginRepositories>

2. Set Up Access

See our Registry Access Trial guide for setting up a Maven settings.xml with access the HeroDevs NES registry.

~/.m2/settings.xml
<settings>
  <servers>
    <!-- Other server settings -->
    <server>
      <id>herodevs-nes-registry</id>
      <username>some@email.com</username>
    </server>
  </servers>
</settings>

3. Install and Run

Install and Run your application

./mvnw clean install -U

./mvnw spring-boot:run
./mvnw -s ./settings.xml clean install -U

Gradle

  1. Update your build.gradle
  2. Update your Gradle properties for trial
  3. Build & Run

Example Reference Application

You can access and clone the these sample applications using NES for Spring to try out installing and building. A more detailed README file is provided in the example application.

Additionally, you can view an example Github commit to see exactly what code aspects to change to drop-in NES packages.

Detailed Gradle Instructions

1. Update your Gradle build files

Substitute Spring dependencies in your build.gradle like the following example (use appropriate version).

build.gradle
plugins {
  id 'java'
  id 'com.herodevs.nes.springframework.boot' version '2.7.18-spring-boot-2.7.19-trial'
  id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}

//...

dependencies {
  implementation "com.herodevs.nes.springframework.boot:spring-boot-starter-web"
  implementation "com.herodevs.nes.springframework.boot:spring-boot-starter-security"
  implementation "com.herodevs.nes.springframework.boot:spring-boot-starter-validation"
}

2. Set Up Access

For more information, see our Registry Access guide for configuring Gradle with the HeroDevs NES registry.

Add NES repository information to global Gradle properties file (e.g. ~/.gradle/gradle.properties)

~/.gradle/gradle.properties
herodevs_nes_registry_url=https://registry.nes.herodevs.com/maven
herodevs_nes_registry_user=valid@email.com

Add the NES Maven repository to Gradle build files.

build.gradle
//...
repositories {
  maven {
    url = uri(providers.gradleProperty("herodevs_nes_registry_url").get())
    credentials {
      username = providers.gradleProperty("herodevs_nes_registry_user").get()
    }
  }
  mavenCentral()
}
//...
settings.gradle
//...
pluginManagement {
  repositories {
    maven {
      url = uri(providers.gradleProperty("herodevs_nes_registry_url").get())
      credentials {
        username = providers.gradleProperty("herodevs_nes_registry_user").get()
      }
    }
    mavenCentral()
  }
}

3. Install and Run

Install and run your application

./gradlew build

./gradlew bootRun

Additional Information

The direct download URLs for NES for Spring: Foundations 5.3.x follow this format:

PortionValue
base_url<https://registry.nes.herodevs.com/maven/com/herodevs/nes/springframework/boot />
package_namespring-boot-starter-parent
version2.7.18-spring-boot-2.7.19-trial
filenamepackage_name + version + extension

https://registry.nes.herodevs.com/maven/com/herodevs/nes/springframework/boot/spring-boot-starter-parent/2.7.18-spring-boot-2.7.19-trial/spring-boot-starter-parent-2.7.18-spring-boot-2.7.19-trial.pom