Skip to content

Commit

Permalink
bintray integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mskonovalov committed Jan 27, 2017
1 parent fa0d580 commit 4ac45d5
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 12 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


[![][travis img]][travis]
[ ![Download][bintray img]][bintray]

1. **ComposedHystrixMetricsPublisher**

Expand Down Expand Up @@ -32,3 +33,6 @@

[travis]:https://travis-ci.org/ringcentral/hystrix-addons
[travis img]:https://travis-ci.org/ringcentral/hystrix-addons.svg?branch=master
[bintray]:https://bintray.com/ringcentral/maven/com.ringcentral.platform%3Ahystrix-addons/_latestVersion
[bintray img]:https://api.bintray.com/packages/ringcentral/maven/com.ringcentral.platform%3Ahystrix-addons/images/download.svg

60 changes: 50 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
apply plugin: 'java'
apply plugin: 'idea'
plugins {
id 'java'
id 'idea'
id 'maven'
id 'maven-publish'
id "com.jfrog.bintray" version "1.7.3"
}

group = 'com.ringcentral.platform'
version = '1.0.0'
Expand All @@ -19,17 +24,52 @@ dependencies {
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.5.0'
}

buildscript {
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

repositories {
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
publishing {
publications {
Mvn(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId "$project.group"
artifactId "$project.name"
version "$project.version"
}
}
}

dependencies {
classpath "net.researchgate:gradle-release:2.4.0"
bintray {
user = hasProperty('user') ? property('user') : ''
key = hasProperty('key') ? property('key') : ''
publications = ['Mvn']
publish = true
override = true
pkg {
repo = 'maven'
name = "$project.group:$project.name"
userOrg = 'ringcentral'
licenses = ['MIT']
vcsUrl = 'https://github.com/ringcentral/hystrix-addons.git'
publicDownloadNumbers = true
githubRepo = 'ringcentral/hystrix-addons'
githubReleaseNotesFile = 'README.md'
websiteUrl = 'https://github.com/ringcentral/hystrix-addons'
issueTrackerUrl = 'https://github.com/ringcentral/hystrix-addons/issues'
version {
name = '1.0.0'
desc = 'Hystrix-addons by Ringcentral, Inc. 1.0.0'
vcsTag = 'v1.0.0'
}
}
}


}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Dec 27 20:01:07 MSK 2016
#Wed Jan 25 12:21:15 MSK 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

0 comments on commit 4ac45d5

Please sign in to comment.