From 3d63346be2e6569ba7cc4c0fdc5522b56d89a1e7 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Wed, 17 Jul 2024 11:31:29 +0200 Subject: [PATCH] Add platform-latest and platform-snapshot projects --- README.md | 20 ++++++++++--------- depman/gradle/libs.versions.toml | 2 +- .../build.gradle.kts | 0 depman/settings.gradle.kts | 2 +- example/java-example/build.gradle.kts | 2 +- 5 files changed, 14 insertions(+), 12 deletions(-) rename depman/{platform-nightly => platform-snapshot}/build.gradle.kts (100%) diff --git a/README.md b/README.md index 11d5a03..f3420ca 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/depman/gradle/libs.versions.toml b/depman/gradle/libs.versions.toml index 242c404..7f1157e 100644 --- a/depman/gradle/libs.versions.toml +++ b/depman/gradle/libs.versions.toml @@ -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" } diff --git a/depman/platform-nightly/build.gradle.kts b/depman/platform-snapshot/build.gradle.kts similarity index 100% rename from depman/platform-nightly/build.gradle.kts rename to depman/platform-snapshot/build.gradle.kts diff --git a/depman/settings.gradle.kts b/depman/settings.gradle.kts index 64b80b7..8d32c1e 100644 --- a/depman/settings.gradle.kts +++ b/depman/settings.gradle.kts @@ -21,4 +21,4 @@ plugins { include(":catalog") include(":platform") include(":platform-latest") -include(":platform-nightly") +include(":platform-snapshot") diff --git a/example/java-example/build.gradle.kts b/example/java-example/build.gradle.kts index b8b4927..64c3740 100644 --- a/example/java-example/build.gradle.kts +++ b/example/java-example/build.gradle.kts @@ -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)