-
Notifications
You must be signed in to change notification settings - Fork 91
/
release-bintray.gradle
62 lines (50 loc) · 1.9 KB
/
release-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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apply plugin: 'com.android.library'
// Set up everything required for releasing on Bintray
ext {
bintrayRepo = 'maven-home'
//bintrayUserOrg = 'individual'
bintrayName = "${GROUP}:${POM_ARTIFACT_ID}"
bintrayDescription = POM_DESCRIPTION
projectUrl = 'https://github.com/zjupure/GlideWebpDecoder'
issuesUrl = 'https://github.com/zjupure/GlideWebpDecoder'
scmUrl = 'https://github.com/zjupure/GlideWebpDecoder'
scmConnection = 'scm:git:https://github.com/zjupure/GlideWebpDecoder.git'
scmDeveloperConnection = 'scm:git:git@github.com:zjupure/GlideWebpDecoder.git'
publishedGroupId = GROUP
libraryName = 'glide-webpdecoder'
artifact = 'webpdecoder'
projectLicenses = {
license {
name 'BSD License'
url 'https://raw.githubusercontent.com/zjupure/GlideWebpDecoder/add-license-1/LICENSE'
distribution 'repo'
}
}
}
// Android tasks
apply from: rootProject.file('scripts/android-tasks.gradle')
// Set up the Android Maven publication (POM etc.)
apply from: rootProject.file('scripts/android-maven-install.gradle')
// Upload to Bintray
apply from: rootProject.file('scripts/bintray.gradle')
// Upload to Maven
apply from: rootProject.file('scripts/upload.gradle')
// Upload to Maven-Central
apply from: rootProject.file('scripts/publish.gradle')
afterEvaluate {
Task bintrayUpload = project.tasks.getByName("bintrayUpload")
Task mavenUpload = project.tasks.getByName("uploadArchives")
Task build = project.tasks.getByName("build")
Task install = project.tasks.getByName("install")
Task assemble = project.tasks.getByName("assemble")
project.tasks.findAll {
it.name.startsWith("publish")
}.each {
it.dependsOn(build)
it.dependsOn(assemble)
}
bintrayUpload.dependsOn(install)
bintrayUpload.dependsOn(build)
mavenUpload.dependsOn(install)
mavenUpload.dependsOn(build)
}