Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate updated version for maven central and automation tools #11

Open
Lonzak opened this issue Nov 20, 2023 · 4 comments
Open

Indicate updated version for maven central and automation tools #11

Lonzak opened this issue Nov 20, 2023 · 4 comments

Comments

@Lonzak
Copy link
Contributor

Lonzak commented Nov 20, 2023

There are new versions of this project available. But for the new versions 1.2.4 and 1.2.5 the groupId of the artifact was changed - thus it seems that the old version is still the most current:

grafik

It would be really helpful for users and for automation tools like dependabot/renovatebot to be aware of this. There is an official mechanism for that. For example:

grafik

The idea is that the first new version (1.2.4) is once also released with the old groupId but with a minimal pom and a relocation entry:

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.wisepersist</groupId>
<artifactId>gwt-uploader</artifactId>
<version>1.2.4</version>
<name>gwt-uploader</name>
...
<distributionManagement>
    <relocation>
        <groupId>org.docstr</groupId>
        <artifactId>gwt-uploader</artifactId>
        <message>
            GWT-uploader moved to the new location due to a domain change.
        </message>
    </relocation>
</distributionManagement>
@jiakuan
Copy link
Owner

jiakuan commented Nov 21, 2023

Not sure if I'm able to create a new release based on the old groupId.

@Lonzak
Copy link
Contributor Author

Lonzak commented Nov 21, 2023

Maybe there is a way to do it the other way around... I'll check it

@Lonzak
Copy link
Contributor Author

Lonzak commented Nov 21, 2023

Ok I have read how it is done:

First a minimal pom.xml file for version 1.2.4 (not for 1.2.3 as I originally thought) would be created but under the old groupId. The POM files only need to include groupId, artifactId, version and the relocation section:

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.wisepersist</groupId>
    <artifactId>gwt-uploader</artifactId>
    <version>1.2.4</version>
    <url>https://jiakuan.github.io/gwt-uploader/</url>
    <distributionManagement>
        <relocation>
            <groupId>org.docstr</groupId>
        </relocation>
    </distributionManagement>
</project>

Not sure if I'm able to create a new release based on the old groupId.

Yeah, that would be a prerequisite to be able to do a (last) one time release under the old groupId... I hope it is possible because I think many people just don't know that there is a new version out there...

@jiakuan
Copy link
Owner

jiakuan commented Nov 21, 2023

Thanks. I will have a look when I get a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants