Skip to content

Commit

Permalink
Fixed deployments to GitHub and Bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
blootsvoets committed Apr 6, 2017
1 parent 11e25c7 commit 47338b3
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ build/
.gradle/
*.java
.gradletasknamecache
gradle.properties
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ env:

deploy:
provider: releases
api_key:
secure: ${GH_TOKEN}
api_key: ${GH_TOKEN}
file_glob: true
file: 'java-sdk/*/build/libs/*.jar'
file: "${TRAVIS_BUILD_DIR}/java-sdk/build/libs/*.jar"
skip_cleanup: true
on:
tags: true
Expand Down
12 changes: 6 additions & 6 deletions java-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ subprojects {
// Configuration
version = '0.1'
group = 'org.radarcns'
ext.githubRepo = 'RADAR-CNS/RADAR-Schemas'
ext.githubRepoName = 'RADAR-CNS/RADAR-Schemas'

targetCompatibility = '1.7'
sourceCompatibility = '1.7'

ext.avroVersion = '1.8.1'

ext.vcsUrl = 'https://github.com/' + githubRepo + '.git'
ext.issueUrl = 'https://github.com/' + githubRepo + '/issues'
ext.githubUrl = 'https://github.com/' + githubRepoName + '.git'
ext.issueUrl = 'https://github.com/' + githubRepoName + '/issues'
ext.website = 'http://radar-cns.org'

// dependencies
Expand Down Expand Up @@ -75,8 +75,8 @@ subprojects {
url website
}
scm {
connection 'scm:git:' + vcsUrl
url vcsUrl
connection 'scm:git:' + githubUrl
url githubUrl
}
}
ext.sharedManifest = manifest {
Expand All @@ -90,7 +90,7 @@ subprojects {
// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.output
from sourceSets.main.allSource
manifest.from sharedManifest
}

Expand Down
10 changes: 5 additions & 5 deletions java-sdk/radar-schemas-commons/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ publishing {
def root = asNode()
root.appendNode('description', description)
root.appendNode('name', artifactName)
root.appendNode('url', vcsUrl)
root.appendNode('url', githubUrl)
root.children().last() + pomConfig
}
}
Expand All @@ -44,13 +44,13 @@ bintray {
publications = ['RadarCommonsPublication']
pkg {
repo = project.group
name = rootProject.name
userOrg = artifactName
name = artifactName
userOrg = 'radar-cns'
licenses = ['Apache-2.0']
websiteUrl = website
issueTrackerUrl = issueUrl
vcsUrl = vcsUrl
githubRepo = githubRepo
vcsUrl = githubUrl
githubRepo = githubRepoName
githubReleaseNotesFile = 'README.md'
version {
name = project.version
Expand Down
10 changes: 5 additions & 5 deletions java-sdk/radar-schemas-questionnaire/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ publishing {
def root = asNode()
root.appendNode('description', description)
root.appendNode('name', artifactName)
root.appendNode('url', vcsUrl)
root.appendNode('url', githubUrl)
root.children().last() + pomConfig
}
}
Expand All @@ -44,13 +44,13 @@ bintray {
publications = ['RadarQuestionnairePublication']
pkg {
repo = project.group
name = rootProject.name
userOrg = artifactName
name = artifactName
userOrg = 'radar-cns'
licenses = ['Apache-2.0']
websiteUrl = website
issueTrackerUrl = issueUrl
vcsUrl = vcsUrl
githubRepo = githubRepo
vcsUrl = githubUrl
githubRepo = githubRepoName
githubReleaseNotesFile = 'README.md'
version {
name = project.version
Expand Down
10 changes: 5 additions & 5 deletions java-sdk/radar-schemas-restapi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ publishing {
def root = asNode()
root.appendNode('description', description)
root.appendNode('name', artifactName)
root.appendNode('url', vcsUrl)
root.appendNode('url', githubUrl)
root.children().last() + pomConfig
}
}
Expand All @@ -44,13 +44,13 @@ bintray {
publications = ['RadarRestApiPublication']
pkg {
repo = project.group
name = rootProject.name
userOrg = artifactName
name = artifactName
userOrg = 'radar-cns'
licenses = ['Apache-2.0']
websiteUrl = website
issueTrackerUrl = issueUrl
vcsUrl = vcsUrl
githubRepo = githubRepo
vcsUrl = githubUrl
githubRepo = githubRepoName
githubReleaseNotesFile = 'README.md'
version {
name = project.version
Expand Down

0 comments on commit 47338b3

Please sign in to comment.