Search Gradle plugins

Using the plugins DSL:

plugins {
  id("io.spring.nohttp") version "0.0.9"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.spring.nohttp:nohttp-gradle:0.0.9")
  }
}

apply(plugin = "io.spring.nohttp")

Using the plugins DSL:

plugins {
  id "io.spring.nohttp" version "0.0.9"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.spring.nohttp:nohttp-gradle:0.0.9"
  }
}

apply plugin: "io.spring.nohttp"

Learn how to apply plugins to subprojects