-
Notifications
You must be signed in to change notification settings - Fork 26
Home
ly.ton edited this page Oct 23, 2018
·
31 revisions
owner
repo
authorization
tagName
targetCommitish
releaseName
body
draft
prerelease
releaseAssets
overwrite
githubRelease {
owner 'breadmoirai'
owner { 'breadmoirai' }
owner = 'breadmoirai'
setOwner('breadmoirai')
}
This field specifies the user or organization that the github repo belongs to.
By default, if this property is not set, it is inferred using the last part of the project.group value.
If
group = 'com.github.breadmoirai'
then
githubRelease {
owner = 'breadmoirai'
}
githubRelease {
repo 'github-release-gradle-plugin'
repo { 'github-release-gradle-plugin' }
repo = 'github-release-gradle-plugin'
setRepo('github-release-gradle-plugin')
}
This field specifies the name of the github repo.
If this field is not set, it attempts to use the project.name
or the rootProject.name
name = 'github-release-gradle-plugin'
then
githubRelease {
repo = 'github-release-gradle-plugin'
}
githubRelease {
token 'TOKEN'
token { 'TOKEN' }
token = 'TOKEN'
setToken('TOKEN')
authorization 'Token TOKEN'
...
authorization 'Basic ' + Base64.encoder.encodeToString('username:password'.bytes)
...
authorization {
def result = null
new SwingBuilder().edt {
dialog(modal: true,
title: 'Login to Github',
alwaysOnTop: true,
resizable: false,
locationRelativeTo: null,
pack: true,
show: true
) {
vbox {
label(text: "username")
def username = textField()
label(text: "password")
def password = passwordField()
button(defaultButton: true, text: 'Login', actionPerformed: {
result = 'Basic ' + Base64.encoder.encodeToString("$username.text:$password.password".bytes)
dispose()
})
}
}
}
return result
}
}