forked from marcin-adamczewski/GlideWebpDecoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease-bintray.gradle
More file actions
54 lines (44 loc) · 1.6 KB
/
release-bintray.gradle
File metadata and controls
54 lines (44 loc) · 1.6 KB
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
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')
// 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 mavenUpload = project.tasks.getByName("uploadArchives")
Task build = project.tasks.getByName("build")
Task assemble = project.tasks.getByName("assemble")
project.tasks.findAll {
it.name.startsWith("publish")
}.each {
it.dependsOn(build)
it.dependsOn(assemble)
}
mavenUpload.dependsOn(build)
mavenUpload.dependsOn(assemble)
}