To build gradle runner plugin for TeamCity follow these steps: 1. Download TeamCity distribution. Latest EAP will do. 2. Unpack TeamCity 3. In gradle.properties, set path to unpacked TeamCity distribution 4. In root directory, run following command to build and test plugin: gradlew clean integrationTest dist Gradle runner plugin distribution will be created in build\distributions