-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathandroid-bintray.gradle
38 lines (29 loc) · 1.11 KB
/
android-bintray.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apply plugin: 'com.jfrog.bintray'
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayKey') ? project.property('bintrayKey') : System.getenv('BINTRAY_KEY')
publications = ['MyMaven']
dryRun = project.hasProperty('bintrayDryRun')
publish = project.hasProperty('bintrayPublish')
override = project.hasProperty('bintrayOverride')
pkg {
repo = 'maven'
name = "${project.group}:${project.name}"
userOrg = user
licenses = ['Apache-2.0']
websiteUrl = rootProject.WEBSITE_URL
issueTrackerUrl = rootProject.ISSUE_TRACKER_URL
vcsUrl = rootProject.VCS_URL
githubRepo = rootProject.GITHUB_REPO
githubReleaseNotesFile = rootProject.GITHUB_RELEASE_NOTES_FILE
publicDownloadNumbers = true
version {
name = project.version
vcsTag = "v${project.version}"
released = new Date()
}
}
}
tasks.named("bintrayUpload").configure {
dependsOn tasks.named("publishToMavenLocal")
}