go-lang-plugin-org / go-lang-idea-plugin

Google Go language IDE built using the IntelliJ Platform
https://plugins.jetbrains.com/plugin/5047
Other
4.56k stars 570 forks source link

Does the plugin support Gradle? #2258

Open kolkov opened 8 years ago

kolkov commented 8 years ago

https://github.com/smartystreets/golang-gradle

ignatov commented 8 years ago

The project looks not very popular :)

ignatov commented 8 years ago

Please describe your purposes with this project.

kolkov commented 8 years ago

Many projects on golang use third-party components from other languages. It would be convenient to use Gradle for assembly this projects.

ignatov commented 8 years ago

You can use the built-in Gradle plugin in IntelliJ.

kolkov commented 8 years ago

It's possible? Need nothing to change in golang plugin? I try to setup build.gradle in go project and get a message: "Cannot resolve symbol..." etc.

kolkov commented 8 years ago

I try to setup Gradle project manually. My Gradle home is empty. ( Where can I find Gradle home for IDEA?

dlsniper commented 8 years ago

Many projects on golang use third-party components from other languages. It would be convenient to use Gradle for assembly this projects.

This is arguable. Usually such projects use a Makefile rather than Gradle (at least from what I've seen so far in major Go projects / following golang-nuts and other sources).

Another issue I see with the mentioned project is that it's not actively developed, it's an experiment and even when the project itself was created it was already requiring a version that was one year old (gradle 1.12 as opposed to say Gradle 2.x, currently 2.10).

kolkov commented 8 years ago

@dlsniper Thanks! Make is better than Gradle for golang? https://plugins.gradle.org/plugin/org.golang.mobile.bind - but Gradle have Plugin for gomobile projects...

dlsniper commented 8 years ago

Make is better than Gradle for golang?

That I can't tell you. I guess it depends on the use case or personal taste. I've did a bit of search on golang-nuts and I've found:

For example:

It might be that most Go developers are reluctant to embrace complex tools such as Gradle or use Java which leads to this. Or it might be that there's no decent Gradle plugin for Go yet that could work out of the box and provide everything needed. As such, this might change in the future, who knows?

https://plugins.gradle.org/plugin/org.golang.mobile.bind - but Gradle have Plugin for gomobile projects...

Maybe that can be used as a template for a Gradle plugin for normal Go projects.

kolkov commented 8 years ago

Thank you! I will try to look into this question. I think Gradle more powerful than Make. )

blaubaer commented 7 years ago

Just to add actual facts to the thread with projects that exists right now. 😄 See: https://github.com/echocat/gradle-golang-plugin