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

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

Open
weinbergalfredo opened this issue Mar 4, 2024 · 6 comments
Labels

Comments

@weinbergalfredo
Copy link

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
Copy link
Author

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

@jmini
Copy link
Collaborator

jmini commented Mar 8, 2024

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 jmini added the question label Mar 8, 2024
@weinbergalfredo
Copy link
Author

The changes I mentioned were made in commit 45d6da0 (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
Copy link
Author

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

@weinbergalfredo
Copy link
Author

weinbergalfredo commented Mar 19, 2024

I've tried to get the latest version from jitpack.io

com.github.gitlab4j
gitlab4j-api
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

@jmini
Copy link
Collaborator

jmini commented Mar 26, 2024

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 4ac5e9c:

I use:

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

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

No branches or pull requests

2 participants