Skip to content

Commit 33c326c

Browse files
author
Vincent Gachet
committed
Fix pom file error
1 parent 72b5bb1 commit 33c326c

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ allprojects {
2424
flatDir {
2525
dirs project(':lib_smaassetmanager').file('libs')
2626
}
27-
maven { url "https://jitpack.io" }
2827
}
2928
}
3029

lib_smaassetmanager/build.gradle

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ plugins {
33
id 'kotlin-android'
44
id 'maven-publish'
55
}
6-
group = "com.github.vgachet"
76

87
android {
98
compileSdkVersion 30
@@ -39,31 +38,10 @@ afterEvaluate {
3938
publications {
4039
release(MavenPublication) {
4140
from components.release
42-
groupId = 'com.github.vgachet'
43-
artifactId = 'sma_assetmanager'
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)
5541

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-
}
42+
groupId = 'com.github.VGachet'
43+
artifactId = 'sma_assetmanager'
44+
version = '1.0.34'
6745
}
6846
}
6947
}

0 commit comments

Comments
 (0)