question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.3.0: @PluginMain does not work on subclasses of JavaPlugin

See original GitHub issue

There is a bug in 1.3.0 where the plugin fails to find the correct main class annotated wit @PluginMain if it is not a direct subclass of JavaPlugin.

This works:

@kr.entree.spigradle.PluginMain
public class ExamplePlugin extends JavaPlugin {
}

This does not work, but worked in the version before 1.3.0:

@kr.entree.spigradle.PluginMain
public class ExamplePlugin extends BasePlugin {}
public class BasePlugin extends JavaPlugin {}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
entrypointkrcommented, Jul 8, 2020

🎉 This issue has been resolved in version 2.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

0reactions
Silthuscommented, Jul 10, 2020

Yes that fixed it. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Java Plugin - Gradle User Manual
As indicated above, this plugin adds basic building blocks for working with JVM projects. Its feature set has been superseded by other plugins, ......
Read more >
JavaPlugin cannot be resolved to a type - Stack Overflow
import org.bukkit.plugin.java.JavaPlugin;. Everything I've googled has said to put the spigot jar in project properties > build path > libraries ...
Read more >
Java Plugin appears but does not do anything - Image.sc Forum
Dear all, I wrote a little plugin in IntelliJ and imported the .class file. The name of the plugin shows up in the...
Read more >
cf-cli-java-plugin/cf_cli_java_plugin.go at master - GitHub
The JavaPlugin is a cf cli plugin that supports taking heap and thread ... Run(....) is the entry point when the core CLI...
Read more >
Spigradle - GithubHelp
dependsOn shadowJar and the tasks run fine but in the spigot/paper plugins folder I only ... 1.3.0: @PluginMain does not work on subclasses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found