Merge pull request #2781 from open-osrs/GRADLE-DEPS-UPDATE-7010955
project: Update gradle dependencies
This commit is contained in:
2
cache/cache.gradle.kts
vendored
2
cache/cache.gradle.kts
vendored
@@ -42,7 +42,7 @@ dependencies {
|
|||||||
implementation(group = "com.google.guava", name = "guava", version = "29.0-jre")
|
implementation(group = "com.google.guava", name = "guava", version = "29.0-jre")
|
||||||
implementation(group = "commons-cli", name = "commons-cli", version = "1.4")
|
implementation(group = "commons-cli", name = "commons-cli", version = "1.4")
|
||||||
implementation(group = "io.netty", name = "netty-buffer", version = "4.1.51.Final")
|
implementation(group = "io.netty", name = "netty-buffer", version = "4.1.51.Final")
|
||||||
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.8.0")
|
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.8.1")
|
||||||
implementation(group = "org.antlr", name = "antlr4-runtime", version = "4.8-1")
|
implementation(group = "org.antlr", name = "antlr4-runtime", version = "4.8-1")
|
||||||
implementation(group = "org.apache.commons", name = "commons-compress", version = "1.20")
|
implementation(group = "org.apache.commons", name = "commons-compress", version = "1.20")
|
||||||
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ dependencies {
|
|||||||
|
|
||||||
testImplementation(deobjars)
|
testImplementation(deobjars)
|
||||||
testImplementation(group = "junit", name = "junit", version = "4.13")
|
testImplementation(group = "junit", name = "junit", version = "4.13")
|
||||||
testImplementation(group = "org.mockito", name = "mockito-core", version = "3.4.6")
|
testImplementation(group = "org.mockito", name = "mockito-core", version = "3.5.7")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
|||||||
@@ -34,13 +34,13 @@ dependencies {
|
|||||||
|
|
||||||
implementation(group = "com.google.code.gson", name = "gson", version = "2.8.6")
|
implementation(group = "com.google.code.gson", name = "gson", version = "2.8.6")
|
||||||
implementation(group = "com.google.guava", name = "guava", version = "29.0-jre")
|
implementation(group = "com.google.guava", name = "guava", version = "29.0-jre")
|
||||||
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.8.0")
|
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.8.1")
|
||||||
implementation(group = "io.reactivex.rxjava3", name = "rxjava", version = "3.0.5")
|
implementation(group = "io.reactivex.rxjava3", name = "rxjava", version = "3.0.6")
|
||||||
implementation(group = "org.apache.commons", name = "commons-csv", version = "1.8")
|
implementation(group = "org.apache.commons", name = "commons-csv", version = "1.8")
|
||||||
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
||||||
implementation(project(":runelite-api"))
|
implementation(project(":runelite-api"))
|
||||||
|
|
||||||
testImplementation(group = "com.squareup.okhttp3", name = "mockwebserver", version = "4.8.0")
|
testImplementation(group = "com.squareup.okhttp3", name = "mockwebserver", version = "4.8.1")
|
||||||
testImplementation(group = "junit", name = "junit", version = "4.13")
|
testImplementation(group = "junit", name = "junit", version = "4.13")
|
||||||
testImplementation(group = "org.slf4j", name = "slf4j-simple", version = "1.7.30")
|
testImplementation(group = "org.slf4j", name = "slf4j-simple", version = "1.7.30")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ dependencies {
|
|||||||
|
|
||||||
implementation(group = "com.google.code.findbugs", name = "jsr305", version = "3.0.2")
|
implementation(group = "com.google.code.findbugs", name = "jsr305", version = "3.0.2")
|
||||||
implementation(group = "com.google.guava", name = "guava", version = "29.0-jre")
|
implementation(group = "com.google.guava", name = "guava", version = "29.0-jre")
|
||||||
implementation(group = "org.apache.commons", name = "commons-text", version = "1.8")
|
implementation(group = "org.apache.commons", name = "commons-text", version = "1.9")
|
||||||
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
||||||
|
|
||||||
testImplementation(group = "junit", name = "junit", version = "4.13")
|
testImplementation(group = "junit", name = "junit", version = "4.13")
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ description = "RuneLite Client"
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
annotationProcessor(group = "org.projectlombok", name = "lombok", version = "1.18.12")
|
annotationProcessor(group = "org.projectlombok", name = "lombok", version = "1.18.12")
|
||||||
annotationProcessor(group = "org.pf4j", name = "pf4j", version = "3.3.1")
|
annotationProcessor(group = "org.pf4j", name = "pf4j", version = "3.4.1")
|
||||||
|
|
||||||
api(project(":runelite-api"))
|
api(project(":runelite-api"))
|
||||||
|
|
||||||
@@ -53,23 +53,23 @@ dependencies {
|
|||||||
implementation(group = "com.google.inject", name = "guice", version = "4.2.3", classifier = "no_aop")
|
implementation(group = "com.google.inject", name = "guice", version = "4.2.3", classifier = "no_aop")
|
||||||
implementation(group = "com.h2database", name = "h2", version = "1.4.200")
|
implementation(group = "com.h2database", name = "h2", version = "1.4.200")
|
||||||
implementation(group = "com.jakewharton.rxrelay3", name = "rxrelay", version = "3.0.0")
|
implementation(group = "com.jakewharton.rxrelay3", name = "rxrelay", version = "3.0.0")
|
||||||
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.8.0")
|
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.8.1")
|
||||||
implementation(group = "io.reactivex.rxjava3", name = "rxjava", version = "3.0.5")
|
implementation(group = "io.reactivex.rxjava3", name = "rxjava", version = "3.0.6")
|
||||||
implementation(group = "net.java.dev.jna", name = "jna", version = "5.6.0")
|
implementation(group = "net.java.dev.jna", name = "jna", version = "5.6.0")
|
||||||
implementation(group = "org.jgroups", name = "jgroups", version = "4.2.4.Final")
|
implementation(group = "org.jgroups", name = "jgroups", version = "5.0.0.Final")
|
||||||
implementation(group = "net.java.dev.jna", name = "jna-platform", version = "5.6.0")
|
implementation(group = "net.java.dev.jna", name = "jna-platform", version = "5.6.0")
|
||||||
implementation(group = "net.runelite", name = "discord", version = "1.2")
|
implementation(group = "net.runelite", name = "discord", version = "1.2")
|
||||||
implementation(group = "org.pushing-pixels", name = "radiance-substance", version = "2.5.1")
|
implementation(group = "org.pushing-pixels", name = "radiance-substance", version = "2.5.1")
|
||||||
implementation(group = "net.sf.jopt-simple", name = "jopt-simple", version = "5.0.4")
|
implementation(group = "net.sf.jopt-simple", name = "jopt-simple", version = "5.0.4")
|
||||||
implementation(group = "org.apache.commons", name = "commons-text", version = "1.8")
|
implementation(group = "org.apache.commons", name = "commons-text", version = "1.9")
|
||||||
implementation(group = "org.jetbrains", name = "annotations", version = "20.0.0")
|
implementation(group = "org.jetbrains", name = "annotations", version = "20.0.0")
|
||||||
implementation(group = "org.jooq", name = "jooq", version = "3.13.3")
|
implementation(group = "org.jooq", name = "jooq", version = "3.13.4")
|
||||||
implementation(group = "org.jooq", name = "jooq-codegen", version = "3.13.3")
|
implementation(group = "org.jooq", name = "jooq-codegen", version = "3.13.4")
|
||||||
implementation(group = "org.jooq", name = "jooq-meta", version = "3.13.3")
|
implementation(group = "org.jooq", name = "jooq-meta", version = "3.13.4")
|
||||||
implementation(group = "io.sentry", name = "sentry-logback", version = "1.7.30")
|
implementation(group = "io.sentry", name = "sentry-logback", version = "1.7.30")
|
||||||
implementation(group = "com.github.zafarkhaja", name = "java-semver", version = "0.9.0")
|
implementation(group = "com.github.zafarkhaja", name = "java-semver", version = "0.9.0")
|
||||||
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
||||||
implementation(group = "org.pf4j", name = "pf4j", version = "3.3.1") {
|
implementation(group = "org.pf4j", name = "pf4j", version = "3.4.1") {
|
||||||
exclude(group = "org.slf4j")
|
exclude(group = "org.slf4j")
|
||||||
}
|
}
|
||||||
implementation(group = "org.pf4j", name = "pf4j-update", version = "2.3.0")
|
implementation(group = "org.pf4j", name = "pf4j-update", version = "2.3.0")
|
||||||
@@ -87,9 +87,9 @@ dependencies {
|
|||||||
testImplementation(group = "com.google.inject.extensions", name = "guice-testlib", version = "4.2.3")
|
testImplementation(group = "com.google.inject.extensions", name = "guice-testlib", version = "4.2.3")
|
||||||
testImplementation(group = "org.hamcrest", name = "hamcrest-library", version = "2.2")
|
testImplementation(group = "org.hamcrest", name = "hamcrest-library", version = "2.2")
|
||||||
testImplementation(group = "junit", name = "junit", version = "4.13")
|
testImplementation(group = "junit", name = "junit", version = "4.13")
|
||||||
testImplementation(group = "org.mockito", name = "mockito-core", version = "3.4.6")
|
testImplementation(group = "org.mockito", name = "mockito-core", version = "3.5.7")
|
||||||
testImplementation(group = "org.mockito", name = "mockito-inline", version = "3.4.6")
|
testImplementation(group = "org.mockito", name = "mockito-inline", version = "3.5.7")
|
||||||
testImplementation(group = "com.squareup.okhttp3", name = "mockwebserver", version = "4.8.0")
|
testImplementation(group = "com.squareup.okhttp3", name = "mockwebserver", version = "4.8.1")
|
||||||
testImplementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
testImplementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -864,7 +864,7 @@ public class ConfigManager
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ConfigChanged configChanged = Util.objectFromByteBuffer(message.getBuffer());
|
ConfigChanged configChanged = Util.objectFromByteBuffer(message.getObject());
|
||||||
|
|
||||||
if (!configChanged.getPath().equals(settingsFileInput.getAbsolutePath()))
|
if (!configChanged.getPath().equals(settingsFileInput.getAbsolutePath()))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ import net.runelite.client.task.Scheduler;
|
|||||||
import net.runelite.client.ui.RuneLiteSplashScreen;
|
import net.runelite.client.ui.RuneLiteSplashScreen;
|
||||||
import net.runelite.client.util.GameEventManager;
|
import net.runelite.client.util.GameEventManager;
|
||||||
import net.runelite.client.util.Groups;
|
import net.runelite.client.util.Groups;
|
||||||
|
import net.runelite.client.util.SwingUtil;
|
||||||
import org.jgroups.Message;
|
import org.jgroups.Message;
|
||||||
import org.pf4j.Extension;
|
import org.pf4j.Extension;
|
||||||
|
|
||||||
@@ -291,6 +292,7 @@ public class PluginManager
|
|||||||
log.warn("Unable to reset plugin configuration", ex);
|
log.warn("Unable to reset plugin configuration", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadCorePlugins() throws IOException
|
public void loadCorePlugins() throws IOException
|
||||||
{
|
{
|
||||||
plugins.addAll(scanAndInstantiate(getClass().getClassLoader(), PLUGIN_PACKAGE, false));
|
plugins.addAll(scanAndInstantiate(getClass().getClassLoader(), PLUGIN_PACKAGE, false));
|
||||||
@@ -416,44 +418,44 @@ public class PluginManager
|
|||||||
|
|
||||||
final long start = System.currentTimeMillis();
|
final long start = System.currentTimeMillis();
|
||||||
|
|
||||||
List<Plugin> scannedPlugins = new CopyOnWriteArrayList<>();
|
List<Plugin> scannedPlugins = new CopyOnWriteArrayList<>();
|
||||||
sortedPlugins.forEach(group ->
|
sortedPlugins.forEach(group ->
|
||||||
{
|
{
|
||||||
List<Future<?>> curGroup = new ArrayList<>();
|
List<Future<?>> curGroup = new ArrayList<>();
|
||||||
group.forEach(pluginClazz ->
|
group.forEach(pluginClazz ->
|
||||||
curGroup.add(executorService.submit(() ->
|
curGroup.add(executorService.submit(() ->
|
||||||
{
|
|
||||||
Plugin plugin;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
plugin = instantiate(scannedPlugins, (Class<Plugin>) pluginClazz);
|
|
||||||
scannedPlugins.add(plugin);
|
|
||||||
}
|
|
||||||
catch (PluginInstantiationException e)
|
|
||||||
{
|
|
||||||
log.warn("Error instantiating plugin!", e);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
loaded.getAndIncrement();
|
|
||||||
|
|
||||||
RuneLiteSplashScreen.stage(.60, .65, "Loading internal plugins", loaded.get(), scannedPlugins.size());
|
|
||||||
})));
|
|
||||||
curGroup.forEach(future ->
|
|
||||||
{
|
{
|
||||||
|
Plugin plugin;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
future.get();
|
plugin = instantiate(scannedPlugins, (Class<Plugin>) pluginClazz);
|
||||||
|
scannedPlugins.add(plugin);
|
||||||
}
|
}
|
||||||
catch (InterruptedException | ExecutionException e)
|
catch (PluginInstantiationException e)
|
||||||
{
|
{
|
||||||
e.printStackTrace();
|
log.warn("Error instantiating plugin!", e);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
log.info("Plugin instantiation took {}ms", System.currentTimeMillis() - start);
|
loaded.getAndIncrement();
|
||||||
return scannedPlugins;
|
|
||||||
|
RuneLiteSplashScreen.stage(.60, .65, "Loading internal plugins", loaded.get(), scannedPlugins.size());
|
||||||
|
})));
|
||||||
|
curGroup.forEach(future ->
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
future.get();
|
||||||
|
}
|
||||||
|
catch (InterruptedException | ExecutionException e)
|
||||||
|
{
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
log.info("Plugin instantiation took {}ms", System.currentTimeMillis() - start);
|
||||||
|
return scannedPlugins;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean startPlugin(Plugin plugin) throws PluginInstantiationException
|
public boolean startPlugin(Plugin plugin) throws PluginInstantiationException
|
||||||
@@ -764,29 +766,47 @@ public class PluginManager
|
|||||||
switch (command)
|
switch (command)
|
||||||
{
|
{
|
||||||
case "STARTPLUGIN":
|
case "STARTPLUGIN":
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
startPlugin(finalPlugin);
|
SwingUtil.syncExec(() ->
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
startPlugin(finalPlugin);
|
||||||
|
}
|
||||||
|
catch (PluginInstantiationException e)
|
||||||
|
{
|
||||||
|
log.warn("unable to start plugin", e);
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
catch (PluginInstantiationException e)
|
catch (InvocationTargetException | InterruptedException e)
|
||||||
{
|
{
|
||||||
log.warn("unable to start plugin", e);
|
log.error("eh?");
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "STOPPLUGIN":
|
case "STOPPLUGIN":
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
stopPlugin(finalPlugin);
|
SwingUtil.syncExec(() ->
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
stopPlugin(finalPlugin);
|
||||||
|
}
|
||||||
|
catch (PluginInstantiationException e)
|
||||||
|
{
|
||||||
|
log.warn("unable to stop plugin", e);
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
catch (PluginInstantiationException e)
|
catch (InvocationTargetException | InterruptedException e)
|
||||||
{
|
{
|
||||||
log.warn("unable to stop plugin", e);
|
log.error("eh?");
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -22,13 +22,14 @@ import net.runelite.client.ui.RuneLiteSplashScreen;
|
|||||||
import org.jgroups.Address;
|
import org.jgroups.Address;
|
||||||
import org.jgroups.JChannel;
|
import org.jgroups.JChannel;
|
||||||
import org.jgroups.Message;
|
import org.jgroups.Message;
|
||||||
import org.jgroups.ReceiverAdapter;
|
import org.jgroups.ObjectMessage;
|
||||||
|
import org.jgroups.Receiver;
|
||||||
import org.jgroups.View;
|
import org.jgroups.View;
|
||||||
import org.jgroups.util.Util;
|
import org.jgroups.util.Util;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Singleton
|
@Singleton
|
||||||
public class Groups extends ReceiverAdapter
|
public class Groups implements Receiver
|
||||||
{
|
{
|
||||||
private final OpenOSRSConfig openOSRSConfig;
|
private final OpenOSRSConfig openOSRSConfig;
|
||||||
private final JChannel channel;
|
private final JChannel channel;
|
||||||
@@ -38,7 +39,7 @@ public class Groups extends ReceiverAdapter
|
|||||||
@Getter(AccessLevel.PUBLIC)
|
@Getter(AccessLevel.PUBLIC)
|
||||||
private List<Address> members;
|
private List<Address> members;
|
||||||
@Getter(AccessLevel.PUBLIC)
|
@Getter(AccessLevel.PUBLIC)
|
||||||
private Map<String, List<Address>> messageMap = new HashMap<>();
|
private final Map<String, List<Address>> messageMap = new HashMap<>();
|
||||||
@Getter(AccessLevel.PUBLIC)
|
@Getter(AccessLevel.PUBLIC)
|
||||||
private final PublishSubject<Message> messageStringSubject = PublishSubject.create();
|
private final PublishSubject<Message> messageStringSubject = PublishSubject.create();
|
||||||
@Getter(AccessLevel.PUBLIC)
|
@Getter(AccessLevel.PUBLIC)
|
||||||
@@ -79,9 +80,9 @@ public class Groups extends ReceiverAdapter
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
byte[] buffer = Util.objectToByteBuffer(configChanged);
|
byte[] buffer = Util.objectToByteBuffer(configChanged);
|
||||||
Message message = new Message()
|
Message message = new ObjectMessage()
|
||||||
.setDest(destination)
|
.setDest(destination)
|
||||||
.setBuffer(buffer);
|
.setObject(buffer);
|
||||||
|
|
||||||
channel.send(message);
|
channel.send(message);
|
||||||
}
|
}
|
||||||
@@ -119,7 +120,7 @@ public class Groups extends ReceiverAdapter
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
channel.send(new Message(destination, command));
|
channel.send(new ObjectMessage(destination, command));
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<config xmlns="urn:org:jgroups"
|
<config xmlns="urn:org:jgroups"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd"
|
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd"
|
||||||
version="4.2.4.Final">
|
version="5.0.0">
|
||||||
<UDP
|
<UDP
|
||||||
bind_addr="127.0.0.1"
|
bind_addr="127.0.0.1"
|
||||||
mcast_port="${jgroups.udp.mcast_port:45588}"
|
mcast_port="${jgroups.udp.mcast_port:45588}"
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ dependencies {
|
|||||||
implementation(group = "com.google.code.gson", name = "gson", version = "2.8.6")
|
implementation(group = "com.google.code.gson", name = "gson", version = "2.8.6")
|
||||||
implementation(group = "com.google.guava", name = "guava", version = "29.0-jre")
|
implementation(group = "com.google.guava", name = "guava", version = "29.0-jre")
|
||||||
implementation(group = "com.github.petitparser", name = "java-petitparser", version = "2.3.1")
|
implementation(group = "com.github.petitparser", name = "java-petitparser", version = "2.3.1")
|
||||||
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.8.0")
|
implementation(group = "com.squareup.okhttp3", name = "okhttp", version = "4.8.1")
|
||||||
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
implementation(group = "org.slf4j", name = "slf4j-api", version = "1.7.30")
|
||||||
implementation(group = "org.slf4j", name = "slf4j-simple", version = "1.7.30")
|
implementation(group = "org.slf4j", name = "slf4j-simple", version = "1.7.30")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user