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

alpha in maven-metadata.xml <release> #2897

Open
gabrieljones opened this issue Jan 19, 2023 · 5 comments
Open

alpha in maven-metadata.xml <release> #2897

gabrieljones opened this issue Jan 19, 2023 · 5 comments

Comments

@gabrieljones
Copy link

gabrieljones commented Jan 19, 2023

alpha and rc versions are showing up in the maven-metadata.xml <release> tag

https://repo1.maven.org/maven2/io/arrow-kt/arrow-core/maven-metadata.xml

Observed:

/metadata/versioning/release = 1.1.6-alpha.3

Expected:

/metadata/versioning/release = 1.1.5

@gabrieljones gabrieljones changed the title alpha in maven release alpha in maven-metadata.xml <release> Jan 19, 2023
@gabrieljones gabrieljones changed the title alpha in maven-metadata.xml <release> alpha in maven-metadata.xml <release> Jan 19, 2023
@nomisRev
Copy link
Member

Hey @gabrieljones,
We're releasing versions to Maven Central on every merge to main. So alpha and rc is the latest release to maven in those cases 🤔

@gabrieljones
Copy link
Author

The alpha and rc versions should go into the <latest> tag, but not into the <release> tag.

@raulraja
Copy link
Member

Maven Central does not make a difference between releases, RC, and alphas. It just treats snapshots as non-releases. AFAIK everything else is considered a release. Another way to say this is we could have named those "jane", "joe" or whatever other identifier not as alpha, RC, etc. In practice, those are arrow releases too but in their name, they just include a hint for users as to what state we consider those stable.

As for correctly tagging in GitHub, maybe that is something we can control in the arrow build workflow or through the arrow-gradle-config library. /cc @JavierSegoviaCordoba

@gabrieljones
Copy link
Author

gabrieljones commented Jan 24, 2023

The motivation of this issue is a desire to use the latest.release version range declaration like so:

build.gradle.kts

dependencies {
  implementation("io.arrow-kt:arrow-core:latest.release")
}

The expectation is this would pull in the latest stable version of arrow-core and exclude the alpha and rc versions.

Gradle also has latest.integration which is intended to include the latest alpha, rc, or SNAPSHOT version.

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

No branches or pull requests

3 participants