Skip to content

Commit

Permalink
Use dependencyResolutionManagement for repos
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 17, 2024
1 parent 44bac60 commit 6e37f32
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
10 changes: 8 additions & 2 deletions convention-plugin/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
rootProject.name = "convention-plugin"

// This allows us to use plugins from Metaborg Artifacts
dependencyResolutionManagement {
repositories {
maven("https://artifacts.metaborg.org/content/groups/public/")
mavenCentral()
}
}

pluginManagement {
repositories {
maven("https://artifacts.metaborg.org/content/groups/public/")
gradlePluginPortal()
}
}

// This downloads an appropriate JVM if not already available
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
23 changes: 13 additions & 10 deletions depman/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
rootProject.name = "spoofax3-depman"
rootProject.name = "depman"

// This allows us to use plugins from Metaborg Artifacts
pluginManagement {
dependencyResolutionManagement {
repositories {
maven("https://artifacts.metaborg.org/content/groups/public/")
mavenCentral()
}
}

include(":catalog")
include(":platform")
include(":example")

// The `org.metaborg.convention.settings` plugin would apply the FooJay plugin,
// but to avoid a bootstrapping issue, we'll do the same manually here:
pluginManagement {
repositories {
maven("https://artifacts.metaborg.org/content/groups/public/")
gradlePluginPortal()
}
}

// This downloads an appropriate JVM if not already available
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

include(":catalog")
include(":platform")
include(":example")
10 changes: 8 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
rootProject.name = "metaborg-gradle-project"

// This allows us to use plugins from Metaborg Artifacts
dependencyResolutionManagement {
repositories {
maven("https://artifacts.metaborg.org/content/groups/public/")
mavenCentral()
}
}

pluginManagement {
repositories {
maven("https://artifacts.metaborg.org/content/groups/public/")
gradlePluginPortal()
}
}

// This downloads an appropriate JVM if not already available
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
Expand Down

0 comments on commit 6e37f32

Please sign in to comment.