Reputation: 3092
I am trying to write buildscript in gradle for a simple golang web application.
Can someone please tell me how to use golang commands for build and install in gradle build?
I do not see any clear documentation for the usage of gradle for a go lang application.
Upvotes: 1
Views: 2421
Reputation: 114
Try Gogradle https://github.com/blindpirate/gogradle, a full-featured Golang build plugin.
What you need to do is creating a build.gradle
as documented, and run ./gradlew build
or ./gradlew test
.
Upvotes: 2
Reputation: 873
gradle supports maven plugins and you can just call the mvn-golang maven plugin as usual maven plugin published in the maven central
Upvotes: 0