- install jdk 8, 11 or later Oracle JDK, Liberica JDK
- install robocode on your computer
- change
robotClassto your robot'sclassNameingradle.properties - change
robocodeDirto your robocode installation directory ingradle.properties - create properties file with your class name in
src/main/resourcesjust like minecom/kortov/MyRobot.properties(package structure is neccessary) and remove my properties (I'll improve my script later to get rid of this step) - replace
robot.classnameandrobot.versionin your resources properties file to yourrobotClassandrobotVersionvalues from gradle.properties (I'll improve it later) - (optional) replace
robotClassEnemyin gradle.properties to your downloaded or built bot enemy classes (you can specify them with comma). Bots classes or jars should exist in robocodeDir/robots - cd in console to a project folder and run
gradlew superstartin console (./gradlew superstarton linux)
That's it! Your bot will be in projectDirectory/build/libs and in robocodeDir/robots
Manually change versions in two properties from src/main/resources and gradle.properties otherwise robocode will play the old version or won't find the new one
invokes clean and removes your files of bot's jar, bots game scenario and imported bots table from your robocode installation directory
builds jar, moves jar and bots game scenario to robocode dir
starts robocode app with your bot game scenario
invokes cleanup, install, start tasks sequentially