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

Paper's API has changed package names #60

Open
russjr08 opened this issue Sep 6, 2021 · 1 comment
Open

Paper's API has changed package names #60

russjr08 opened this issue Sep 6, 2021 · 1 comment

Comments

@russjr08
Copy link

russjr08 commented Sep 6, 2021

Hello again! I figured you might want this to be separate from the bug report that I had previously opened, for the sake of keeping changelogs a bit more organized - apologies if that is not the case though!

It looks like in between 1.16 and 1.17, Paper changed their package name from com.destroystokyo.paper:paper-api to io.papermc.paper:paper-api their "Using the Paper API" page has been updated to reflect this.

However I suspect this may be a bit tricky to work with the fact that the 1.16 still of course use the old package name, whereas 1.17 uses the new one.

I've temporarily resolved this in my project by just manually specifying compileOnly 'io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT' in my dependencies, but its worth noting that you'll need to add:

compileJava {
    targetCompatibility = JavaVersion.VERSION_16
    sourceCompatibility = JavaVersion.VERSION_16
}

To your project in order for it to resolve properly

@osipxd
Copy link
Member

osipxd commented Sep 7, 2021

Thanks for the report. I'll fix it in the next version

@osipxd osipxd added this to the Next milestone Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants