This is a servie which provides continuous update of Gradle in your GitHub repositories.
You need to add the following badge to README in a repository.
Here is an example badge:
And then, gradleupdate will send a pull request for the latest version of Gradle wrapper if it is out-of-dated.
You can turn off updates by removing the badge.
How it works
gradleupdate checks the following preconditions for each repository:
README.mdshould have the badge.
gradle/wrapper/gradle-wrapper.propertiesshould have a valid version string.
If the repository has out-of-dated Gradle version, gradleupdate will send a pull request.
If the pull request already exists, gradleupdate will just rebase the head branch.
This is an open source software. Feel free to open issues and pull requests.
This application is written in Go and designed for App Engine. It consists of the following packages:
main- Bootstraps the application.
di- Wires dependencies.
handlers- Handles requests.
templates- Renders pages.
usecases- Provides application use cases.
domain- Provides domain of Git, Gradle and gradleupdate.
gateways- Provides conversion between domain models and external models.
infrastructure- Invokes Gradle Services API, GitHub v3 API and GitHub v4 API.
brew install go brew cask install google-cloud-sdk gcloud components install app-engine-go go get -u github.com/golang/mock/mockgen go get -u github.com/valyala/quicktemplate/qtc go get -u github.com/cortesi/modd/cmd/modd
Run the local server:
GITHUB_TOKEN="$GITHUB_TOKEN" CSRF_KEY="MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY=" dev_appserver.py .
Run the mock server with
Regenerate templates and interface mocks:
go generate -v ./...
You need to set up your Credentials. See gateways/credentials.go for details.
You can set the feature toggles. See gateways/toggles.go for details.
gcloud app deploy --project=gradleupdate