fix(build): configure plugin repositories for build-logic

This commit is contained in:
Harsh Shandilya 2024-01-02 01:43:36 +05:30
parent 1441804e70
commit 050007ff1b
2 changed files with 20 additions and 3 deletions

View file

@ -1,12 +1,12 @@
/*
* Copyright © 2022-2023 Harsh Shandilya.
* Copyright © 2022-2024 Harsh Shandilya.
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
plugins { `kotlin-dsl` }
kotlin.jvmToolchain { languageVersion.set(JavaLanguageVersion.of(17)) }
kotlin.jvmToolchain(17)
gradlePlugin {
plugins {

View file

@ -8,7 +8,24 @@
rootProject.name = "build-logic"
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" }
pluginManagement {
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" }
repositories {
exclusiveContent {
forRepository { gradlePluginPortal() }
filter {
includeModule(
"org.gradle.toolchains.foojay-resolver-convention",
"org.gradle.toolchains.foojay-resolver-convention.gradle.plugin",
)
includeModule("org.gradle.toolchains", "foojay-resolver")
includeModule("org.gradle.kotlin.kotlin-dsl", "org.gradle.kotlin.kotlin-dsl.gradle.plugin")
includeModule("org.gradle.kotlin", "gradle-kotlin-dsl-plugins")
}
}
mavenCentral { mavenContent { releasesOnly() } }
}
}
dependencyResolutionManagement {
repositories {