import Ġjet brains . build Server . configs . kotlin . v 2 0 1 9 _ 2 . Build Type Ċ import Ġjet brains . build Server . configs . kotlin . v 2 0 1 9 _ 2 . Checkout Mode Ċ import Ġjet brains . build Server . configs . kotlin . v 2 0 1 9 _ 2 . Dsl Context Ċ import Ġjet brains . build Server . configs . kotlin . v 2 0 1 9 _ 2 . Parame tri zed WithType Ċ Ċ fun ĠBuild Type . agent Requirement ( os : ĠOs ) Ġ{ ĊĠĠĠ Ġrequirements Ġ{ ĊĠĠĠĠĠĠĠ Ġcontains (" team city . agent . jvm . os . name ", Ġos . requirement Name ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun Ġtoolchain Configuration ( os : ĠOs ) Ġ= ĠlistOf ("- P org . gradle . java . install ations . auto - detect = false ", ĊĠĠĠ Ġ"- P org . gradle . java . install ations . auto - download = false ", ĊĠĠĠ Ġ""" "- P org . gradle . java . install ations . paths =% ${ os . name }. java 8 . oracle . 6 4 bit % ,% ${ os . name }. java 1 1 . openjdk . 6 4 bit % """" ). join ToString (" Ġ") Ċ Ċ fun ĠPar ame tri zed WithType . java Home ( os : ĠOs , Ġjava Version : ĠJava Version ) Ġ{ ĊĠĠĠ Ġparam (" env . JAVA _ HOME ", Ġjava Version . java Home ( os )) Ċ } Ċ Ċ enum Ġclass ĠJava Version ( private Ġval Ġjava Home Post fix : ĠString ) Ġ{ ĊĠĠĠ ĠOR AC LE _ JAVA _ 8 (" java 8 . oracle . 6 4 bit "), ĊĠĠĠ ĠOPEN JDK _ 1 1 (" java 1 1 . openjdk . 6 4 bit "); ĊĊĠĠĠ Ġfun Ġjava Home ( os : ĠOs ) Ġ= Ġ"% ${ os . name }. $ java Home Post fix %" Ċ } Ċ Ċ fun ĠBuild Type . gradle Profiler V cs () Ġ{ ĊĠĠĠ Ġv cs Ġ{ ĊĠĠĠĠĠĠĠ Ġroot ( Dsl Context . settings Root ) ĊĠĠĠĠĠĠĠ Ġcheckout Mode Ġ= ĠCheckout Mode . ON _ AGENT ĊĠĠĠ Ġ} Ċ } Ċ