forked from TradeMe/MapMe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublishing.gradle
37 lines (32 loc) · 1.04 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
if (project.plugins.hasPlugin("com.android.library")) {
apply plugin: 'digital.wup.android-maven-publish'
project.afterEvaluate {
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
}
}
publishing {
publications {
aar(MavenPublication) {
from project.components.android
artifact project.sourcesJar {
// not required, includes sourcesJar with correct classifier
classifier "sources"
}
groupId project.ext.group
artifactId project.name
version project.ext.version
}
}
repositories {
maven {
name 'Bintray'
url "https://api.bintray.com/maven/${project.org}/${project.repo}/${project.name}/;publish=1"
credentials {
username BINTRAY_USERNAME
password BINTRAY_API_KEY
}
}
}
}
}