setup Jda
fun Project.setupJda(javaSetupConfig: JavaSetupConfig = JavaSetupConfig(), jdaSetupConfig: JdaSetupConfig = JdaSetupConfig(), jdaConfig: DependencyConfig)
Sets up the project using JDA (Java-Discord API)
Checks if the Shadow plugin is applied
Calls setupJava with the specified parameters
Calls setMainClass with the specified main class name
Adds the
-parameterscompiler argument using addCompilerArgsCalls jda (excluding
opus-javaif specified)Fixes some tasks to depend on the correct jar tasks