Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.github.rodm.teamcity-server") version "1.1-beta-1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.github.rodm:gradle-teamcity-plugin:1.1-beta-1")
  }
}

apply(plugin = "com.github.rodm.teamcity-server")

Using the plugins DSL:

plugins {
  id "com.github.rodm.teamcity-server" version "1.1-beta-1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.github.rodm:gradle-teamcity-plugin:1.1-beta-1"
  }
}

apply plugin: "com.github.rodm.teamcity-server"

Learn how to apply plugins to subprojects