From dea483b2d639aa5b846bcb9bbcf1ea0258941799 Mon Sep 17 00:00:00 2001 From: Timotei Dolean Date: Tue, 25 May 2021 17:21:08 +0300 Subject: [PATCH] Configure plugins.gradle.org publishing --- CHANGELOG.md | 1 + build.gradle | 43 +++++++++++++++++++++---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index deb0cbc..16a58e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.14 ### Changed * Default OpenCover version is now 4.7.1189 +* The plugin is now published on plugins.gradle.org ## 1.13 ### Fixed diff --git a/build.gradle b/build.gradle index 4b44f5b..71de702 100644 --- a/build.gradle +++ b/build.gradle @@ -1,9 +1,11 @@ plugins { - id 'nu.studer.plugindev' version '1.0.12' id 'net.researchgate.release' version '2.8.0' + id 'com.gradle.plugin-publish' version '0.15.0' + id 'java-gradle-plugin' } apply plugin: 'groovy' +apply plugin: 'com.gradle.plugin-publish' dependencies { compile 'commons-io:commons-io:2.6' @@ -13,28 +15,25 @@ dependencies { group = 'com.ullink.gradle' description 'gradle-opencover-plugin is a Gradle plugin for getting code coverage using OpenCover' -bintray { - user project.properties.bintrayUser - key project.properties.bintrayApiKey - pkg.repo = 'gradle-plugins' - pkg.version.gpg.sign = true - pkg.userOrg = 'ullink' -} +pluginBundle { + website = 'https://github.com/Itiviti/gradle-opencover-plugin' + vcsUrl = 'https://github.com/Itiviti/gradle-opencover-plugin' + tags = ['opencover', 'nunit', 'c#', '.net'] -plugindev { - pluginName 'com.ullink.gradle:gradle-opencover-plugin' - pluginDescription project.description - pluginLicenses 'Apache-2.0' - pluginTags 'gradle', 'plugin', 'opencover', 'c#', '.net', 'test' - authorId 'muryoh' - authorName 'Remy Masson' - authorEmail 'muryoh@gmail.com' - projectUrl "https://github.com/Ullink/${project.name}" - projectInceptionYear '2015' - pluginId = 'com.ullink.opencover-nunit' - pluginImplementationClass 'com.ullink.gradle.opencover.OpenCoverNUnitPlugin' + mavenCoordinates { + groupId = 'com.ullink.gradle' + } +} - done() +gradlePlugin { + plugins { + opencoverPlugin { + id = 'com.ullink.opencover-nunit' + description = project.description + displayName = 'Gradle Opencover Plugin' + implementationClass = 'com.ullink.gradle.opencover.OpenCoverNUnitPlugin' + } + } } -afterReleaseBuild.dependsOn project.tasks.bintrayUpload +afterReleaseBuild.dependsOn project.tasks.publishPlugins