gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

merge_commit_template is not in maven central repo for versionId 6.0.0-rc.4

Open weinbergalfredo opened this issue 1 year ago • 6 comments
trafficstars

Hi. I'm trying to set the merge_commit_template using ProjectApi. I've noticed that it was introduced in 6.X I'm using the 6.0.0-rc.4 maven dependency downloaded from maven central and I don't see those changes in the source code.

Is 6.0.0-rc.4 uploaded to maven central repo? Thank you very much in advance

Best regards

weinbergalfredo avatar Mar 04 '24 20:03 weinbergalfredo

When I talk about source code I mean the jar with source code in maven central repo

weinbergalfredo avatar Mar 05 '24 16:03 weinbergalfredo

The tag is in the repo: https://github.com/gitlab4j/gitlab4j-api/releases/tag/gitlab4j-api-6.0.0-rc.4

The jar is on maven central: https://repo1.maven.org/maven2/org/gitlab4j/gitlab4j-api/6.0.0-rc.4/gitlab4j-api-6.0.0-rc.4.jar

Maybe you want to use a change that was done after the tag?

jmini avatar Mar 08 '24 16:03 jmini

The changes I mentioned were made in commit 45d6da03bcb3d5f2da33f5cfa0699620c4f527bd (Feb-09-2024) in classes ProjectApi.java and Project.java

The rc.4 was sent to maven project Dec-29-2023. Obviously is previous to the changes in those classes

My question is: Is there an estimated date when those changes will be uploaded to maven central repo?

Thank you very much in advance Best regards

weinbergalfredo avatar Mar 12 '24 17:03 weinbergalfredo

Additional Comment: Those changes were merged to main branch and 6.X

weinbergalfredo avatar Mar 12 '24 17:03 weinbergalfredo

I've tried to get the latest version from jitpack.io <groupId>com.github.gitlab4j</groupId> <artifactId>gitlab4j-api</artifactId> main-SNAPSHOT I get an Error (Could not retrieve)

com.github.gitlab4j gitlab4j-api gitlab4j-api-6.0.0-rc.4 I get this dependency but is an older code (Does not includes the changes in ProjectApi and Project)

This is what I get from jitpack.io jitpack io

How can I get the latest version (it is merged to main branch) ?

Thank you very much in advance Best regards Alfredo

weinbergalfredo avatar Mar 19 '24 14:03 weinbergalfredo

Maybe the version is not main-SNAPSHOT but just -SNAPSHOT (I just found it in the docs)

I see the build here: https://jitpack.io/#gitlab4j/gitlab4j-api/-SNAPSHOT

But I did not manage to fetch it.

The build logs looks good: https://jitpack.io/com/github/gitlab4j/gitlab4j-api/main-gitlab4j-api-5.5.0-g6c06521-9/build.log


Personally I want to decide of updates of my dependency myself so I am always referencing dependency from jitpack using the commit id:

Example for commit 4ac5e9c56b2a6c00a5b15134f39346e67a1c2e35:

I use:

<dependency>
    <groupId>com.github.gitlab4j</groupId>
    <artifactId>gitlab4j-api</artifactId>
    <version>4ac5e9c56b</version>
</dependency>

jmini avatar Mar 26 '24 09:03 jmini