Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.komapper.gradle") version "2.2.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.komapper:gradle-plugin:2.2.2")
  }
}

apply(plugin = "org.komapper.gradle")

Using the plugins DSL:

plugins {
  id "org.komapper.gradle" version "2.2.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.komapper:gradle-plugin:2.2.2"
  }
}

apply plugin: "org.komapper.gradle"

Learn how to apply plugins to subprojects