Konvert muzzle plugin definition to Kotlin
DELETE
buildSrc/build.gradle
-apply plugin: 'groovy'
-
-repositories {
- jcenter()
-}
-
-dependencies {
- compile gradleApi()
- compile localGroovy()
-
- compile group: 'org.eclipse.aether', name: 'aether-connector-basic', version: '1.1.0'
- compile group: 'org.eclipse.aether', name: 'aether-transport-http', version: '1.1.0'
- compile group: 'org.apache.maven', name: 'maven-aether-provider', version: '3.3.9'
-
- compile group: 'com.google.guava', name: 'guava', version: '20.0'
- compile group: 'org.ow2.asm', name: 'asm', version: '7.0-beta'
- compile group: 'org.ow2.asm', name: 'asm-tree', version: '7.0-beta'
-}

ADD
buildSrc/build.gradle.kts
+plugins {
+ groovy
+ `java-gradle-plugin`
+}
+
+gradlePlugin {
+ plugins {
+ create("muzzle-plugin") {
+ id = "muzzle"
+ implementationClass = "MuzzlePlugin"
+ }
+ }
+}
+
+repositories {
+ jcenter()
+}
+
+dependencies {
+ compile(gradleApi())
+ compile(localGroovy())
+
+ compile("org.eclipse.aether", "aether-connector-basic", "1.1.0")
+ compile("org.eclipse.aether", "aether-transport-http", "1.1.0")
+ compile("org.apache.maven", "maven-aether-provider", "3.3.9")
+
+ compile("com.google.guava", "guava", "20.0")
+ compile("org.ow2.asm", "asm", "7.0-beta")
+ compile("org.ow2.asm", "asm-tree", "7.0-beta")
+}

Konvert muzzle plugin definition to Kotlin