Add the bintray plugin for releasing to bintray
This commit is contained in:
parent
e62fe44a25
commit
5739610d91
64
build.gradle
64
build.gradle
|
@ -1,17 +1,28 @@
|
|||
buildscript {
|
||||
repositories { jcenter() }
|
||||
dependencies { classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.5' }
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "com.github.jruby-gradle.jar" version "0.1.2"
|
||||
// https://github.com/jruby-gradle/jruby-gradle-jar-plugin/issues/18
|
||||
id "com.github.jruby-gradle.base" version "0.1.3"
|
||||
id "com.github.johnrengelman.shadow" version "1.1.2"
|
||||
}
|
||||
|
||||
apply plugin: 'maven'
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'com.jfrog.bintray'
|
||||
|
||||
version = '0.7.0-SNAPSHOT'
|
||||
|
||||
version = '0.7.0'
|
||||
group = 'com.github.jruby-gradle'
|
||||
|
||||
sourceCompatibility = 1.7
|
||||
|
||||
if (System.env.RELEASE != '1') {
|
||||
version = "${version}-SNAPSHOT"
|
||||
}
|
||||
|
||||
import com.github.jrubygradle.JRubyExec
|
||||
|
||||
repositories {
|
||||
|
@ -62,11 +73,6 @@ task compileRedstormJRuby(type: JRubyExec) {
|
|||
|
||||
project.compileJava.dependsOn compileRedstormJRuby
|
||||
|
||||
|
||||
jar {
|
||||
from 'lib'
|
||||
}
|
||||
|
||||
task spec(type: JRubyExec) {
|
||||
group 'JRuby'
|
||||
description 'Run the RSpec examples'
|
||||
|
@ -75,5 +81,49 @@ task spec(type: JRubyExec) {
|
|||
}
|
||||
|
||||
|
||||
jar {
|
||||
from 'lib'
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
}
|
||||
|
||||
|
||||
// Ensure we don't fail in CI or on a system without these values set in
|
||||
// ~/.gradle/gradle.properties
|
||||
if (!hasProperty( 'bintrayUser' ))
|
||||
ext.bintrayUser = ''
|
||||
|
||||
if (!hasProperty( 'bintrayKey' ))
|
||||
ext.bintrayKey = ''
|
||||
|
||||
bintray {
|
||||
user = project.bintrayUser
|
||||
key = project.bintrayKey
|
||||
publish = true
|
||||
dryRun = false
|
||||
configurations = ['archives']
|
||||
|
||||
pkg {
|
||||
userOrg = 'jruby-gradle'
|
||||
repo = 'libraries'
|
||||
name = 'redstorm'
|
||||
labels = ['jruby', 'redstorm', 'storm']
|
||||
|
||||
version {
|
||||
name = project.version
|
||||
vcsTag = "v${project.version}"
|
||||
desc = 'JRuby integration & DSL for the Storm distributed realtime computation system'
|
||||
}
|
||||
}
|
||||
}
|
||||
bintrayUpload.dependsOn assemble
|
||||
|
||||
// vim: ft=groovy et ts=4 sw=4
|
||||
|
||||
|
|
Loading…
Reference in New Issue