setupJda

fun Project.setupJda(javaSetupConfig: JavaSetupConfig = JavaSetupConfig(), jdaSetupConfig: JdaSetupConfig = JdaSetupConfig(), jdaConfig: DependencyConfig)

Sets up the project using JDA (Java-Discord API)

  1. Checks if the Shadow plugin is applied

  2. Calls setupJava with the specified parameters

  3. Calls setMainClass with the specified main class name

  4. Adds the -parameters compiler argument using addCompilerArgs

  5. Calls jda (excluding opus-java if specified)

  6. Fixes some tasks to depend on the correct jar tasks

Parameters

javaSetupConfig

The configuration for setupJava

jdaSetupConfig

The configuration for JDA setup

jdaConfig

The configuration for jda