Publishing Plugin support for testing/mavenLocal()?

Ok, just found out that I simply have to add the maven-publish plugin and “everything is done automatically”…

This configuration creates a publishPluginMavenPublicationToMavenLocal which could be then simply used for testing.

plugins {
    kotlin("jvm") version ("1.2.30")
    id("java-gradle-plugin")
    id("maven-publish")
}

repositories {
    jcenter()
}

dependencies {
    implementation(kotlin("stdlib-jdk8"))
}

group = "my.super.group"
version = "0.0.1"
gradlePlugin {
    plugins {
        create("gloc") {
            id = "my.super.id"
            implementationClass = "my.package.Plugin"
        }
    }
}

Have nothing to do with the Publishing Plugin. But I think that is somehow related to it :joy:

1 Like