Search Gradle plugins

Using the plugins DSL:

plugins {
  id "com.github.jruby-gradle.war" version "2.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.github.jruby-gradle:jruby-gradle-war-plugin:2.0.0"
  }
}

apply plugin: "com.github.jruby-gradle.war"

Using the plugins DSL:

plugins {
  id("com.github.jruby-gradle.war") version "2.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.github.jruby-gradle:jruby-gradle-war-plugin:2.0.0")
  }
}

apply(plugin = "com.github.jruby-gradle.war")

Learn how to apply plugins to subprojects