Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling the spigot-api #213

Open
SimonTheSiro opened this issue Aug 18, 2022 · 0 comments
Open

Compiling the spigot-api #213

SimonTheSiro opened this issue Aug 18, 2022 · 0 comments

Comments

@SimonTheSiro
Copy link

Hi there,

I've used SmartInvs and it works quite well. It was only when I changed the API of my plugin from spigot to paper that I noticed that Maven compiles the Minecraft server afterwards.

So I looked in the pom.xml of SmartInvs and found:

<dependency>
      <groupId>org.spigotmc</groupId>
      <artifactId>spigot-api</artifactId>
      <version>1.8.8-R0.1-SNAPSHOT</version>
      <scope>compile</scope>
</dependency>

That means I need to override the spigot-api with the scope provided so it doesn't compile with:

<dependency>
      <groupId>org.spigotmc</groupId>
      <artifactId>spigot-api</artifactId>
      <version>1.16.5-R0.1-SNAPSHOT</version>
      <scope>provided</scope>
</dependency>

As I said before, when I use the Paper API, the server is compiled with:

<dependency>
      <groupId>com.destroystokyo.paper</groupId>
      <artifactId>paper-api</artifactId>
      <version>1.16.5-R0.1-SNAPSHOT</version>
      <scope>provided</scope>
</dependency>

Is that intentional, or is it a mistake?

I would like to know, because the server already has the classes :D, so the plugin doesn't need to compile them, does it?

-Siro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant