Kafkatorio/buildSrc/repositories.settings.gradle.kts

57 lines
1.9 KiB
Text
Raw Normal View History

@Suppress("UnstableApiUsage") // Central declaration of repositories is an incubating feature
2021-11-26 14:30:06 +01:00
dependencyResolutionManagement {
// https://github.com/gradle/gradle/issues/15754#issuecomment-763614651
// https://github.com/gradle/gradle/blob/09fcaacc9848f09aa584b4119be9271bee6916e6/build-logic/build-logic-base/settings-plugin/src/main/kotlin/gradlebuild.repositories.settings.gradle.kts#L68
// Cannot use 'FAIL_ON_PROJECT_REPOS' because
// - the 'gradle-guides-plugin' adds a repo (which it should not do)
// - the 'kotlin-gradle-plugin' adds a repo (and removes it afterwards) to download NodeJS
2022-01-09 11:02:05 +01:00
// repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
2021-11-26 14:30:06 +01:00
repositories {
mavenCentral()
jitpack()
gradlePluginPortal()
// maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/")
// maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven")
2021-11-26 14:30:06 +01:00
// Declare the Node.js download repository
ivy("https://nodejs.org/dist/") {
name = "Node Distributions at $url"
patternLayout { artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]") }
metadataSources { artifact() }
content { includeModule("org.nodejs", "node") }
}
ivy("https://github.com/yarnpkg/yarn/releases/download") {
name = "Yarn Distributions at $url"
patternLayout { artifact("v[revision]/[artifact](-v[revision]).[ext]") }
metadataSources { artifact() }
content { includeModule("com.yarnpkg", "yarn") }
}
}
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
jitpack()
// maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/")
2021-11-26 14:30:06 +01:00
}
}
}
fun RepositoryHandler.jitpack() {
maven("https://jitpack.io") {
// content {
// includeGroup("com.github.aSemy")
// includeGroup("com.github.adamko-dev")
// includeGroup("com.github.adamko-dev.kotka-streams")
// includeGroup("dev.adamko.kotka")
// }
}
}