Skip to content

Commit

Permalink
Fix publishing of the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Nov 21, 2023
1 parent faff11a commit 5a6c05d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ buildscript {

plugins {
kotlin("jvm") version "$embeddedKotlinVersion"
id("wiremock-extension-convention")
id("org.wiremock.tools.gradle.wiremock-extension-convention")
}
```

Expand Down
19 changes: 9 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}*/
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class WireMockExtensionConventionTest {
plugins {
kotlin("jvm") version "$embeddedKotlinVersion"
id("wiremock-extension-convention")
id("org.wiremock.tools.gradle.wiremock-extension-convention")
}
""".trimIndent()
Expand Down

0 comments on commit 5a6c05d

Please sign in to comment.