Interface RemoteRepository

    • Method Detail

      • all

        @NotNull
        static @NotNull RemoteRepository all​(String name,
                                             URI url)
        Create a repository that will publish/resolve both releases and snapshots.
        Parameters:
        name - the repository name
        url - the repository URL
        Returns:
        a new repository description
        Since:
        2.0.0
      • all

        @NotNull
        static @NotNull RemoteRepository all​(String name,
                                             String url)
        Create a repository that will publish/resolve both releases and snapshots.
        Parameters:
        name - the repository name
        url - the repository URL
        Returns:
        a new repository description
        Since:
        2.0.0
      • releasesOnly

        @NotNull
        static @NotNull RemoteRepository releasesOnly​(String name,
                                                      URI url)
        Create a repository that will only publish/resolve releases.
        Parameters:
        name - the repository name
        url - the repository URL
        Returns:
        a new repository description
        Since:
        2.0.0
      • releasesOnly

        @NotNull
        static @NotNull RemoteRepository releasesOnly​(String name,
                                                      String url)
        Create a repository that will only publish/resolve releases.
        Parameters:
        name - the repository name
        url - the repository URL
        Returns:
        a new repository description
        Since:
        2.0.0
      • snapshotsOnly

        @NotNull
        static @NotNull RemoteRepository snapshotsOnly​(String name,
                                                       URI url)
        Create a repository that will only publish/resolve snapshots.
        Parameters:
        name - the repository name
        url - the repository URL
        Returns:
        a new repository description
        Since:
        2.0.0
      • snapshotsOnly

        @NotNull
        static @NotNull RemoteRepository snapshotsOnly​(String name,
                                                       String url)
        Create a repository that will only publish/resolve snapshots.
        Parameters:
        name - the repository name
        url - the repository URL
        Returns:
        a new repository description
        Since:
        2.0.0
      • name

        @Parameter
        @NotNull
        @NotNull String name()
        The name of the repository.

        This name should be provided in camelCase format.

        Returns:
        the internal repository name
        Since:
        2.0.0
      • url

        @Parameter
        @NotNull
        @NotNull URI url()
        The URL providing the remote location of this repository.
        Returns:
        the repository URL
        Since:
        2.0.0
      • releases

        @Default
        @Parameter
        default boolean releases()
        Whether releases should be included in this repository.
        Returns:
        whether releases should be published/resolved
        Since:
        2.0.0
      • snapshots

        @Default
        @Parameter
        default boolean snapshots()
        Whether snapshots should be included in this repository.
        Returns:
        whether snapshots should be published/resolved
        Since:
        2.0.0
      • addTo

        @NotNull
        default @NotNull org.gradle.api.artifacts.repositories.MavenArtifactRepository addTo​(org.gradle.api.artifacts.dsl.RepositoryHandler handler)
        Register this repository with a repository handler.
        Parameters:
        handler - the handler to register with
        Returns:
        the registered repository
        Since:
        2.0.0