Gogradle - a Full-featured Build Tool for Golang

中文文档

Build Status Build Status Coverage Status Java 8+ Apache License 2

1

Gogradle is a gradle plugin which provides support for building golang.

2017-04-06 Now Gogradle can build 666 of Github’s top 1000 Go repositories WITHOUT any extra configuration!

2017-03-20 Now Gogradle can generate HTML reports for test and coverage!

2017-02-26 Now Gogradle can integrate with IDE perfectly!

What is Gogradle?

Gogradle is a Gradle plugin which provide modern build support for Golang. Gogradle is deeply inspired by glide(I need to pay respect for it). You can simply think Gogradle as glide+make.

Why Gogradle?

Gogradle implements most features of glide and adds some extra features:

If you puzzled over these issues, or you were a Java developer and familiar with Gradle, Gogradle is your choice!

Gogradle’s objective is not replacing other tools, it only provides an option for developers.

Feature

How Gogradle works

Gogradle’s work is based on vendor mechanism. You declare your build dependencies and build logic with Gradle DSL in build.gradle, and Gogradle will resolve all dependencies and potential package conflict, then install them into vendor directory and execute a build. In this course, dependency packages will be flattened to avoid issues. Later, you can lock your resolved dependencies to ensure a reproducible build. It’s up to you whether to check in vendor directory or not.

See here for examples.

Table of Content

Test report

1 1 1 1

Coverage report

1 1

Contributing

If you like Gogradle, star it please.

Please feel free to submit an issue.

Fork and PR are always welcomed.