abstract fun repositories(configure: Action<in RepositoryHandler>): Unit
Configures the container of possible repositories to publish to.
apply plugin: 'publishing' publishing { repositories { // Create an ivy publication destination named “releases” ivy { name "releases" url "http://my.org/ivy-repos/releases" } } }
The repositories
block is backed by a RepositoryHandler, which is the same DSL as that that is used for declaring repositories to consume dependencies from. However, certain types of repositories that can be created by the repository handler are not valid for publishing, such as org.gradle.api.artifacts.dsl.RepositoryHandler#mavenCentral()
.
At this time, only repositories created by the ivy()
factory method have any effect. Please see org.gradle.api.publish.ivy.IvyPublication for information on how this can be used for publishing to Ivy repositories.
configure
- The action to configure the container of repositories with.