Hi,
I have a project that defines a gradle platform that I publish on GitHub Packages using default configuration.
plugins {
`java-platform`
`maven-publish`
}
publishing {
publications {
create<MavenPublication>("myPlatform") {
from(components["javaPlatform"])
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/user/repo")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
This creates a
- maven-metadata.xml file
- xxx-1.2.12-20210410.072648-1.module file
- xxx-1.2.12-20210410.072648-1.pom file
However since yesterday the build of my project that depends on this artifact fails with the following errors:
dependencies {
implementation(platform(“aaa:xxx:1.2.12-SNAPSHOT”))
}
> Could not find aaa:xxx:1.2.12-SNAPSHOT.
Searched in the following locations:
- https://jcenter.bintray.com/aaa/1.2.12-SNAPSHOT/maven-metadata.xml
- https://jcenter.bintray.com/aaa/1.2.12-SNAPSHOT/xxx-1.2.12-SNAPSHOT.pom
- https://maven.pkg.github.com/aaa/1.2.12-SNAPSHOT/maven-metadata.xml
- https://maven.pkg.github.com/aaa/1.2.12-SNAPSHOT/xxx-1.2.12-20210410.072648-1.module.pom
I don’t understand why it looks for a file .module.pom This file indeed does not exists.
Also it used to work correctly before yesterday (and I am not sure why - I guess there was a kind of workaround on GitHub package side).
Do you have any idea on why gradle is looking for a module.pom rather than the .pom file ?