apply plugin: 'java' dependencies { testCompile files('../../lib/junit-4.8.1.jar') } task printProperties << { project.getProperties().each { key, val -> println "##gradle-property name='${key}' value='${val}'" } teamcity.each { key, val -> println "##tc-property name='${key}' value='${val}'" } }