-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathpublish.gradle
31 lines (28 loc) · 950 Bytes
/
publish.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
apply plugin: "com.jfrog.artifactory"
apply plugin: 'maven-publish'
def artifactoryUrl = "https://api.bintray.com/maven/adibfara/lives/"
apply from: rootProject.file('versions.gradle')
publishing.publications {
aar(MavenPublication) {
groupId "com.snakydesign.livedataextensions"
version = versionNumbers.versionName
artifactId = 'lives'
artifact("$buildDir/outputs/aar/$archivesBaseName-release.aar")
}
}
artifactory {
contextUrl = artifactoryUrl
publish {
repository {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
repoKey = 'lives/'
username = properties.getProperty('bintray.user')
password = properties.getProperty('bintray.apiKey')
}
defaults {
publishArtifacts = true
publications('aar')
}
}
}