Metadata File Does Not Autogenerate


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!

SpongeForge: spongeforge-1.10.2-2281-5.2.0-BETA-2464

Meta information in my main class:

@Plugin(id = "dreadzone", 
	name = "DreadZone", 
	description = "This plugin adds minigames!", 
	url = "", 
	version = "0.1.08",
	authors = "SalvadorZXA")

Inside my file:

plugins {
    id 'java'
    id 'maven'
    id 'eclipse'

repositories {
    maven {
        name = 'sponge'
        url = ''

dependencies {
    compile 'org.spongepowered:spongeapi:5.2.0-20170624.214722-7'

You need to add this to your gradle file to get SpongeGradle to generate the metadata file:

plugins {
    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 :slightly_frowning_face:. 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:

1 Like

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.