File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,26 @@ repositories {
5252}
5353
5454dependencies {
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+ }
You can’t perform that action at this time.
0 commit comments