wordpress-mobile / AztecEditor-Android

A reusable native Android rich text editor component.
Mozilla Public License 2.0
675 stars 112 forks source link

Github actions build fails because it can't pull the dependency #1000

Closed aantunovic closed 1 year ago

aantunovic commented 1 year ago

Expected

Build to pass

Observed

Build fails with :

Could not resolve all files for configuration ':app:XXXXRuntimeClasspath'. Could not resolve org.wordpress:aztec:v1.6.1. Required by: project :app Could not resolve org.wordpress:aztec:v1.6.1. Could not get resource 'https://dl.bintray.com/guardian/android/org/wordpress/aztec/v1.6.1/aztec-v1.6.1.pom'. Could not GET 'https://dl.bintray.com/guardian/android/org/wordpress/aztec/v1.6.1/aztec-v1.6.1.pom'. Received status code 502 from server: Bad Gateway

repository is declared as :

maven {
            url "https://a8c-libs.s3.amazonaws.com/android"
            content {
                includeGroup "org.wordpress"
                includeGroup "org.wordpress.aztec"
            }
            metadataSources {
                mavenPom()
                artifact()
                ignoreGradleMetadataRedirection()
            }
}

I'm not sure what could be the reason since there is no issue with local builds... (metadataSources and content are added later but have no effect )

aantunovic commented 1 year ago

Nevermind, solved by changing the order of repositories, for some reason when bintray was declared above, on github workflow it would always look there and fail..