Skip to main content

Setting Up Your IDE, Maven, and Gradle

This page shows how to configure a plugin project so it compiles against the TwiLite API

Requirements

  • JDK 21
  • A Java IDE of your choice
  • Maven or Gradle
  • A local TwiLite install

TwiLite installs the client jar to:

%USERPROFILE%\twilite\latest\twilite-bot.jar

The latest directory is intentionally stable, so your IDE can point to the same path even when TwiLite updates.

IntelliJ IDEA

  1. Open the plugin project.
  2. Set the project SDK to JDK 21.
  3. Add the TwiLite jar as a dependency, either through your project structure, maven config or gradle config