@Incubating public interface GitHubDownloadsRepository extends ArtifactRepository, AuthenticationSupported
setUser(String)
must be provided before this can be used.
Given the following repository definition:
repositories { github.downloads { user = "githubUser" } }
The following dependency notations will resolve to:
myProject:myThing
- https://github.com/downloads/githubUser/myProject/myThing.jar
myProject:myThing:1.0
- https://github.com/downloads/githubUser/myProject/myThing-1.0.jar
myProject:myThing@zip
- https://github.com/downloads/githubUser/myProject/myThing.zip
Modifier and Type | Field and Description |
---|---|
static String |
DOWNLOADS_URL_BASE
"https://github.com/downloads"
|
Modifier and Type | Method and Description |
---|---|
URI |
getBaseUrl()
The base GitHub downloads url.
|
String |
getUser()
The GitHub user/organisation name that houses the downloads.
|
void |
setBaseUrl(Object baseUrl)
Override the default base url of '"https://github.com/downloads"'
|
void |
setUser(String user)
Sets the GitHub user/organisation name that houses the downloads.
|
getName, setName
credentials, getCredentials
static final String DOWNLOADS_URL_BASE
void setBaseUrl(Object baseUrl)
baseUrl
- The new base urlURI getBaseUrl()
void setUser(String user)
user
- The GitHub user/organisation name that houses the downloads.String getUser()