jiakuan / gwt-uploader

An API to enable sophisticated file upload capabilities within a GWT application.
http://gwt-uploader.appspot.com/
Apache License 2.0
11 stars 6 forks source link

Indicate updated version for maven central and automation tools #11

Open Lonzak opened 11 months ago

Lonzak commented 11 months ago

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 commented 11 months ago

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

Lonzak commented 11 months ago

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

Lonzak commented 11 months ago

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 commented 11 months ago

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