Class SonatypeRepositoriesImpl

    • Constructor Detail

      • SonatypeRepositoriesImpl

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

      • 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