mirror of https://github.com/jruby-gradle/jem
Add necessary support to release on tag creation
This commit is contained in:
parent
2c508208df
commit
88aede0bc6
27
.travis.yml
27
.travis.yml
|
@ -1,22 +1,23 @@
|
|||
language: java
|
||||
sudo: false
|
||||
|
||||
install:
|
||||
- ./gradlew clean
|
||||
|
||||
- "./gradlew clean"
|
||||
script:
|
||||
- ./gradlew -S -i
|
||||
|
||||
- "./gradlew -S -i"
|
||||
jdk:
|
||||
- oraclejdk7
|
||||
- oraclejdk8
|
||||
- openjdk7
|
||||
|
||||
- oraclejdk7
|
||||
- oraclejdk8
|
||||
- openjdk7
|
||||
os:
|
||||
- linux
|
||||
|
||||
env: TERM=dumb
|
||||
- linux
|
||||
env:
|
||||
matrix:
|
||||
- TERM=dumb
|
||||
global:
|
||||
secure: vrpA/1ZRdMhmLPNYWqf5vAHTA3if5ScYBYnxMZOMS9cNWdy9zxlwz1rmATAVeZpk82d3YMYwbBWGwErFA3PlPw4fld/bUTZF35PRhsS+oRWISB7jeV+1LqAqmN6zu2Bw+rxpYhGCfTEhx2BONpdpXUvHD10q3D37uiZSqjKNIzpNnYC1vcyhLmpN/rRBEb7H7CuchIWCXf0w3HA/K83euZ6VQsXg2F+rOsVYND3Oga9OJYPEfxWNd7lLc6mnrWySwac9sRtDNktw4Me1pXHzIY9huKcufiYvbGtZnFu75mj2ARx4i5QaI9rd8M/lbtfKc4QA7KYmCeS+CXykZrVPOPhYNuPLWINc1DK61iv+WeDog+6mZfsEhbo2atuSpZrC0P6pwG0D6ceCrCQ437/2HSGEtYRcgFEmQQ2w9rKqMiImYXfDMz5qoZg6P1TJ3UQUNysnunMoA17abLLKAxfLvGSm8vWwCbuThhSdn5dZo+MiZmZpd0SsRwPtXrTf7Gph9KnFkSZDSLjgZd3dvZZxu5GrTh1LSBXauIrQXtm/jD4OiQL5hjWlJzh9niiVTtkp/ztj+uzHdDtPUGeEECtD+z5EthzCj+4cpzV+b8KUuF/RlcKGLVoserzYCJy5y2V3BT39GAya9YVuW5YYIEDoIifSlu9qkVCGqFrA93VQanM=
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.gradle
|
||||
- "$HOME/.gradle"
|
||||
|
||||
after_success: "./gradlew bintrayUpload -PbintrayUser=rtyler -PbintrayKey=${BINTRAY_KEY}"
|
||||
|
|
11
build.gradle
11
build.gradle
|
@ -1,7 +1,18 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'groovy'
|
||||
apply plugin: 'maven'
|
||||
apply plugin: 'codenarc'
|
||||
apply from: 'gradle/releasing.gradle'
|
||||
|
||||
version = '0.1.0'
|
||||
group = 'com.github.jrubygradle'
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
apply plugin: 'com.jfrog.bintray'
|
||||
|
||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
}
|
||||
|
||||
bintray {
|
||||
user = project.bintrayUser
|
||||
key = project.bintrayKey
|
||||
publish = true
|
||||
dryRun = false
|
||||
configurations = ['archives']
|
||||
/*
|
||||
* Only only publish when we're tagging a release and if we've executed on
|
||||
* the JDK7 build. This is to prevent multiple attempts by the build matrix
|
||||
* to publish the artifacts
|
||||
*/
|
||||
dryRun = !((System.env.TRAVIS_TAG as boolean) && (System.env.TRAVIS_JDK_VERSION == 'oraclejdk7'))
|
||||
|
||||
pkg {
|
||||
userOrg = 'jruby-gradle'
|
||||
repo = 'libraries'
|
||||
name = 'jem'
|
||||
labels = ['jruby','java']
|
||||
|
||||
version {
|
||||
name = project.version
|
||||
vcsTag = "v${project.version}"
|
||||
desc = project.description
|
||||
}
|
||||
}
|
||||
}
|
||||
bintrayUpload.dependsOn assemble
|
Loading…
Reference in New Issue