repositories
Configures the container of possible repositories to publish to.
plugins {
id 'publishing'
}
publishing {
repositories {
// Create an ivy publication destination named “releases”
ivy {
name = "releases"
url = "http://my.org/ivy-repos/releases"
}
}
}
Content copied to clipboard
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 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.
Parameters
configure
The action to configure the container of repositories with.