diff --git a/README.md b/README.md index a217080..fad22f0 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ buildscript { plugins { kotlin("jvm") version "$embeddedKotlinVersion" - id("wiremock-extension-convention") + id("org.wiremock.tools.gradle.wiremock-extension-convention") } ``` diff --git a/build.gradle.kts b/build.gradle.kts index 2f80d57..9125f96 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -29,17 +29,16 @@ gradlePlugin { website = "https://github.com/wiremock/gradle-wiremock-extension-plugins" vcsUrl = "https://github.com/wiremock/gradle-wiremock-extension-plugins" plugins { - /*register("wiremock-extension-convention") { - id = "org.wiremock.tools.gradle.wiremock-extension-convention" - implementationClass = "org.wiremock.tools.gradle.conventions.WireMockExtensionConventionPlugin" - displayName = "Gradle convention plugin that bundles common packaging and release logic for WireMock extensions" - description = "Gradle convention plugin for WireMock Extensions" - tags = listOf("wiremock") + afterEvaluate { + removeIf { it.id.equals("wiremock-extension-convention") } + register("wiremock-extension-convention") { + id = "org.wiremock.tools.gradle.wiremock-extension-convention" + implementationClass = "WiremockExtensionConventionPlugin" + displayName = "Gradle convention plugin that bundles common packaging and release logic for WireMock extensions" + description = "Gradle convention plugin for WireMock Extensions" + tags = listOf("wiremock") + } } - register("wiremock-extension-convention") { - id = "org.wiremock.tools.gradle.wiremock-extension-convention" - implementationClass = "WiremockExtensionConventionPlugin" - }*/ } } diff --git a/src/main/groovy/wiremock-extension-convention.gradle b/src/main/groovy/org/wiremock/tools/gradle/wiremock-extension-convention.gradle similarity index 100% rename from src/main/groovy/wiremock-extension-convention.gradle rename to src/main/groovy/org/wiremock/tools/gradle/wiremock-extension-convention.gradle diff --git a/src/test/kotlin/org/wiremock/tools/gradle/conventions/WireMockExtensionConventionTest.kt b/src/test/kotlin/org/wiremock/tools/gradle/conventions/WireMockExtensionConventionTest.kt index a06f689..9d5c933 100644 --- a/src/test/kotlin/org/wiremock/tools/gradle/conventions/WireMockExtensionConventionTest.kt +++ b/src/test/kotlin/org/wiremock/tools/gradle/conventions/WireMockExtensionConventionTest.kt @@ -34,7 +34,7 @@ class WireMockExtensionConventionTest { plugins { kotlin("jvm") version "$embeddedKotlinVersion" - id("wiremock-extension-convention") + id("org.wiremock.tools.gradle.wiremock-extension-convention") } """.trimIndent()