anchor.diff:      }
   ----
   
  +The following example uses the Kotlin DSL.
  +
  +[source,groovy]
  +[subs="attributes"]
  +.build.gradle.kts
  +----
  +    teamcity {
  +        version = "{example-api-version}"
  +
  +        server {
  +            descriptor {
  +                // required properties
  +                name = project.name
  +                displayName = "TeamCity Plugin"
  +                version = project.version as String?
  +                vendorName = "vendor name"
  +
  +                // optional properties
  +                description = "Example TeamCity plugin"
  +                downloadUrl = "download url"
  +                email = "me@example.com"
  +                vendorUrl = "vendor url"
  +                vendorLogo = "vendor logo"
  +                useSeparateClassloader = true
  +
  +                minimumBuild = "10"
  +                maximumBuild = "20"
  +
  +                parameters {
  +                    parameter("name1", "value1")
  +                    parameter("name2", "value2")
  +                }
  +
  +                dependencies {
  +                    plugin("plugin1-name")
  +                    plugin("plugin2-name")
  +                    tool("tool1-name")
  +                    tool("tool2-name")
  +                }
  +            }
  +
  +            files(closureOf<CopySpec> {
  +                into("tooldir") {
  +                    from("tooldir")
  +                }
  +            })
  +        }
  +    }
  +----
  +
   ### TeamCity Environments Configuration
   
   The environments configuration is available by applying the `com.github.rodm.teamcity-server` plugin.
  
positive.code:     }
  ----
  
  ### TeamCity Agent Plugin
  
  The plugin when applied with the Java Plugin, adds the JetBrains Maven repository and adds the TeamCity agent-api and
  
negative.code:                     from('tooldir')
                  }
              }
          }
      }
  ----
  
  The following example uses the Kotlin DSL.
  
  [source,groovy]
  [subs="attributes"]
  .build.gradle.kts
  ----
      extra["teamcityVersion"] = findProperty("teamcity.version") ?: "10.0"
  
      teamcity {
          version = extra["teamcityVersion"] as String
  
          agent {
              descriptor {
                  pluginDeployment {
                      useSeparateClassloader = false
                      executableFiles {
                          include("file1")
                          include("file2")
                      }
                  }
                  dependencies {
                      plugin("plugin-name")
                      tool("tool-name")
                  }
              }
  
              files(closureOf<CopySpec> {
                  into("tooldir") {
                      from("tooldir")
                  }
              })
          }
      }
  ----
  