From 79f6e2cec477ae333d5749b9b537622e09e6b68f Mon Sep 17 00:00:00 2001 From: Andres Almiray Date: Fri, 5 Feb 2021 12:26:28 +0100 Subject: [PATCH] [bintray] deprecate plugin. Fixes #447 --- .../src/docs/asciidoc/plugins/bintray-gradle-plugin.adoc | 3 +++ .../gradle/plugin/base/ProjectConfigurationExtension.groovy | 4 ++++ .../org/kordamp/gradle/plugin/base/plugins/Bintray.groovy | 1 + .../org/kordamp/gradle/plugin/bintray/BintrayPlugin.groovy | 1 + 4 files changed, 9 insertions(+) diff --git a/docs/guide/src/docs/asciidoc/plugins/bintray-gradle-plugin.adoc b/docs/guide/src/docs/asciidoc/plugins/bintray-gradle-plugin.adoc index 08e09aeb5..1ab3aa497 100644 --- a/docs/guide/src/docs/asciidoc/plugins/bintray-gradle-plugin.adoc +++ b/docs/guide/src/docs/asciidoc/plugins/bintray-gradle-plugin.adoc @@ -18,6 +18,9 @@ applies:: `<<_org_kordamp_gradle_base,org.kordamp.gradle.base>>`, + `link:https://github.com/bintray/gradle-bintray-plugin[com.jfrog.bintray]` applied by:: `<<_org_kordamp_gradle_project,org.kordamp.gradle.project>>` +WARNING: This plugin has been deprecated without replacement. Bintray is shutting down +link:https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/[] + Configures artifact publications using Bintray. Relies on the publication configured by the `<<_org_kordamp_gradle_publishing,org.kordamp.gradle.publishing>>` plugin. The name of the publication matches `"main"`. diff --git a/plugins/base-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/base/ProjectConfigurationExtension.groovy b/plugins/base-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/base/ProjectConfigurationExtension.groovy index 6a0fcdf05..d6341b974 100644 --- a/plugins/base-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/base/ProjectConfigurationExtension.groovy +++ b/plugins/base-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/base/ProjectConfigurationExtension.groovy @@ -177,11 +177,15 @@ class ProjectConfigurationExtension { ConfigureUtil.configure(action, bom) } + @Deprecated void bintray(Action action) { + println("The method config.bintray is deprecated and will be removed in the future.") action.execute(bintray) } + @Deprecated void bintray(@DelegatesTo(strategy = Closure.DELEGATE_FIRST, value = Bintray) Closure action) { + println("The method config.bintray is deprecated and will be removed in the future.") ConfigureUtil.configure(action, bintray) } diff --git a/plugins/base-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/base/plugins/Bintray.groovy b/plugins/base-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/base/plugins/Bintray.groovy index 83c2e975b..f691f8a9c 100644 --- a/plugins/base-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/base/plugins/Bintray.groovy +++ b/plugins/base-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/base/plugins/Bintray.groovy @@ -32,6 +32,7 @@ import static org.kordamp.gradle.util.StringUtils.isBlank * @since 0.8.0 */ @CompileStatic +@Deprecated class Bintray extends AbstractFeature { static final String PLUGIN_ID = 'org.kordamp.gradle.bintray' diff --git a/plugins/bintray-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/bintray/BintrayPlugin.groovy b/plugins/bintray-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/bintray/BintrayPlugin.groovy index f8ac10771..4528baece 100644 --- a/plugins/bintray-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/bintray/BintrayPlugin.groovy +++ b/plugins/bintray-gradle-plugin/src/main/groovy/org/kordamp/gradle/plugin/bintray/BintrayPlugin.groovy @@ -44,6 +44,7 @@ import static org.kordamp.gradle.util.StringUtils.isNotBlank * @since 0.2.0 */ @CompileStatic +@Deprecated class BintrayPlugin extends AbstractKordampPlugin { Project project