Skip to content

Commit

Permalink
Merge pull request #1 from palantir/feature/travis-ci
Browse files Browse the repository at this point in the history
Configure TravisCI builds
  • Loading branch information
markelliot committed Sep 26, 2015
2 parents 54d1783 + c5e0549 commit 5be51b9
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sudo: false
language: java
jdk:
- oraclejdk7
after_success:
- "./gradlew --info bintrayUpload"
- "./gradlew --info -Dgradle.publish.key=$GRADLE_KEY -Dgradle.publish.secret=$GRADLE_SECRET publishPlugins"
env:
global:
- secure: sRXd9piG1FKukw9C6vU9uVpuLmyBpuES7qlA04zXEdDuy1i9Bl/iFYZoIxs+P1fzv94DmH+XEPXjI1TgtakjjDouTpLkfx2/YPNlGX7L9v7PWPjDmLAmkkXn6zY4eeBpqt7ExbbsQWXqbGuu1lZm97bMy7GvUHvalrvnCNy01lXUWOBC2JchwOTa1tWK/ML4fu4r3VTrac8hsQRI+4wK36W8quvUiEygvgrQyZXH45SSfLWn9VO7GtF0tzlTYbdk5Z0tcpWxzcwXT+NWihpW3Tv9bzdoTJM2YptiD8JkeCqHjb+37YQwmMDMOvwFSI/s6mPx3kXZB7ZCmNi4iztcdtxyu+a1Rx7Uqdi6dLc13bn/1vrfFNhaESY9s9JlNFr37HSx4REY5m/OAVKYOTgKvsAYBIOXwB99Fr9lvy5emAVMCMeE1ABzTEBgN7WkJx/tch9cStLRIcaQ9606um63guD86ZZ6j1I2gu/7hZIUmLqmiivyZ8a4IlXCwI1iagZsVWgEsD3Y+/oeQgtX8zXyd0Wrg7OEBVDipb90LYtKODrPM2+YM7Vo+AUiEdb8R2kJQadw9KaDuegQXtEEbckZfraJve6WrSoF0DPqFZ9eAmAume4do3YXhqTTSdkru7f6RLfxcq0BkxBRxN4l2kZlJqrlMD80VCS0BZ5WcbTPHgs=
- secure: CfNTU5wip0RRNXuvM9Fp3ECX91Z7/ZaxabrIV/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f4VFqg6U/jU8HgWEHMQ5c9Jt8RoN/pr1w7ac+us0abQTmiJCyyY3Lt0ZkncJ6l+eC7aUdQILUqkzAZDaOr2oG8EaYurMQ/iWM+YEecLrlFOrBKfSFqMMGQj2d9Yexp1+wU9lCydJR42DhYc0JDBOioaS9IExfiNOrxRS/DQb6C/u9S7erPK+vliaIG7Ihmb+nwVt8juTj5jzYAlWiXEPKu+imn4CK06rZ1M/DE0L/aiO++XUbYXPwg=
- secure: bTLiBf07grXTpJ8JBHfTg0JMokNMuGsMIb4pzUFSVjKfHt45Ig/qp5voIz1KDhFwqDspk1vENQ7ajnU+rio/R7pX6TfkCCX6FskMygFzR8kncXVw6mekK+lmhwGq0WOeNMgEd9MVCWriCoSCqNQ8Oun+zTiznQw6PgDo2+O9hM/F10/xm4y6FGmdIhBqMpESzinYIs4fMybGBSuH0KpE5xlty4JRR4ROkYOYtMYElHO0lSVvZ/EtWPRq/kqdPCty2QiHv7Sdbjfqs5eBaYnDdQwcIwbIzW5B41SswXetmUzwhV/RZsCoGHh3aA46vkKDt2tyFCcC/SZdaddLjAAx7KjYV96EJrGPo3WYN1DgoEOP7/bULO5u019iyqS+rLO+6ycDSqOW0bBDpPIJyjOTT2elannFNzguW0/Zq/XJDo3e/5Lio3cMHhS70rSmABMlosbsxTa1ex4mnoxbNuxb8yPrN7fkhEaIiqrsuTh7DeYK2t9Fa1fj+mtQweq3ihqch7BMVH2EJJORVMGWBrjMG2ki4+7LAiHkzemIEQrDC4nKuVGufnBVZU/v00/+rk1H0ecLCj7Xr0VRTyd+swmhwS8yoEkzFNoyk+ExF1RyrfC06q8H3EnPsYwmUzDmZAQd0ojz31s7DzuEsmdUi+npB0/XwVQy+2AjHC+vrQP9umE=
37 changes: 37 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
plugins {
id 'com.gradle.plugin-publish' version '0.9.1'
id 'com.jfrog.bintray' version '1.2'
id 'com.palantir.git-version' version '0.1.3'
id 'eclipse'
id 'groovy'
id 'idea'
id 'maven-publish'
}

task createClasspathManifest {
Expand Down Expand Up @@ -36,6 +38,41 @@ dependencies {
group 'com.palantir.gradle.javadist'
version gitVersion()

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

publishing {
publications {
bintray(MavenPublication) {
from components.java
artifact(sourceJar) {
classifier 'sources'
}
}
}
}

bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'releases'
name = 'gradle-java-distribution'
userOrg = 'palantir'
licenses = ['Apache-2.0']
publications = ['bintray']
}
}

bintrayUpload.onlyIf {
System.getenv('BINTRAY_USER') && System.getenv('BINTRAY_KEY') && project.version ==~ /\d+\.\d+\.\d+/
}

bintrayUpload.dependsOn { generatePomFileForBintrayPublication }
bintrayUpload.dependsOn { sourceJar }
bintrayUpload.dependsOn { build }
pluginBundle {
website = 'https://github.com/palantir/gradle-java-distribution'
vcsUrl = 'https://github.com/palantir/gradle-java-distribution'
Expand Down

0 comments on commit 5be51b9

Please sign in to comment.