Skip to content

Commit 3a95ed2

Browse files
build: Resolve build-logic and buildSrc plugins from Maven Central first (#6270)
* build: Resolve build-logic and buildSrc plugins from Maven Central first Co-Authored-By: Nelson Osacky <nelson.osacky@sentry.io> * build: Fail on project repos in build-logic and buildSrc Co-Authored-By: Nelson Osacky <nelson.osacky@sentry.io> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
1 parent d84944d commit 3a95ed2

4 files changed

Lines changed: 26 additions & 8 deletions

File tree

‎build-logic/build.gradle.kts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ plugins {
22
`kotlin-dsl`
33
}
44

5-
repositories {
6-
gradlePluginPortal()
7-
}
8-
95
dependencies {
106
implementation(libs.animalsniffer.gradle.plugin)
117
implementation(libs.spotlessLib)

‎build-logic/settings.gradle.kts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1+
pluginManagement {
2+
repositories {
3+
mavenCentral()
4+
gradlePluginPortal()
5+
}
6+
}
7+
18
dependencyResolutionManagement {
9+
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10+
repositories {
11+
mavenCentral()
12+
gradlePluginPortal()
13+
}
214
versionCatalogs {
315
create("libs") {
416
from(files("../gradle/libs.versions.toml"))

‎buildSrc/build.gradle.kts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ plugins {
44
`kotlin-dsl`
55
}
66

7-
repositories {
8-
mavenCentral()
9-
}
10-
117
tasks.withType<KotlinCompile>().configureEach {
128
compilerOptions.jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
139
}

‎buildSrc/settings.gradle.kts‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1+
pluginManagement {
2+
repositories {
3+
mavenCentral()
4+
gradlePluginPortal()
5+
}
6+
}
7+
8+
dependencyResolutionManagement {
9+
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10+
repositories {
11+
mavenCentral()
12+
}
13+
}
14+
115
rootProject.name = "sentry-buildSrc"

0 commit comments

Comments
 (0)