Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
di
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

gradleupdate CircleCI

This service provides a Gradle badge for your GitHub repository.

⚠️ IMPORTANT NOTICE: It no longer provides the automatic update feature. Still a badge is available.

Getting Started

You need to add the following badge to README in a repository.

[![Gradle Status](https://gradleupdate.appspot.com/YOUR/REPO/status.svg)](https://gradleupdate.appspot.com/YOUR/REPO/status)

Here is an example badge:

Gradle Status

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.

Contributions

This is an open source software. Feel free to open issues and pull requests.

Architecture

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.

Development

Install dependencies:

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 handlers and templates:

modd

Regenerate templates and interface mocks:

go generate -v ./...

Deployment

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.

Deploy:

gcloud app deploy --project=gradleupdate