Skip to content

Commit 4e5b4c0

Browse files
committed
Move repositories to dependencyResolutionManagement.
1 parent 2db2428 commit 4e5b4c0

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

buildSrc/build.gradle.kts

-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ plugins {
22
`kotlin-dsl`
33
}
44

5-
repositories {
6-
mavenCentral()
7-
google()
8-
gradlePluginPortal()
9-
}
10-
115
dependencies {
126
// TODO: remove once https://github.com/gradle/gradle/issues/15383#issuecomment-779893192 is fixed
137
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))

buildSrc/settings.gradle.kts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
@Suppress("UnstableApiUsage")
12
dependencyResolutionManagement {
2-
@Suppress("UnstableApiUsage")
3+
repositories {
4+
mavenCentral()
5+
google()
6+
gradlePluginPortal()
7+
}
8+
39
versionCatalogs {
410
create("libs") {
511
from(files("../gradle/libs.versions.toml"))

buildSrc/src/main/kotlin/reactivecircus/flowbinding/ProjectConfigurations.kt

-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import org.gradle.api.tasks.testing.Test
1515
import org.gradle.api.tasks.testing.logging.TestLogEvent
1616
import org.gradle.kotlin.dsl.configure
1717
import org.gradle.kotlin.dsl.getByType
18-
import org.gradle.kotlin.dsl.repositories
1918
import org.gradle.kotlin.dsl.withType
2019
import org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension
2120
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
@@ -128,11 +127,6 @@ fun Project.configureForAllProjects(enableExplicitApi: Property<Boolean>) {
128127
// configure maven publishing plugin if applied to the project
129128
configureMavenPublishing()
130129

131-
repositories {
132-
mavenCentral()
133-
google()
134-
}
135-
136130
tasks.withType<KotlinCompile>().configureEach {
137131
kotlinOptions {
138132
jvmTarget = JavaVersion.VERSION_11.toString()

settings.gradle.kts

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
rootProject.name = "FlowBinding"
22

3+
@Suppress("UnstableApiUsage")
4+
dependencyResolutionManagement {
5+
repositories {
6+
mavenCentral()
7+
google()
8+
}
9+
}
10+
311
include(":flowbinding-common")
412

513
include(":flowbinding-android")

0 commit comments

Comments
 (0)