From 91993c598686c31babd32a976dda571249f3f7b5 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 3 Nov 2018 17:11:08 -0700 Subject: [PATCH] Fixed bintray upload. --- build.gradle | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index fa6af98..2dccfe3 100644 --- a/build.gradle +++ b/build.gradle @@ -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 @@ -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 @@ -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 - } - } } } @@ -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.'