plugins {
    id("java-gradle-plugin")
    kotlin("jvm") version "1.2.50"
}

repositories {
    jcenter()
    google()
}

dependencies {
    implementation(kotlin("stdlib-jdk8"))
    implementation("com.android.tools.build:gradle:3.1.3")
    implementation("org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.17")
}

gradlePlugin {
    plugins {
        create("androidArtifacts") {
            id = "guru.stefma.androidartifacts"
            implementationClass = "guru.stefma.androidartifacts.AndroidArtifactsPlugin"
        }
    }
}
plugins {
    id("java-gradle-plugin")
    kotlin("jvm") version "1.2.50"
    id("maven-publish")
}

repositories {
    jcenter()
    google()
}

dependencies {
    implementation(kotlin("stdlib-jdk8"))
    implementation("com.android.tools.build:gradle:3.1.3")
    implementation("org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.17")
}

gradlePlugin {
    plugins {
        create("androidArtifacts") {
            id = "guru.stefma.androidartifacts"
            implementationClass = "guru.stefma.androidartifacts.AndroidArtifactsPlugin"
        }
    }
}

/**
 * For local development.
 * Just run
 * ````
 * ./gradlew publishPluginMavenPublicationToMavenLocal
 * ```
 * to publish this plugin to the local maven
 *
 * Can be used either via
 * ```
 *     plugins { id("guru.stefma.androidartifcts") }
 * ```
 * or with the old `buildscript` block
 * ```
 *     buildscript {
 *         repositories {
 *             google()
 *             jcenter()
 *             mavenLocal()
 *         }
 *         dependencies { classpath "guru.stefma.androidartifacts:androidartifacts:DEV" }
 *     }
 *
 *     apply<guru.stefma.androidartifacts.AndroidArtifactsPlugin>()
 * ```
 */
group = "guru.stefma.androidartifacts"
version = "dev"
Add maven-publish to publish the plugin to mavenLocal
Add maven-publish to publish the plugin to mavenLocal

StefMa/AndroidArtifacts,StefMa/AndroidArtifacts