Prerequisites
Before building Runway, ensure you have the following installed:- Java 21 - Required for compilation
- Git - To clone the repository
- Internet connection - For downloading dependencies
Clone the Repository
Build with Gradle
Run the Gradle build command:This will:
- Clean any previous build artifacts
- Compile the source code
- Run the
shadowJartask (included in the build) - Generate the final JAR file
Locate the compiled JAR
After a successful build, find your compiled JAR file at:The
-all suffix indicates this is the shaded JAR with all dependencies included.Build Configuration
Runway uses Paper’s Plugin Loader, which means:No manual shading required - Dependencies are automatically handled by Paper’s Plugin Loader system. The build process takes care of everything.
Dependencies
The plugin compiles with the following dependencies:- Paper API (1.21.11) - Core server API
- PacketEvents (2.11.1) - For packet-level manipulation
- PlaceholderAPI (2.11.5) - Optional placeholder support
- MiniPlaceholders (2.2.3) - Optional MiniMessage placeholder support
Gradle Tasks
Common Gradle tasks you can use:Troubleshooting Build Issues
Java version mismatch
Java version mismatch
Runway requires Java 21. Verify your Java version:If you have multiple Java versions, set
JAVA_HOME to point to Java 21.Gradle wrapper not found
Gradle wrapper not found
If
gradle command is not found, use the Gradle wrapper instead:Dependency download failures
Dependency download failures
If dependencies fail to download:
- Check your internet connection
- Verify you can access Maven repositories
- Try running with
--refresh-dependenciesflag:
Next Steps
After successfully building Runway:- Copy the JAR to your server’s plugins folder
- Follow the Installation guide to configure the plugin
- Check out Configuration for customization options