Skip to content

Commit

Permalink
Fixed bintray upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Nov 4, 2018
1 parent 396efca commit 91993c5
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ plugins {
id "com.github.spotbugs" version "1.6.5"
}


import com.github.spotbugs.SpotBugsTask
import org.apache.tools.ant.taskdefs.condition.Os

Expand Down Expand Up @@ -46,7 +45,7 @@ bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
dryRun = true
dryRun = false
pkg {
repo = 'maven'
name = mavenName
Expand All @@ -57,14 +56,6 @@ bintray {
vcsUrl = mavenScmCon
labels = pkgLabels
publicDownloadNumbers = true
version {
name = project.version
desc = "Version $project.version"
vcsTag = project.version
gpg {
sign = true
}
}
}
}

Expand Down Expand Up @@ -157,6 +148,13 @@ compileTestJava {
options.compilerArgs.add('-proc:none')
}

bintrayUpload {
versionName = "$project.version"
versionDesc = "Beta version $project.version"
versionVcsTag = "$project.version"
signVersion = true
}

task release(dependsOn: ['wrapper', 'clean', 'publishToMavenLocal']) {
group = 'Publishing'
description = 'Releases new version to local maven repository.'
Expand Down

0 comments on commit 91993c5

Please sign in to comment.