Skip to content

Cannot repeatedly publish snapshot packages to Maven package registry. #20672

Closed
@LamGC

Description

@LamGC

Description

In maven, we can publish the version with the suffix "SNAPSHOT" multiple times, because the "SNAPSHOT" in the version at the time of publishing will be replaced with the timestamp at the time of publishing, which ensures that the snapshot version can be published and updated repeatedly with the same version number.

However, when I tried to publish the snapshot version repeatedly, gradle (using the publishing plug-in) prompted me that gitea returned HTTP 400. I suspected that gitea might not correctly handle the snapshot rules of Maven package registry.

I can't register an account in TryGitea ( I can't receive the activation email ), so I can't test whether this problem will occur in TryGitea.

Gitea Version

1.17.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/LamGC/2026d9db31cfaae09350d3669d3002de

Screenshots

image

Git Version

2.30.2

Operating System

Linux Debian 11

How are you running Gitea?

Docker-compose https://docs.gitea.io/zh-cn/install-with-docker-rootless/

Database

MySQL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions