Skip to content

Commit

Permalink
Add platform-latest and platform-snapshot projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 17, 2024
1 parent 364807a commit 3d63346
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ The Metaborg Gradle convention and development plugins, and the Metaborg depende
| `org.metaborg.convention.maven-publish` | [![Release][mvn-rel-badge:convention.maven-publish]][mvn:convention.maven-publish] | [![Snapshot][mvn-snap-badge:convention.maven-publish]][mvn:convention.maven-publish] |
| `org.metaborg.convention.root-project` | [![Release][mvn-rel-badge:convention.root-project]][mvn:convention.root-project] | [![Snapshot][mvn-snap-badge:convention.root-project]][mvn:convention.root-project] |

| Artifact | Latest Release | Latest Snapshot |
|---------------------------------|--------------------------------------------------------------------|----------------------------------------------------------------------|
| `org.metaborg:catalog` | [![Release][mvn-rel-badge:catalog]][mvn:catalog] | [![Snapshot][mvn-snap-badge:catalog]][mvn:catalog] |
| `org.metaborg:platform` | [![Release][mvn-rel-badge:platform]][mvn:platform] | [![Snapshot][mvn-snap-badge:platform]][mvn:platform] |
| `org.metaborg:platform-latest` | [![Release][mvn-rel-badge:platform-latest]][mvn:platform-latest] | [![Snapshot][mvn-snap-badge:platform-latest]][mvn:platform-latest] |
| `org.metaborg:platform-nightly` | [![Release][mvn-rel-badge:platform-nightly]][mvn:platform-nightly] | [![Snapshot][mvn-snap-badge:platform-nightly]][mvn:platform-nightly] |
| Artifact | Latest Release | Latest Snapshot |
|----------------------------------|----------------------------------------------------------------------|------------------------------------------------------------------------|
| `org.metaborg:catalog` | [![Release][mvn-rel-badge:catalog]][mvn:catalog] | [![Snapshot][mvn-snap-badge:catalog]][mvn:catalog] |
| `org.metaborg:platform` | [![Release][mvn-rel-badge:platform]][mvn:platform] | [![Snapshot][mvn-snap-badge:platform]][mvn:platform] |
| `org.metaborg:platform-latest` | [![Release][mvn-rel-badge:platform-latest]][mvn:platform-latest] | [![Snapshot][mvn-snap-badge:platform-latest]][mvn:platform-latest] |
| `org.metaborg:platform-snapshot` | [![Release][mvn-rel-badge:platform-snapshot]][mvn:platform-snapshot] | [![Snapshot][mvn-snap-badge:platform-snapshot]][mvn:platform-snapshot] |


## Gradle Convention
Expand All @@ -37,6 +37,8 @@ The `org.metaborg:catalog` artifact provides recommended versions for dependenci

The `org.metaborg:platform` artifact enforces particular versions for Spoofax dependencies, and should be used by consumers of Spoofax libraries.

For special use cases, the `org.metaborg:platform-latest` and `org.metaborg:platform-snapshot` artifacts provide any latest releases and snapshots of Spoofax dependencies, respectively. These may not have been tested together. Therefore, it is recommended to use a particular release of `org.metaborg:platform` in production instead.


## License
Copyright 2024 Delft University of Technology
Expand Down Expand Up @@ -64,7 +66,7 @@ Unless required by applicable law or agreed to in writing, software distributed
[mvn:catalog]: https://artifacts.metaborg.org/#nexus-search;gav~org.metaborg~catalog~~~
[mvn:platform]: https://artifacts.metaborg.org/#nexus-search;gav~org.metaborg~platform~~~
[mvn:platform-latest]: https://artifacts.metaborg.org/#nexus-search;gav~org.metaborg~platform-latest~~~
[mvn:platform-nightly]: https://artifacts.metaborg.org/#nexus-search;gav~org.metaborg~platform-nightly~~~
[mvn:platform-snapshot]: https://artifacts.metaborg.org/#nexus-search;gav~org.metaborg~platform-snapshot~~~

[mvn-rel-badge:convention.settings]: https://img.shields.io/nexus/r/org.metaborg.convention.settings/org.metaborg.convention.settings.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-rel-badge:convention.java]: https://img.shields.io/nexus/r/org.metaborg.convention.java/org.metaborg.convention.java.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
Expand All @@ -73,7 +75,7 @@ Unless required by applicable law or agreed to in writing, software distributed
[mvn-rel-badge:catalog]: https://img.shields.io/nexus/r/org.metaborg/catalog?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-rel-badge:platform]: https://img.shields.io/nexus/r/org.metaborg/platform?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-rel-badge:platform-latest]: https://img.shields.io/nexus/r/org.metaborg/platform-latest?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-rel-badge:platform-nightly]: https://img.shields.io/nexus/r/org.metaborg/platform-nightly?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-rel-badge:platform-snapshot]: https://img.shields.io/nexus/r/org.metaborg/platform-snapshot?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20

[mvn-snap-badge:convention.settings]: https://img.shields.io/nexus/s/org.metaborg.convention.settings/org.metaborg.convention.settings.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:convention.java]: https://img.shields.io/nexus/s/org.metaborg.convention.java/org.metaborg.convention.java.gradle.plugin?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
Expand All @@ -82,4 +84,4 @@ Unless required by applicable law or agreed to in writing, software distributed
[mvn-snap-badge:catalog]: https://img.shields.io/nexus/s/org.metaborg/catalog?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:platform]: https://img.shields.io/nexus/s/org.metaborg/platform?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:platform-latest]: https://img.shields.io/nexus/s/org.metaborg/platform-latest?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:platform-nightly]: https://img.shields.io/nexus/s/org.metaborg/platform-nightly?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
[mvn-snap-badge:platform-snapshot]: https://img.shields.io/nexus/s/org.metaborg/platform-snapshot?server=https%3A%2F%2Fartifacts.metaborg.org&label=%20
2 changes: 1 addition & 1 deletion depman/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ metaborg-common = { module = "org.metaborg:common",
# Metaborg Depman (https://github.com/metaborg/spoofax3-depman)
metaborg-platform = { module = "org.metaborg:platform", version.ref = "metaborg-depman" }
metaborg-platform-latest = { module = "org.metaborg:platform-latest", version.ref = "metaborg-depman" }
metaborg-platform-nightly = { module = "org.metaborg:platform-nightly", version.ref = "metaborg-depman" }
metaborg-platform-snapshot = { module = "org.metaborg:platform-snapshot", version.ref = "metaborg-depman" }

# Metaborg Log (https://github.com/metaborg/log)
metaborg-log-api = { module = "org.metaborg:log.api", version.ref = "metaborg-log" }
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion depman/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ plugins {
include(":catalog")
include(":platform")
include(":platform-latest")
include(":platform-nightly")
include(":platform-snapshot")
2 changes: 1 addition & 1 deletion example/java-example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation(platform(libs.metaborg.platform.nightly))
implementation(platform(libs.metaborg.platform.snapshot))

// Metaborg Common (https://github.com/metaborg/common)
api(libs.metaborg.common)
Expand Down

0 comments on commit 3d63346

Please sign in to comment.