Interface SonatypeRepositories

All Known Implementing Classes:
SonatypeRepositoriesImpl

public interface SonatypeRepositories
An extension to RepositoryHandler that allows configuring Sonatype OSSRH snapshot repositories.
Since:
2.1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gradle.api.artifacts.repositories.MavenArtifactRepository
    Add the Sonatype OSS snapshot repository to this project.
    default org.gradle.api.artifacts.repositories.MavenArtifactRepository
    Add the new Sonatype OSS snapshot repository to this project.
    org.gradle.api.artifacts.repositories.MavenArtifactRepository
    snapshotsOn(int host)
    Add a specific numbered Sonatype OSS snapshots host to this project.
  • Field Details

  • Method Details

    • ossSnapshots

      org.gradle.api.artifacts.repositories.MavenArtifactRepository ossSnapshots()
      Add the Sonatype OSS snapshot repository to this project.

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

      Returns:
      the created repository
      Since:
      2.1.0
    • s01Snapshots

      default org.gradle.api.artifacts.repositories.MavenArtifactRepository s01Snapshots()
      Add the new Sonatype OSS snapshot repository to this project.

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

      Returns:
      the created repository
      Since:
      2.1.0
    • snapshotsOn

      org.gradle.api.artifacts.repositories.MavenArtifactRepository snapshotsOn(int host)
      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.

      Parameters:
      host - the host number
      Returns:
      the created repository
      Since:
      2.1.0