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"
|
id "com.github.spotbugs" version "1.6.5"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
import com.github.spotbugs.SpotBugsTask
|
import com.github.spotbugs.SpotBugsTask
|
||||||
import org.apache.tools.ant.taskdefs.condition.Os
|
import org.apache.tools.ant.taskdefs.condition.Os
|
||||||
|
|
||||||
|
@ -46,7 +45,7 @@ bintray {
|
||||||
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
|
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
|
||||||
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
|
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
|
||||||
publications = ['MyPublication']
|
publications = ['MyPublication']
|
||||||
dryRun = true
|
dryRun = false
|
||||||
pkg {
|
pkg {
|
||||||
repo = 'maven'
|
repo = 'maven'
|
||||||
name = mavenName
|
name = mavenName
|
||||||
|
@ -57,14 +56,6 @@ bintray {
|
||||||
vcsUrl = mavenScmCon
|
vcsUrl = mavenScmCon
|
||||||
labels = pkgLabels
|
labels = pkgLabels
|
||||||
publicDownloadNumbers = true
|
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')
|
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']) {
|
task release(dependsOn: ['wrapper', 'clean', 'publishToMavenLocal']) {
|
||||||
group = 'Publishing'
|
group = 'Publishing'
|
||||||
description = 'Releases new version to local maven repository.'
|
description = 'Releases new version to local maven repository.'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue