-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.gradle
71 lines (61 loc) · 2.16 KB
/
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
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
apply plugin: 'maven-publish'
apply plugin: 'signing'
Properties localProperties = new Properties()
localProperties.load(project.rootProject.file('local.properties').newDataInputStream())
android {
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
groupId = findProperty("group")
version = findProperty("version")
from components.release
pom {
name = 'Aquarius'
description = 'Simple wrapper for recycler view to easy work with difficult lists'
url = 'https://github.com/Hukumister/Aquariusy'
licenses {
license {
name = 'MIT License'
url = 'https://www.mit.edu/~amini/LICENSE.md'
}
}
developers {
developer {
id = 'zaltmsna.nikita'
name = 'Zaltsman Nikita'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/Hukumister/Aquarius'
developerConnection = 'scm:[email protected]:Hukumister/Aquarius.git'
url = 'https://github.com/Hukumister/Aquarius'
}
}
}
}
repositories {
maven {
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = localProperties.get('OSSRH_USERNAME')
password = localProperties.get('OSSRH_PASSWORD')
}
}
}
}
}
//def signingKey = findProperty('SIGNING_KEY')
//def signingKeyPwd = findProperty('SIGNING_KEY_PWD')
signing {
// useInMemoryPgpKeys(signingKey, signingKeyPwd)
sign publishing.publications
}