2.1.x - Using maven dependency causes NoSuchMethodError
codeHusky opened this issue ยท 0 comments
Due to remaps that occur in the actual plugin build of PlasmoVoice, you get a NoSuchMethodError when compiling against the relevant server API package for 2.1.0-SNAPSHOT
[18:53:49 WARN]: Nag author(s): '[]' of 'PlasmoDynamicSources v1.0.0' about their usage of System.out/err.print. Please use your plugin's logger instead (JavaPlugin#getLogger).
[18:53:49 WARN]: Exception in thread "Runnable-0" java.lang.NoSuchMethodError: 'kotlinx.coroutines.Job su.plo.voice.api.server.audio.source.AudioSender.start()'
[18:53:49 WARN]: at plasmo-dynamic-sources-1.0-SNAPSHOT.jar//com.codehusky.plasmo.dynamicsources.player.HuskyAudioPlayer.lambda$playFrame$1(HuskyAudioPlayer.java:54)
[18:53:49 WARN]: at java.base/java.lang.Iterable.forEach(Iterable.java:75)
[18:53:49 WARN]: at plasmo-dynamic-sources-1.0-SNAPSHOT.jar//com.codehusky.plasmo.dynamicsources.player.HuskyAudioPlayer.playFrame(HuskyAudioPlayer.java:37)
Dependency
<dependency>
<groupId>su.plo.voice.api</groupId>
<artifactId>server</artifactId>
<version>2.1.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
I may have been using this wrong, let me know if that's the case. I'm not using Kotlin here, just standard Java.