forked from DexPatcher/dexpatcher-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure-publishing.gradle
62 lines (58 loc) · 1.86 KB
/
configure-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
/*
* DexPatcher - Copyright 2015-2020 Rodrigo Balerdi
* (GNU General Public License version 3 or later)
*
* DexPatcher is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License,
* or (at your option) any later version.
*/
ext.configurePom = { pom ->
pom.description = 'Android Dalvik bytecode patcher.'
pom.url = 'https://github.com/DexPatcher/dexpatcher-tool'
pom.organization {
name = 'DexPatcher'
url = 'https://dexpatcher.github.io/'
}
pom.licenses {
license {
name = 'GNU General Public License (version 3 or later)'
url = 'https://www.gnu.org/licenses/gpl.txt'
}
}
pom.developers {
developer {
name = 'Lanchon'
url = 'https://github.com/Lanchon'
}
}
pom.scm {
connection = 'scm:git:git://github.com/DexPatcher/dexpatcher-tool.git'
developerConnection = 'scm:git:ssh://github.com:DexPatcher/dexpatcher-tool.git'
url = 'https://github.com/DexPatcher/dexpatcher-tool'
}
}
publishing {
repositories {
maven {
name = 'local'
url = rootProject.layout.buildDirectory.dir('repository')
}
if (project.hasProperty('publishing.url')) {
maven {
name = 'remote'
url = project.getProperty('publishing.url')
credentials {
username = project.getProperty('publishing.username')
password = project.getProperty('publishing.password')
}
}
}
}
}
signing {
if (project.hasProperty('signing.secretKeyRingFile')) {
sign publishing.publications
}
}
assemble.dependsOn publishAllPublicationsToLocalRepository