From 495e3fbc8c521fbfcf2c48c0e5f12b65c196f654 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 21 Dec 2022 20:37:10 +0000 Subject: [PATCH] remove release plugin --- build.gradle.kts | 4 -- .../org/openmicroscopy/ReleasePlugin.kt | 62 ------------------- 2 files changed, 66 deletions(-) delete mode 100644 src/main/kotlin/org/openmicroscopy/ReleasePlugin.kt diff --git a/build.gradle.kts b/build.gradle.kts index a8bf96d..890ec1f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -57,9 +57,5 @@ gradlePlugin { id = "org.openmicroscopy.plugin-publishing" implementationClass = "org.openmicroscopy.PluginPublishingPlugin" } - register("release-plugin") { - id = "org.openmicroscopy.release" - implementationClass = "org.openmicroscopy.ReleasePlugin" - } } } diff --git a/src/main/kotlin/org/openmicroscopy/ReleasePlugin.kt b/src/main/kotlin/org/openmicroscopy/ReleasePlugin.kt deleted file mode 100644 index 16e0ad5..0000000 --- a/src/main/kotlin/org/openmicroscopy/ReleasePlugin.kt +++ /dev/null @@ -1,62 +0,0 @@ -/* - * ----------------------------------------------------------------------------- - * Copyright (C) 2019 University of Dundee & Open Microscopy Environment. - * All rights reserved. - * - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * ------------------------------------------------------------------------------ - */ -package org.openmicroscopy - -import org.ajoberstar.gradle.git.base.GrgitPlugin -import org.ajoberstar.gradle.git.release.opinion.OpinionReleasePlugin -import org.ajoberstar.gradle.git.release.base.ReleasePluginExtension -import org.ajoberstar.gradle.git.release.base.ReleaseVersion -import org.ajoberstar.gradle.git.release.base.TagStrategy -import org.ajoberstar.gradle.git.release.opinion.Strategies -import org.gradle.api.Plugin -import org.gradle.api.Project -import org.gradle.kotlin.dsl.apply -import org.gradle.kotlin.dsl.closureOf -import org.gradle.kotlin.dsl.configure -import org.gradle.kotlin.dsl.delegateClosureOf - -@Deprecated(message="Deprecated since 5.5.3") -class ReleasePlugin : Plugin { - override fun apply(project: Project): Unit = project.run { - applyGrgitPlugin() - configureReleasePluginExtension() - } - - private - fun Project.applyGrgitPlugin() { - apply() - apply() - } - - private - fun Project.configureReleasePluginExtension() { - configure { - versionStrategy(Strategies.getFINAL()) - defaultVersionStrategy = Strategies.getSNAPSHOT() - tagStrategy(delegateClosureOf { - generateMessage = closureOf { - "Version ${project.version}" - } - }) - } - } -}