Skip to content

orekyuu/LibraryVersionUpdater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Version Updater

build.gradleのライブラリを更新してGitHubにPullRequestを作成します

Plugin Page

LibraryVersionUpdaterPlugin

準備

https://github.com/settings/tokens/new?description=LibraryVersionUpdater%20tokenrepo にチェックを入れてアクセストークンを作成してください

設定例

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')
            }
        }
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages