所以我一直在摆弄twilio (如果你不知道它是通过代码发送电话消息的一种方式),我让它自己工作,并试图将它合并到spigot中,我使用twilio作为插件的依赖项,但由于twilio不是一个插件,它不能工作,这里是代码(我认为代码很好,我只是不知道如何使twilio成为依赖项) public static final String ACCOUNT_SID = "XXXXXXXXXXXXXX";} @Override
public void onDisable()
-- This adds the Spigot Maven repository to the build --> <id>spigot-repo</id--This adds the Spigot API artifact to the build --> <groupId>org.spigotmc</groupId>
我使用Jitpack将我的github存储库之一作为依赖项,然后使用maven shade将所述依赖项包含在项目的编译输出中。然而,依赖中的3个类中只有2个类被着色到最终的jar中。依赖关系:https://github.com/Benlewis9000/PluginToolsAPI 项目pom: <?xml version="1.0" encoding="UTF-8"?-- This adds the Spig
编写自定义Gradle插件的资源令人厌恶(尤其是在Kotlin而不是Groovy中),我自己也想不出如何做到这一点。version: ${WebScraper.getLatestVersion()}")
it.description = "Adds the spigot api implementation to the project."}}
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot-1.16.1.jar:git-Spigot-0509002_16_R1.CraftServer.enablePlugin(CraftServer.java:493) ~[spigot-1.16.1.jar:git-Spigot-0509002-6b95d59]SessionFactory factory = new Configuration().configure(&
我在我的java项目中使用gradle阴影插件。plugins { id 'com.github.johnrengelman.shadow' version '7.0.0'我使用了下面的代码来消除所有可能的依赖项shadowJar { exclude(dependency("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT22.0.0&q