Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.github.rodm.teamcity-agent") version "1.5-beta-1a"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

plugins {
  id "com.github.rodm.teamcity-agent" version "1.5-beta-1a"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects