From 51c3ebcdb875abd8aa577d4f823f21dc2a101174 Mon Sep 17 00:00:00 2001 From: ma wei Date: Tue, 12 May 2015 16:45:40 +0800 Subject: [PATCH] add ability to publish this plugin to Bintray Former-commit-id: 61b03346bf2f3035d52f86c88d8d655099ed5eb7 --- dependency-check-gradle/.gitignore | 3 +- dependency-check-gradle/build.gradle | 46 ++++++++++++++++++++++++---- 2 files changed, 42 insertions(+), 7 deletions(-) diff --git a/dependency-check-gradle/.gitignore b/dependency-check-gradle/.gitignore index 81b3f9e8c..2a132566c 100644 --- a/dependency-check-gradle/.gitignore +++ b/dependency-check-gradle/.gitignore @@ -8,4 +8,5 @@ out/ build/ -gradle-app.setting \ No newline at end of file +gradle-app.setting +gradle.properties \ No newline at end of file diff --git a/dependency-check-gradle/build.gradle b/dependency-check-gradle/build.gradle index 5774f74df..fc3a94a17 100644 --- a/dependency-check-gradle/build.gradle +++ b/dependency-check-gradle/build.gradle @@ -1,9 +1,16 @@ +plugins { + id 'nu.studer.plugindev' version '1.0.3' +} + apply plugin: 'idea' apply plugin: 'groovy' apply plugin: 'maven' repositories { mavenCentral() + maven { + url 'http://dl.bintray.com/wei/maven' + } } dependencies { @@ -18,10 +25,37 @@ dependencies { group = 'com.tools.security' version = '0.0.1' -uploadArchives { - repositories { - mavenDeployer { - repository(url: uri('../../../repo')) - } - } +//------------------------------- +// Local debug use only +// +//uploadArchives { +// repositories { +// mavenDeployer { +// repository(url: uri('../../../repo')) +// } +// } +//} +//------------------------------- + +plugindev { + pluginId = 'dependency.check' + pluginName = 'dependency-check' + pluginImplementationClass 'com.tools.security.plugin.DependencyCheckGradlePlugin' + pluginDescription 'This is dependency check gradle plugin.' + pluginLicenses 'Apache-2.0' + pluginTags 'dependency check', 'security' + authorId 'wmaintw' + authorName 'Wei Ma' + authorEmail 'wma@thoughtworks.com' + projectUrl 'https://github.com/wmaintw/DependencyCheck' + projectIssuesUrl 'https://github.com/wmaintw/DependencyCheck/issues' + projectVcsUrl 'git@github.com:wmaintw/DependencyCheck.git' + projectInceptionYear '2015' + done() +} + +bintray { + user = bintrayUser + key = bintrayUserKey + pkg.repo = bintrayRepo } \ No newline at end of file