Golang的Gradle(在Java项目中使用/构建一些.go)

Is Go supported by Gradle? How to start?

I am starting my research, but so far I only find 1 plugin on https://plugins.gradle.org/search?term=go

  1. https://github.com/echocat/gradle-golang-plugin

Generally, gradle or maven would not be needed, because:

  • go build is enough.
  • the dependencies are managed by go itself.

You see some project using Makefile (to link go build and go test and go vet).

Try Gogradle https://github.com/blindpirate/gogradle, a full featured plugin for Golang.

The reason why we need it is that Golang lacks of automatic build mechanism, package versioning and many other stuff which is supported by Gogradle.