From 1c2fb8b745f8b2c0275268e0199011db95931454 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Wed, 24 Jul 2024 23:41:38 +0200 Subject: [PATCH] Add Metaborg Git --- depman/gradle.properties | 2 ++ depman/gradle/libs.versions.toml | 3 +++ depman/platform/build.gradle.kts | 4 ++++ example/java-example/build.gradle.kts | 3 +++ 4 files changed, 12 insertions(+) diff --git a/depman/gradle.properties b/depman/gradle.properties index 59f37e3..78e88a1 100644 --- a/depman/gradle.properties +++ b/depman/gradle.properties @@ -1,5 +1,7 @@ # Versions of the Metaborg/Spoofax libraries/languages that are known to work together +# https://github.com/metaborg/metaborg-git/ +metaborg-git.version=0.1.0 # https://github.com/metaborg/common/ metaborg-common.version=0.12.0 # https://github.com/metaborg/log/ diff --git a/depman/gradle/libs.versions.toml b/depman/gradle/libs.versions.toml index 75b7135..502635f 100644 --- a/depman/gradle/libs.versions.toml +++ b/depman/gradle/libs.versions.toml @@ -111,6 +111,9 @@ intellij = { id = "org.jetbrains.intellij", # We don't specify versions here, instead we specify versions in the platform definition. # NOTE: Also update: platform/build.gradle.kts +# Metaborg Git (https://github.com/metaborg/metaborg-git/) +metaborg-git = { module = "org.metaborg:git" } + # Metaborg Common (https://github.com/metaborg/common) metaborg-common = { module = "org.metaborg:common" } diff --git a/depman/platform/build.gradle.kts b/depman/platform/build.gradle.kts index e244599..a635834 100644 --- a/depman/platform/build.gradle.kts +++ b/depman/platform/build.gradle.kts @@ -10,6 +10,7 @@ description = "A Spoofax 3 platform." // Here we use the versions defined in gradle.properties (or using -P on the command line) // to set the versions of the dependencies that should work together. +val metaborgGitVersion: String = property("metaborg-git.version") as String val metaborgCommonVersion: String = property("metaborg-common.version") as String val metaborgLogVersion: String = property("metaborg-log.version") as String val metaborgPieVersion: String = property("metaborg-pie.version") as String @@ -32,6 +33,9 @@ dependencies { constraints { // NOTE: Also update part of libs.versions.toml + // Metaborg Git (https://github.com/metaborg/metaborg-git/) + api(libs.metaborg.git) { version { require(metaborgGitVersion) } } + // Metaborg Common (https://github.com/metaborg/common) api(libs.metaborg.common) { version { require(metaborgCommonVersion) } } diff --git a/example/java-example/build.gradle.kts b/example/java-example/build.gradle.kts index 26a9322..6061c5c 100644 --- a/example/java-example/build.gradle.kts +++ b/example/java-example/build.gradle.kts @@ -35,6 +35,9 @@ repositories { dependencies { implementation(platform(libs.metaborg.platform)) + // Metaborg Git (https://github.com/metaborg/metaborg-git) + api(libs.metaborg.git) + // Metaborg Common (https://github.com/metaborg/common) api(libs.metaborg.common)