java-gitlab-api icon indicating copy to clipboard operation
java-gitlab-api copied to clipboard

Wrong version in Maven repo

Open minifreak opened this issue 7 years ago • 5 comments

Hi, Version 1.2.8 I got from mvnRepository seems to be an old one that doesn't support v4 gitlab's api. On the other hand, the version I get when building the project myself (through gradle) is 1.2.7-SNAPSHOT as it is defined in build.gradle. Am I doing anything wrong? TIA

minifreak avatar Jun 20 '17 16:06 minifreak

Forgot to mention that the version built by myself supports v4 api

minifreak avatar Jun 21 '17 08:06 minifreak

You're not doing anything wrong. I don't think they've published v4 support yet since it appears like there is some active development happening around the changes in the API versions. Publishing locally works because master contains some code for the v4 API, but is likely still under active development. I'm sure once the release for the v4 API is ready, they will publish it to maven (hopefully with a new major or minor version number).

From the read of the API migration docs, it looks like they won't be completely removing support for v3 until mid to end of August, so there is still a little bit of time to get this published.

https://docs.gitlab.com/ce/api/v3_to_v4.html

mjpitz avatar Jun 22 '17 14:06 mjpitz

yea, that makes sense. What confused me is the version 1.2.7-SNAPSHOT I got from master, which is behind from what they got published in maven repo. Anyhow, thanks for you input.

minifreak avatar Jun 22 '17 14:06 minifreak

That is odd. I know that as a part of the release process, maven will bump that to 1.2.9-SNAPSHOT so I wonder if something didn't get merged back or if they are just manually managing those version numbers (I suspect not).

Looks like the gradle file has the same thing.

mjpitz avatar Jun 22 '17 15:06 mjpitz

Releases are done with Maven. The version is in the pom. I don't know why there is also a build.gradle...

See #222 regarding release with v4 support.

Also, always use Maven Central to look for libraries. MvnRepository is rarely up to date and contains a lot of advertising.

tomasbjerre avatar Jul 17 '17 06:07 tomasbjerre