add ability to publish this plugin to Bintray

Former-commit-id: 61b03346bf2f3035d52f86c88d8d655099ed5eb7
This commit is contained in:
ma wei
2015-05-12 16:45:40 +08:00
parent f29e4a5d36
commit 51c3ebcdb8
2 changed files with 42 additions and 7 deletions

View File

@@ -8,4 +8,5 @@
out/
build/
gradle-app.setting
gradle-app.setting
gradle.properties

View File

@@ -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
}