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

huangapple go评论66阅读模式
英文:

Gradle for Golang (Use/build some .go within Java project)

问题

Gradle是否支持Go语言?如何开始使用?

我正在开始我的研究,但目前我只在https://plugins.gradle.org/search?term=go 上找到一个插件。

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

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

答案1

得分: 3

通常情况下,不需要使用Gradle或Maven,因为:

  • go build命令已经足够。
  • 依赖项由Go自身管理。

你会看到一些项目使用Makefile来链接go buildgo testgo vet命令。

英文:

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).

答案2

得分: 2

尝试使用Gogradle(https://github.com/blindpirate/gogradle),这是一个功能齐全的Golang插件。

我们需要它的原因是,Golang缺乏自动构建机制、包版本管理和其他许多由Gogradle支持的功能。

英文:

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.

huangapple
  • 本文由 发表于 2017年1月19日 11:09:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/41733055.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定