Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(chore) Gradle: Reintroduce BinTray support. #128

Merged
merged 1 commit into from
Jul 21, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ buildscript{
classpath 'net.saliman:gradle-cobertura-plugin:2.2.4'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:0.6.1'
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.10.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.5'
}
}

Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ project_description = Simple and clean testing for JavaFX
project_url = https://github.com/TestFX/TestFX
project_scm = https://github.com/TestFX/TestFX
project_issues_url = https://github.com/TestFX/TestFX/issues
project_bintray_repo = testfx
project_bintray_org = testfx
25 changes: 25 additions & 0 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'

def pomConfig = {
name project.name
Expand Down Expand Up @@ -109,3 +110,27 @@ jar {
)
}
}

if (!project.hasProperty('bintrayUsername')) ext.bintrayUsername = 'invalid'
if (!project.hasProperty('bintrayApiKey')) ext.bintrayApiKey = 'invalid'

bintray {
user = project.bintrayUsername
key = project.bintrayApiKey
publications = ['mavenJava']
pkg {
repo = project.project_bintray_repo
userOrg = project.project_bintray_org
name = project.name
desc = project.project_description
licenses = ['EUPL-1.1']
labels = ['testfx', 'javafx']
websiteUrl = project.project_url
issueTrackerUrl = project.project_issues_url
vcsUrl = project.project_scm
publicDownloadNumbers = true
version {
vcsTag = project.version
}
}
}