forked from madisp/android-chunk-utils
-
Notifications
You must be signed in to change notification settings - Fork 8
/
publishing.gradle
76 lines (70 loc) · 2.12 KB
/
publishing.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
publishing {
publications {
pluginMaven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom.withXml {
// ewwww, fix the runtime deps into compile deps
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each() {
it.scope*.value = 'compile'
}
// add extra metadata into the POM
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
packaging 'jar'
name 'android-chunk-utils'
description 'Android Chunk format reader/writer'
url 'http://github.com/madisp/android-chunk-utils'
scm {
url 'http://github.com/madisp/android-chunk-utils'
connection 'scm:git:git://github.com/madisp/android-chunk-utils.git'
developerConnection 'scm:git:ssh://[email protected]/madisp/android-chunk-utils.git'
}
issueManagement {
system 'GitHub'
url 'http://github.com/madisp/android-chunk-utils/issues'
}
developers {
developer {
id 'madisp'
name 'Madis Pink'
email '[email protected]'
}
}
licenses {
license {
name 'Apache 2.0 License'
url 'https://www.apache.org/licenses/LICENSE-2.0'
distribution 'repo'
}
}
}
}
}
}
}
bintray {
user = 'madisp'
bintray.publications = ['pluginMaven']
key = project.properties['BINTRAY_KEY'] ?: ''
pkg {
repo = 'libs'
name = 'android-chunk-utils'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/madisp/android-chunk-utils'
version {
name = project.version
desc = 'Android Chunk format reader/writer'
released = new Date()
vcsTag = "release-${project.version}"
}
}
}
bintrayUpload.dependsOn build