-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Upload a "dev" version to Maven Central #49
Comments
We can publish the |
@MohitMaliFtechiz Why SNAPSHOTS don't do the job? https://maven.apache.org/guides/getting-started/index.html#what-is-a-snapshot-version |
@kelson42, SNAPSHOTS are different they are mainly use for development environment and they will upload to the other directory https://s01.oss.sonatype.org/content/repositories/snapshots/. But yes SNAPSHOTS will do the job since they are immediately available for testing after uploading so developer do not need to wait for a while like release artifact, but there is some things to be notice. If we wish to publish a snapshot on every commit, it is crucial to increment the version number appropriately. For example, if we initially published version In my opinion, uploading a snapshot for every single commit may not be ideal. In some cases, commits may contain small and necessary changes that may not warrant a new snapshot version. Instead, a more practical approach could be to upload the snapshot while merging the pull request. So to implement this, we need to refactor our CI and code as snapshot will publish to the other URL. |
I think you misunderstand how it works or your explanation is confusing. Read https://www.baeldung.com/maven-snapshot-release-repository There is no additional work of difficulty to publish automatically each new time we merge on main to the SNAPSHOT repo. |
@kelson42, Thanks now I have understood correctly, we can use the snapshots for the development code. |
Developers using java-libkiwix can only use the official releases of the library... or compile it themselves... which is a bitcumbersome.
This is is in particular true for kiwix-android devs.
.
Would really ease the integration work around java-libkiwix to publish for each commit, a "dev" version on Maven Central.
The text was updated successfully, but these errors were encountered: