From bab43ccbb1726e1a21d54ea0860775bf6529238a Mon Sep 17 00:00:00 2001 From: "nikita.smirnov" Date: Mon, 13 May 2024 20:14:16 +0400 Subject: [PATCH] corrected after review --- build.gradle.kts | 13 ------------- settings.gradle.kts | 9 +++++++++ 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index da4f3f72..7e69864c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -35,19 +35,6 @@ subprojects { jvmToolchain(11) } - repositories { - mavenCentral() - maven { - name = "Sonatype_snapshots" - url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") - } - - maven { - name = "Sonatype_releases" - url = uri("https://s01.oss.sonatype.org/content/repositories/releases/") - } - } - configurations.all { resolutionStrategy.cacheChangingModulesFor(0, "seconds") resolutionStrategy.cacheDynamicVersionsFor(0, "seconds") diff --git a/settings.gradle.kts b/settings.gradle.kts index 7423edce..7348c5bb 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -2,6 +2,15 @@ dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { mavenCentral() + maven { + name = "Sonatype_snapshots" + url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") + } + + maven { + name = "Sonatype_releases" + url = uri("https://s01.oss.sonatype.org/content/repositories/releases/") + } } }