File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 17
17
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18
18
# org.gradle.parallel=true
19
19
20
- projectversion = 1.0.31
21
-
22
- publishedgroupid = com.github.vgachet
23
- libraryname = sma_assetmanager
24
-
25
20
librarydescription = Smartapps asset manager library
26
21
27
22
siteurl = https://github.com/smartguide
Original file line number Diff line number Diff line change @@ -41,7 +41,29 @@ afterEvaluate {
41
41
from components. release
42
42
groupId = ' com.github.vgachet'
43
43
artifactId = ' sma_assetmanager'
44
- version = ' 1.0.32'
44
+ version = ' 1.0.33'
45
+
46
+ // The publication doesn't know about our dependencies, so we have to manually add them to the pom
47
+ pom. withXml {
48
+ // for dependencies and exclusions
49
+ def dependenciesNode = asNode(). appendNode(' dependencies' )
50
+ configurations. implementation. allDependencies. withType(ModuleDependency ) { ModuleDependency dp ->
51
+ def dependencyNode = dependenciesNode. appendNode(' dependency' )
52
+ dependencyNode. appendNode(' groupId' , dp. group)
53
+ dependencyNode. appendNode(' artifactId' , dp. name)
54
+ dependencyNode. appendNode(' version' , dp. version)
55
+
56
+ // for exclusions
57
+ if (dp. excludeRules. size() > 0 ) {
58
+ def exclusions = dependencyNode. appendNode(' exclusions' )
59
+ dp. excludeRules. each { ExcludeRule ex ->
60
+ def exclusion = exclusions. appendNode(' exclusion' )
61
+ exclusion. appendNode(' groupId' , ex. group)
62
+ exclusion. appendNode(' artifactId' , ex. module)
63
+ }
64
+ }
65
+ }
66
+ }
45
67
}
46
68
}
47
69
}
You can’t perform that action at this time.
0 commit comments