Skip to content

Commit

Permalink
organicveggie#17 add bintray publish task
Browse files Browse the repository at this point in the history
  • Loading branch information
watsoncj committed Apr 1, 2015
1 parent c54f489 commit 2e4b8eb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
8 changes: 8 additions & 0 deletions PUBLISHING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Publishing to Bintray

Add your user and API key to `~/.gradle/gradle.properties'`

bintrayUser=myuser
bintrayKey=myapikey

Run `./gradlew bintrayUpload`
22 changes: 17 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ buildscript {
maven { url 'http://repo.springsource.org/plugins-release' }
}
dependencies {
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.3'
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7'
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:0.6"
}
}

Expand All @@ -22,6 +23,7 @@ subprojects {
apply 'propdeps-maven'
apply 'propdeps-idea'
apply 'propdeps-eclipse'
apply 'com.jfrog.bintray'
}

group = 'com.readytalk'
Expand Down Expand Up @@ -52,8 +54,8 @@ subprojects {
sourceCompatibility = 1.6
targetCompatibility = 1.6

tasks.withType(Compile) {
options.compilerArgs << "-Xlint:all"
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:all"
}

task sourceJar(type: Jar) {
Expand Down Expand Up @@ -93,6 +95,17 @@ subprojects {
}
}

bintray {
user = bintrayUser
key = bintrayKey
configurations = ['archives']
pkg {
userOrg = 'readytalk'
repo = 'maven'
name = 'metrics-statsd'
}
}

artifacts {
archives sourceJar
}
Expand All @@ -102,6 +115,5 @@ subprojects {
}

task wrapper(type: Wrapper) {
gradleVersion = '1.6'
gradleVersion = '2.3'
}

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
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 @@
#Fri Jun 07 17:02:18 MDT 2013
#Tue Mar 31 23:48:49 MDT 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip

0 comments on commit 2e4b8eb

Please sign in to comment.