Robocode/Gradle
< Robocode
Jump to navigation
Jump to search
Gradle is a build tool commonly used for JVM programming languages. It supports a powerful plugin architecture for providing build features.
Robocode Plugin
A Gradle plugin for Robocode has been created by Bnorm which automates a few pieces of the Robocode development cycle:
- Automatically downloads the configured version of Robocode (optionally can point at an existing install)
- Adds the robocode.jar file to the project compile class path
- If downloaded, automatically configures Robocode to point to development bin directory
- Flattens any dependencies into a single jar file
- This allows using third-party dependencies
- Also allows using alternative JVM languages (like Kotlin) which include their own standard library
- Adds tasks to Gradle for building each configured Robot and generates a Robocode compatible jar file
- Adds a task to Gradle for building class files and placing files in consistent directory for Robocode to read
- Adds a task to Gradle for running Robocode
- Adds a Gradle configuration with all Robocode runtime dependencies for automating targeting and movement challenges