fdb-record-layer icon indicating copy to clipboard operation
fdb-record-layer copied to clipboard

Publish recent FoundationDB Record layer version to maven repository

Open sebastienh opened this issue 3 years ago • 7 comments

Is there any plan to release an updated version of the record layer jar to a public maven repository? As we speak the latest version released is 2.8.110.0 which is more than one year old. The instructions in Record Layer Versions suggest that the latest version should be available...

  <groupId>org.foundationdb</groupId>
  <artifactId>fdb-record-layer-core</artifactId>
  <version>3.0.+</version>

Thanks for such a nice piece of software :)

sebastienh avatar May 20 '21 07:05 sebastienh

Any updates on this?

mping avatar Sep 17 '21 15:09 mping

is anyone working on this @alecgrieser? is the problem something the community can help with? it's a little bit concerning that there have been so many releases without artifacts being published to Maven Central.

calavera avatar Nov 09 '21 18:11 calavera

I believe @ammolitor has been looking into this along with some other changes to this project (and the FoundationDB core project's) CI system. The main reason this broke has to do with some backend changes to how our publishing pipeline was orchestrated, and we're still working on replacing what the old backend did with the new system.

In terms of ways the community could help, one way I could see might be to submit a patch to our publishing section to add a step to publish directly to a maven central repo (like sonatype) analogous to how we currently publish to artifactory: https://github.com/FoundationDB/fdb-record-layer/blob/233a72a51182a1f35b9bad34ac29b127a437a12b/gradle/publishing.gradle#L65 I think someone on the Apple team would still need to do things like set up the credentials, but if there are places to inject secrets (via gradle or environment variable configuration), I think it could be made to work.

Speaking of artifactory, it's possible that for those in the community looking for a work around, we do publish our artifacts there. See: https://ossartifacts.jfrog.io/ui/packages/gav:%2F%2Forg.foundationdb:fdb-record-layer-core-pb3/3.0.221.0?name=fdb-record-layer&type=packages&activeTab=builds I've not set this up directly, I think if you add ossartifacts.jfrog.io to the list of source repositories, you should be able to download our published Jars. I suppose an alternative contribution that might benefit the community would be an update to our getting started and/or versioning documentation letting people know how to set up this alternative repo:

  • https://github.com/FoundationDB/fdb-record-layer/blob/main/docs/Versioning.md
  • https://github.com/FoundationDB/fdb-record-layer/blob/main/docs/GettingStarted.md

alecgrieser avatar Nov 09 '21 19:11 alecgrieser

Hmm, well, that link is sort of weird, but Artifactory seems to think that the artifacts should be available at: https://ossartifacts.jfrog.io/artifactory/fdb-record-layer/ However, whenever I search for the link, it takes me back to main page, but I can find it if I search for "fdb-record-layer" in the search bar at the top of the page

alecgrieser avatar Nov 09 '21 19:11 alecgrieser

I just did a quick test and adding this to my repositories in build.gradle allowed me to compile against the most recent version published there:

    maven {
      url "https://ossartifacts.jfrog.io/artifactory/fdb-record-layer/"
    }

full section:

  repositories {
    mavenCentral()
    maven {
      url "https://ossartifacts.jfrog.io/artifactory/fdb-record-layer/"
    }
  }

Thanks for the tip @alecgrieser

calavera avatar Nov 09 '21 21:11 calavera

any update on this please?

rwilliams-r7 avatar Feb 02 '22 14:02 rwilliams-r7