Skip to content

Commit

Permalink
Add Metaborg Git
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 24, 2024
1 parent 8487a8b commit 1c2fb8b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions depman/gradle.properties
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
3 changes: 3 additions & 0 deletions depman/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

Expand Down
4 changes: 4 additions & 0 deletions depman/platform/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) } }

Expand Down
3 changes: 3 additions & 0 deletions example/java-example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1c2fb8b

Please sign in to comment.