Class SonatypeRepositoriesImpl

java.lang.Object
net.kyori.indra.internal.SonatypeRepositoriesImpl
All Implemented Interfaces:
SonatypeRepositories

public class SonatypeRepositoriesImpl extends Object implements SonatypeRepositories
  • Constructor Details

    • SonatypeRepositoriesImpl

      @Inject public SonatypeRepositoriesImpl(org.gradle.api.artifacts.dsl.RepositoryHandler repositories)
  • Method Details

    • ossSnapshots

      public org.gradle.api.artifacts.repositories.MavenArtifactRepository ossSnapshots()
      Description copied from interface: SonatypeRepositories
      Add the Sonatype OSS snapshot repository to this project.

      The URL for this repository is https://oss.sonatype.org/content/repositories/snapshots/.

      Specified by:
      ossSnapshots in interface SonatypeRepositories
      Returns:
      the created repository
    • snapshotsOn

      public org.gradle.api.artifacts.repositories.MavenArtifactRepository snapshotsOn(int host)
      Description copied from interface: SonatypeRepositories
      Add a specific numbered Sonatype OSS snapshots host to this project.

      The URL for this repository is https://s<host>.oss.sonatype.org/content/repositories/snapshots/.

      As of this writing, only one host exists -- s01.

      Specified by:
      snapshotsOn in interface SonatypeRepositories
      Parameters:
      host - the host number
      Returns:
      the created repository