mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-01 14:07:56 +01:00
Update nexus mirror url
This commit is contained in:
parent
c35958b88e
commit
e6cc817436
@ -44,16 +44,19 @@ public enum DependencyRepository {
|
|||||||
/**
|
/**
|
||||||
* Maven Central mirror repository.
|
* Maven Central mirror repository.
|
||||||
*
|
*
|
||||||
* <p>This is used to reduce the load on repo.maven.org - I'm told they
|
* <p>This is used to reduce the load on repo.maven.org.</p>
|
||||||
* don't like being used as a CDN.</p>
|
*
|
||||||
|
* <p>Although Maven Central is technically a CDN, it is meant for developer use,
|
||||||
|
* not end-user products. It is trivial and not very expensive for us to provide a
|
||||||
|
* mirror, which will absorb any traffic caused by LP.</p>
|
||||||
|
*
|
||||||
|
* <p>LuckPerms will fallback to the real-thing if the mirror ever goes offline.
|
||||||
|
* Retrieved content is validated with a checksum, so there is no risk to integrity.</p>
|
||||||
*/
|
*/
|
||||||
// Please ask me (@lucko) before using this mirror in your own project.
|
MAVEN_CENTRAL_MIRROR("https://libraries.luckperms.net/") {
|
||||||
LUCK_MIRROR("https://nexus.lucko.me/repository/maven-central/") {
|
|
||||||
@Override
|
@Override
|
||||||
protected URLConnection openConnection(Dependency dependency) throws IOException {
|
protected URLConnection openConnection(Dependency dependency) throws IOException {
|
||||||
URLConnection connection = super.openConnection(dependency);
|
URLConnection connection = super.openConnection(dependency);
|
||||||
|
|
||||||
// Tell nexus who we are
|
|
||||||
connection.setRequestProperty("User-Agent", "luckperms");
|
connection.setRequestProperty("User-Agent", "luckperms");
|
||||||
|
|
||||||
// Set a connect/read timeout, so if the mirror goes offline we can fallback
|
// Set a connect/read timeout, so if the mirror goes offline we can fallback
|
||||||
|
Loading…
Reference in New Issue
Block a user