Fix more gradle problems

This commit is contained in:
Vankka 2025-01-02 22:54:10 +02:00
parent abb7bbb08c
commit 66900db7dd
No known key found for this signature in database
GPG Key ID: 62E48025ED4E7EBB
7 changed files with 9 additions and 14 deletions

View File

@ -1,6 +1,6 @@
allprojects {
repositories {
maven { url 'https://repo.papermc.io/repository/maven-public/' }
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
}
}

View File

@ -1,8 +1,8 @@
import dev.vankka.dependencydownload.task.GenerateDependencyDownloadResourceTask
repositories {
maven { url 'https://nexus.scarsz.me/content/groups/public/' }
maven { url 'https://repo.essentialsx.net/releases/' }
maven { url = 'https://nexus.scarsz.me/content/groups/public/' }
maven { url = 'https://repo.essentialsx.net/releases/' }
}
configurations {

View File

@ -97,7 +97,7 @@ public class EventObserver<E extends Event, P> {
while (currentClass != null && Event.class.isAssignableFrom(currentClass)) {
try {
Method method = currentClass.getDeclaredMethod("getHandlerList");
if (!method.isAccessible()) method.setAccessible(true);
method.setAccessible(true);
return (HandlerList) method.invoke(null);
} catch (NoSuchMethodException ignored) {
currentClass = currentClass.getSuperclass();
@ -127,7 +127,7 @@ public class EventObserver<E extends Event, P> {
private static Field getSlotsField() throws NoSuchFieldException {
Field field = HandlerList.class.getDeclaredField("handlerslots");
if (!field.isAccessible()) field.setAccessible(true);
field.setAccessible(true);
return field;
}

View File

@ -17,7 +17,7 @@ allprojects {
repositories {
exclusiveContent {
forRepository {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
filter {
includeGroup 'net.md-5'

View File

@ -2,11 +2,6 @@ plugins {
id 'application'
}
repositories {
// Required due to the sponge plugin
maven { url 'https://repo.spongepowered.org/maven/' }
}
// Don't need to be versioned, so we remove the version here to reduce the complexity of the CI
version = null

View File

@ -13,8 +13,8 @@ dependencyResolutionManagement {
plugin('shadow', 'io.github.goooler.shadow').version('8.1.8')
plugin('spotless', 'com.diffplug.spotless').version('6.25.0')
plugin('blossom', 'net.kyori.blossom').version('2.1.0')
plugin('indra-git', 'net.kyori.indra.git').version('2.2.0')
plugin('indra-licenser', 'net.kyori.indra.licenser.spotless').version('2.2.0')
plugin('indra-git', 'net.kyori.indra.git').version('3.1.3')
plugin('indra-licenser', 'net.kyori.indra.licenser.spotless').version('3.1.3')
plugin('idea-ext', 'org.jetbrains.gradle.plugin.idea-ext').version('1.1.7')
// Run platforms

View File

@ -26,7 +26,7 @@ shadowJar {
repositories {
exclusiveContent {
forRepository {
maven { url 'https://repo.papermc.io/repository/maven-public/' }
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
}
filter {
includeGroup 'com.velocitypowered'