Class SpringRepositoryPlugin

java.lang.Object
org.springframework.gradle.repository.SpringRepositoryPlugin
All Implemented Interfaces:
org.gradle.api.Plugin<org.gradle.api.Project>

public abstract class SpringRepositoryPlugin extends Object implements org.gradle.api.Plugin<org.gradle.api.Project>
Adds the Maven repositories needed to resolve Spring dependencies, in this order:
  1. mavenLocal, when forceMavenRepositories contains local
  2. Maven Central
  3. the release train repository, when RELEASE_TRAIN_MAVEN_REPOSITORY_URL is set
  4. the Spring snapshot, milestone and release repositories
  5. the repositories for a non-OSS releaseChannel
Repositories are added after the project is evaluated.
  • Constructor Details

    • SpringRepositoryPlugin

      public SpringRepositoryPlugin()
  • Method Details

    • apply

      public void apply(org.gradle.api.Project project)
      Specified by:
      apply in interface org.gradle.api.Plugin<org.gradle.api.Project>