I’m unable to have Gradle auto generate my metainfo file with my plugin. I’d appreciate any help. Below is what I have. Thanks!
Meta information in my main class:
@Plugin(id = "dreadzone",
name = "DreadZone",
description = "This plugin adds minigames!",
url = "http://salvadorzxa.com",
version = "0.1.08",
authors = "SalvadorZXA")
Inside my gradle.build file:
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
You need to add this to your gradle file to get SpongeGradle to generate the metadata file:
id 'org.spongepowered.plugin' version '0.8.1'
Uh, no you don’t. I don’t use that in any plugins, and mine works just fine. APT doesn’t depend on SpongeGradle.
Make sure you’re building via the gradle tool, rather than your IDE’s build action. If it still doesn’t work, make sure annotation processing is enabled in your IDE.
This is probably going to sound absurd, but how can I build using the gradle tool, in eclipse, if you use it? To this day, I’ve managed to get away with doing a simple File> Export to get my code into my server.
How did you get the gradle project into eclipse? Did you use the command line and
gradle eclipse, or did you use an eclipse plugin like buildship?
I did something like New>Other>Gradle Project.
I don’t know how to use Eclipse’s Gradle plugin, only IntelliJ’s.
I see . Thank you for your help.
The way I understand it, you are using the buildship plugin. In that case, you can use the Gradle Tasks view as described here: http://www.vogella.com/tutorials/EclipseGradle/article.html#using-the-gradle-tasks-view
I wasn’t using the buildship plugin, but I gave it a try to see if this could solve my issue but I was unsuccessful. I appreciate your help though.