Skip to content

Commit

Permalink
Bump to version 0.3.0 - add Bintray publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Sep 14, 2015
1 parent 1ba919d commit d82bdbb
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2'
classpath 'com.github.jruby-gradle:jruby-gradle-plugin:0.4.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.3.1'
}
}

Expand All @@ -23,7 +24,7 @@ allprojects {
sourceCompatibility = 1.7

group = 'foundation.omni'
version = '0.3-SNAPSHOT'
version = '0.3.0'

repositories {
jcenter()
Expand Down Expand Up @@ -55,6 +56,8 @@ subprojects {
}
}

apply from: 'gradle/bintray.gradle'

task testReport(type: TestReport) {
destinationDir = file("$buildDir/reports/allTests")
// Include the results from the `test` task in all subprojects
Expand Down
53 changes: 53 additions & 0 deletions gradle/bintray.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// Handles publication of distributions to Bintray
subprojects {
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven'
apply plugin: 'maven-publish'

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

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

artifacts {
archives sourceJar
archives javadocJar
}

publishing {
publications {
jar(MavenPublication) {
from components.java
}
}
}

bintray {
user = project.hasProperty("binTrayAPIUser") ? binTrayAPIUser : 'please set binTrayAPIUser'
key = project.hasProperty("binTrayAPIKey") ? binTrayAPIKey : 'please set binTrayAPIKey'
dryRun = false // whether to run this as dry-run, without deploying
publications = ['jar'] // When uploading Maven-based publication files
pkg {
repo = 'maven'
userOrg = 'omni'
name = 'omnij'
desc = 'OmniJ - Omni Layer for Java and the JVM'
websiteUrl = 'https://github.com/msgilligan/bitcoinj-addons'
issueTrackerUrl = 'https://github.com/msgilligan/bitcoinj-addons/issues'
vcsUrl = 'https://github.com/msgilligan/bitcoinj-addons.git'
licenses = ['Apache-2.0']
labels = ['bitcoin', 'omni', 'json-rpc']
version {
name = project.version
desc = 'Dangerously preliminary release.'
released = new Date()
vcsTag = 'none'
}
}
}
}

0 comments on commit d82bdbb

Please sign in to comment.