Search...
Toggle theme

Registry Access - Trial

Setup for Maven/Gradle

The instructions below describe how to set up Maven and Gradle client with access to NES trial packages.

Maven

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

Gradle

Add the following into the properties files:

~/.gradle/gradle.properties
herodevs_nes_registry_url=https://registry.nes.herodevs.com/maven
herodevs_nes_registry_user=some@email.com
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()
  }
}