-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (56 loc) · 1.93 KB
/
build.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
apply plugin: 'maven-publish'
apply plugin: 'signing'
tasks.register('generateRepo', Zip) {
def publishTask = tasks.named('publishReleasePublicationToLocalrepoRepository')
from publishTask.map { it.getRepository().getUrl() }
exclude '**/maven-metadata**'
into '.'
archiveFileName.set('xxdk.zip')
}
publishing {
publications {
release(MavenPublication) {
groupId 'network.xx'
artifactId 'android.xxdk'
version '4.7.5'
artifact("bindings.aar")
artifact(source: "bindings-sources.jar",
classifier: 'sources',
extension: 'jar')
pom {
name = 'xxdk'
description = 'xx network client library for Android'
url = 'https://git.xx.network/elixxir/client'
licenses {
license {
name = 'BSD-2-Clause'
url = 'https://git.xx.network/elixxir/client/-/blob/release/LICENSE?ref_type=heads'
}
}
developers {
developer {
id = 'carback1'
name = 'Richard Carback'
email = 'rick@xx.network'
}
}
scm {
connection = 'scm:git:https://git.xx.network/elixxir/client.git'
developerConnection = 'scm:git:ssh://git@gitlab.com:elixxir/client.git'
url = 'https://git.xx.network/elixxir/client'
}
}
}
}
repositories {
maven {
name = 'localrepo'
url = layout.buildDirectory.dir('repo')
}
}
}
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
sign publishing.publications.release
}