GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Ship the GraalVM metadata repository as an artifact alongside NBT by melix · Pull Request #331 · graalvm/native-build-tools

Conversation

@melix

@melix melix commented Oct 11, 2022

Copy link
Copy Markdown
Collaborator

This PR builds on top of #330 and fixes #328. At build time, we will now download the current version of the GraalVM metadata repository, and make it available as an artifact on the org.graalvm.buildtools:graalvm-reachability-metadata coordinates (as a zip file with classifier repository). Please take a look at #328 for context.

This basically allows having some releases of the metadata repository on Maven Central, the ones which are "shipped" with native build tools. It does not remove the ability to pick a different version, in which case we would still download it from the GraalVM reachability repository, or even a custom URL (or a local file).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sureshg reacted with rocket emoji
All reactions
  • 🚀 1 reaction
melix added 5 commits October 10, 2022 17:30
@melix
Bump the metadata repository version
f303996
This also moves the constant to the `libs.versions.toml` file so that it
is both easier to upgrade *and* available in build scripts without having
to parse source files. This is going to be useful for repackaging the
repository.
@melix
Download the metadata repository as a publishable artifact
1d60187
This commit introduces a task which is responsible for downloading the
current metadata repository version and bundle it as a publishable artifact.
This means that the ZIP file of the metadata repository is going to be
downloaded from the GraalVM metadata repository, and published as a
_classified_ artifact on the `graalvm-reachability-metadata` module.

It is possible to check the result by calling:

    ./gradlew graalvm-reachability-metadata:pAPTCR

and checking the contents of the `build/common-repo` directory. A file
named `graalvm-reachability-metadata-<nbt version>-repository.zip` file
should be visible.

This will make it possible to consume the metadata repository as a Maven
artifact.
@melix
Make the Gradle plugin use the metadata repository from Maven
06405b5
This commit makes it so that if the user doesn't specify any URL for the
repository, nor any specific version, then we would use the repository
artifact which is bundled with the NBT release on Maven Central (or
any repository configured in the build). This makes it possible to
use the Gradle native build tools exclusively with Maven repositories.
@melix
Make the Maven plugin use the metadata repository from Maven Central
d4a3a53
Similarly to the Gradle plugin, this commit makes it so that if the user
doesn't specify any URL for the repository, nor any specific version,
then we would use the repository artifact which is bundled with the NBT
release on Maven Central.
@melix
Add release notes
5850c69
@melix melix added the enhancement New feature or request label Oct 11, 2022
@melix melix added this to the 0.9.15 milestone Oct 11, 2022
@melix
melix requested review from alvarosanchez and sdeleuze October 11, 2022 13:33
@melix melix self-assigned this Oct 11, 2022
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 11, 2022
alvarosanchez
alvarosanchez approved these changes Oct 11, 2022
View reviewed changes
melix added 2 commits October 12, 2022 11:16
@melix
Merge branch 'master' into cc/repackage-repo
02766c5
@melix
Add mention about the new metadata collection task
51a72a3
sdeleuze
sdeleuze approved these changes Oct 12, 2022
View reviewed changes
@melix
melix merged commit a3b5f3f into master Oct 12, 2022
@melix
melix deleted the cc/repackage-repo branch October 12, 2022 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sdeleuze sdeleuze sdeleuze approved these changes
@alvarosanchez alvarosanchez alvarosanchez approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@melix melix

Labels

enhancement New feature or request OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Milestone

0.9.15

Development

Successfully merging this pull request may close these issues.

Ship repository metadata as a Maven artifact

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@melix @sdeleuze @alvarosanchez
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.