Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.danielrbaird.nativeStrings") version "1.0.11-SNAPSHOT"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.danielrbaird.nativeStrings:NativeStringsPlugin:1.0.11-SNAPSHOT")
  }
}

apply(plugin = "com.danielrbaird.nativeStrings")

Using the plugins DSL:

plugins {
  id "com.danielrbaird.nativeStrings" version "1.0.11-SNAPSHOT"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.danielrbaird.nativeStrings:NativeStringsPlugin:1.0.11-SNAPSHOT"
  }
}

apply plugin: "com.danielrbaird.nativeStrings"

Learn how to apply plugins to subprojects