Search Gradle plugins

Using the plugins DSL:

plugins {
  id("no.nordicsemi.android.gradle.library") version "2.0.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("no.nordicsemi.android.gradle:plugins:2.0.1")
  }
}

apply(plugin = "no.nordicsemi.android.gradle.library")

Using the plugins DSL:

plugins {
  id "no.nordicsemi.android.gradle.library" version "2.0.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "no.nordicsemi.android.gradle:plugins:2.0.1"
  }
}

apply plugin: "no.nordicsemi.android.gradle.library"

Learn how to apply plugins to subprojects