Fixed bintray upload.
This commit is contained in:
parent
396efca16f
commit
91993c5986
1 changed files with 8 additions and 10 deletions
18
build.gradle
18
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.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue