forked from jainsahab/AndroidSnooper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPublish.gradle
More file actions
25 lines (23 loc) · 908 Bytes
/
Publish.gradle
File metadata and controls
25 lines (23 loc) · 908 Bytes
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
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
artifact bundleRelease
pom.withXml {
def dependenciesNode = asNode().appendNode('dependencies')
//Iterate over the compile dependencies (we don't want the test ones), adding a <dependency> node for each
configurations.compile.allDependencies.each {
if (it.group != null && it.name != null) {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}
}
}
}
}
repositories {
mavenLocal()
}
}