retrooper / packetevents

Precision meets performance—a powerful tool for mastering Minecraft packet manipulation with speed and finesse.
GNU General Public License v3.0
557 stars 151 forks source link

Add jitpack support #1045

Closed Elikill58 closed 2 weeks ago

Elikill58 commented 4 weeks ago

This PR add jitpack support to have access to dev-build when coding. Example of build here, we can use this to have access to all parts:

dependencies {
    implementation("com.github.Elikill58.packetevents:packetevents-velocity:2.0-SNAPSHOT")
}

Can you squash and merge the PR (instead of simple merge) ?

rafi67000 commented 4 weeks ago

snapshots are already being published

Elikill58 commented 4 weeks ago

snapshots are already being published

Snapshot jar, yes. But on the repository given in doc, there it's not

Bram1903 commented 3 weeks ago

We've fully transitioned away from JitPack due to its persistent issues and slow performance. To access our latest development builds, you can now use our snapshot repository hosted on CodeMC:

Snapshot Repository:
https://repo.codemc.io/repository/maven-snapshots/

Below is a configuration example for build.gradle.kts:

repositories {
    mavenLocal()
    mavenCentral()
    maven("https://repo.codemc.io/repository/maven-releases/")
    maven("https://repo.codemc.io/repository/maven-snapshots/")
}

dependencies {
    compileOnlyApi(libs.packetevents.api)
}

In libs.versions.toml, reference the latest snapshot version as follows:

[versions]
packetevents = "2.6.0-SNAPSHOT"

[libraries]
packetevents-api = { group = "com.github.retrooper", name = "packetevents-api", version.ref = "packetevents" }
Elikill58 commented 3 weeks ago

Ok, thanks for informations. Can you add this into wiki? Also, this PR will never be accepted because of that?

Bram1903 commented 3 weeks ago

Thanks for the information. Could you add this to the wiki?

@retrooper, could you sync GitBook with GitHub whenever you have a moment? This would allow me to contribute to documentation as requested here.

Does this mean the PR will never be accepted?

Yes, that’s correct; this PR won’t be merged. However, we appreciate your efforts to contribute support for it. I've noticed that several developers have asked about accessing the development builds, and it’s true this isn’t clearly stated anywhere.