mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-02-21 02:31:37 +01:00
Fix more gradle problems
This commit is contained in:
parent
abb7bbb08c
commit
66900db7dd
@ -1,6 +1,6 @@
|
||||
allprojects {
|
||||
repositories {
|
||||
maven { url 'https://repo.papermc.io/repository/maven-public/' }
|
||||
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user