#Plugin version

1 messages · Page 1 of 1 (latest)

tight escarp
#

Hi, any idea as to why when I change the version of my plugin in the pom.xml it doesn't let me? (I'm using intelIj)

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

here ↑

clever tundra
#

What are you trying to change it to

#

And what error does it result in

tight escarp
#

I'm changing it manually to 1.17.1-R0.1-SNAPSHOT for example
and it says: Dependency 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT' not found

clever tundra
#

Why do you need to change it from 1.18 to 1.17

tight escarp
#

I want to test if my plugin works in 1.17 as well

clever tundra
#

You don't need to change the version in your pom.xml for that

#

That only changes what version of the API it's linked against

tight escarp
#

I want to go down versions and see whats the lowest version my plugin works at

clever tundra
#

Just drop the jar onto a 1.17 server

tight escarp
#

When I do it though, it doesn't even detect my plugin

#

Isn't it related?

clever tundra
#

Surely it does

#

But you probably specified an api-version of 1.18 in your plugin.yml

#

If you want it to load for all versions set the api-version to 1.13

tight escarp
#

ohhh

#

I need to change it there then?

clever tundra
#

Yes

#

1.13 is the earliest api-version

#

Servers running a lower version than 1.13 will not check the api-version at all

#

So setting it to 1.13 will make it support all versions

tight escarp
clever tundra
#

The version specified in the pom.xml will affect what api you link against

#

So if you change it to 1.8

#

It will still be able to run on 1.18 servers

#

But your code will error if you try to use anything that wasn't in the 1.8 API

tight escarp
#

So shouldn't I change it to 1.13 there?

clever tundra
#

No

#

That will make it so that you can't use any features post-1.13

#

I mean if you're trying to make it work all versions 1.13+ then I guess you should

#

But that's separate from api-version

tight escarp
#

Ah, then if I just change the api-version and I haven't used anything that isn't included in the 1.8 api then my plugin should work on versions 1.8+?

clever tundra
#

Yes

tight escarp
#

And when changing it in the pom.xml it changes the library I use?

clever tundra
#

The version of it, yes