build.gradleのライブラリを更新してGitHubにPullRequestを作成します
https://github.com/settings/tokens/new?description=LibraryVersionUpdater%20token で repo
にチェックを入れてアクセストークンを作成してください
createLibraryUpdatePR {
githubAccessToken = getProperty("github.token")
githubPage = "https://github.com/orekyuu/LibraryVersionUpdater"
basedBranchName = "master"
}
// 下の設定を書かないとbetaなどにも更新される
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}