Skip to content

Commit fe72549

Browse files
fix: Remove reveal AAR from POM to resolve Central Publishing Portal rejection
1 parent cafe729 commit fe72549

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

build.gradle

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,26 @@ repositories {
5252
}
5353

5454
dependencies {
55-
api(name:'reveal-1.4.22-android12', ext:'aar')
56-
//api 'com.stepleaderdigital.reveal:reveal:1.4.22'
55+
// Changed from 'api' to 'compileOnly' to avoid invalid POM issues
56+
compileOnly files('libs/reveal-1.4.22-android12.aar')
57+
58+
// If ever published as a proper Maven artifact, you can switch to:
59+
// api 'com.revealmobile:reveal:1.4.22'
5760
}
61+
62+
// ✨ Remove invalid dependency blocks from the published POM
63+
afterEvaluate {
64+
publishing {
65+
publications {
66+
release(MavenPublication) {
67+
pom.withXml {
68+
def dependenciesNode = asNode().get('dependencies')
69+
dependenciesNode?.removeAll {
70+
def groupId = it.getAt('groupId')[0]?.text()
71+
return groupId == null || groupId.trim() == ''
72+
}
73+
}
74+
}
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)