From 649c26ad6c9cb4a8e7858e591678180454c405ba Mon Sep 17 00:00:00 2001 From: Dmitry Ustinov Date: Wed, 7 Feb 2024 13:30:32 +0300 Subject: [PATCH] Support kotlin notation in releaseManagement section --- .../release-management-gradle-plugin.adoc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/src/docs/asciidoc/release-management-gradle-plugin.adoc b/docs/src/docs/asciidoc/release-management-gradle-plugin.adoc index 7b80df2..fde1445 100644 --- a/docs/src/docs/asciidoc/release-management-gradle-plugin.adoc +++ b/docs/src/docs/asciidoc/release-management-gradle-plugin.adoc @@ -567,7 +567,7 @@ No additional plugin applying is needed. Dependency registration performs automatically when property '-PincludeAllDependencies' is set. Release management gradle plugin adds all dependencies which are included to distribution and filtered by groups used in the Company. To add extra dependencies the section releaseDependencies of the releaseManagement extension has to be configured: -.E.g. +.E.g. Groovy build.gradle [source,groovy] ---- plugins { @@ -582,6 +582,19 @@ releaseManagement { } ---- +.E.g. Kotlin build.gradle.kts +[source,kotlin] +---- +plugins { + id 'org.octopusden.octopus-release-management' +} + +releaseManagement { + component(mapOf("name" to "deployer", "version" to project.properties["deployer.version"])) + component(mapOf("name" to "deployerDSL", "version" to project.properties["deployer.dsl.version"])) +} +---- + .Supported formats: * component name: "componentName", version: "1.0" * component "componentName:version"