Skip to content

Maven packages are not showing up

Summary

The maven packages can be published and and pulled (with org.jellyfin:jellyfin-apiclient-kotlin-android:1.0.0-SNAPSHOT)

But the UI doesn't show the package

Steps to reproduce

  • Publish the maven package

Example Project

https://gitlab.com/cromefire_/jellyfin-apiclient-kotlin

This repo is publishing from CI/CD

What is the current bug behavior?

No package is shown

What is the expected correct behavior?

The published package is listed in the package UI

Relevant logs and/or screenshots

Package UI

publishing {
    repositories {
        maven("https://gitlab.com/api/v4/projects/17693247/packages/maven") {
            name = "gitlab"

            credentials(HttpHeaderCredentials::class.java) {
                val jobToken = System.getenv("CI_JOB_TOKEN")
                if (jobToken != null) {
                    // GitLab CI
                    name = "Job-Token"
                    value = System.getenv("CI_JOB_TOKEN")
                } else {
                    name = "Private-Token"
                    value = System.getenv("GITLAB_TOKEN")
                }
            }
            authentication {
                register("header", HttpHeaderAuthentication::class.java)
            }
        }
    }
}

First deploy: https://gitlab.com/cromefire_/jellyfin-apiclient-kotlin/-/jobs/510903364

Latest deploy: https://gitlab.com/cromefire_/jellyfin-apiclient-kotlin/-/jobs/518014468

Output of checks

This bug happens on GitLab.com

Possible fixes

Empty

Edited by Cromefire_