I ended up cheating a bit and using the 8.11 Ant build to upload the Maven artifacts to Nexus before I saw Dawid's message.
The bundle idea looks like a promising path to use for upcoming releases. Since we require logging into Nexus anyway for promotion, it doesn't make things worse to also do the upload via the UI? On Mon, Dec 6, 2021 at 5:30 PM Dawid Weiss <[email protected]> wrote: > > Just FYI - if you want to upload the exact release maven artifacts > then you'd need to place all of the files under RC's maven/ folder in > a flattened zip file (no directories) and excluding > **/maven-metadata.*. > > Then upload this file as a bundle and inspect the content, it should > show exactly the artifacts from the RC (with correct paths!) - see > attached screenshot. Once you stage them, you proceed as is typical - > close the staging repository and release. Let me know if you need any > help. > > Dawid > > On Mon, Dec 6, 2021 at 2:19 PM Adrien Grand <[email protected]> wrote: > > > > Hello, > > > > The release wizard still suggests using Ant for Maven publication: > > > > cd ~/.lucene-releases/9.0.0/lucene > > ant clean stage-maven-artifacts \ > > > > -Dmaven.dist.dir=~/.lucene-releases/9.0.0/RC4/dist/lucene-9.0.0-RC4-rev-0b18b3b965cedaf5eb129aa41243a44c83ca826d/lucene/maven > > \ > > -Dm2.repository.id=apache.releases.https \ > > > > -Dm2.repository.url=https://repository.apache.org/service/local/staging/deploy/maven2 > > > > The Gradle build has a `mavenToApacheReleases` task that seems to do > > what I want, but I can't find how to tell it to use the JARs of RC4 > > rather than those produced by `gradlew assembleRelease`. Can someone > > help me with this? > > > > -- > > Adrien > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] -- Adrien --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
