Skip to content

build: Resolve build-logic and buildSrc plugins from Maven Central first - #6270

Merged
runningcode merged 2 commits into
mainfrom
ci/build-logic-maven-central
Oct 15, 2026
Merged

runningcode merged 2 commits into
mainfrom
ci/build-logic-maven-central

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

📜 Description

In both build-logic and buildSrc:

  • Adds a pluginManagement block to settings.gradle.kts that lists mavenCentral() before gradlePluginPortal().
  • Moves dependency repositories from build.gradle.kts into dependencyResolutionManagement in settings.gradle.kts and sets RepositoriesMode.FAIL_ON_PROJECT_REPOS, so the repositories are declared in one place and project-level repos can't creep back in.

build-logic now resolves dependencies from mavenCentral() first, then gradlePluginPortal(). Before, it used the portal only. buildSrc keeps mavenCentral() only, as before.

💡 Motivation and Context

The SDK Size Analysis job started failing on main and PRs while configuring :build-logic:

Could not resolve all artifacts for configuration 'classpath'.
   > Could not find kotlin-stdlib-2.4.0.jar (org.jetbrains.kotlin:kotlin-stdlib:2.4.0).
         https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-stdlib/2.4.0/kotlin-stdlib-2.4.0.jar

These included builds had no pluginManagement repos, so the kotlin-dsl plugin classpath resolved only through the Gradle Plugin Portal. The portal just redirects these artifacts to Maven Central, so going to Central directly takes the portal out of the path for anything that isn't a portal-only plugin.

💚 How did you test it?

Not run locally. CI on this PR is the check, especially the SDK Size Analysis job.

📝 Checklist

  • No breaking change or entry added to the changelog.

#skip-changelog

via no.

--

View Junior Session [Sentry]

Co-Authored-By: Nelson Osacky <nelson.osacky@sentry.io>
Co-Authored-By: Nelson Osacky <nelson.osacky@sentry.io>
@runningcode
runningcode marked this pull request as ready for review October 15, 2026 13:42
@runningcode runningcode added the ship-it PR is ready to merge from a reviewer perspective label Oct 15, 2026
@sentry

sentry Bot commented Oct 15, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.61.0 (1) release

⚙️ sentry-android Build Distribution Settings

@runningcode
runningcode enabled auto-merge (squash) October 15, 2026 13:49
@runningcode
runningcode merged commit 3a95ed2 into main Oct 15, 2026
77 of 79 checks passed
@runningcode
runningcode deleted the ci/build-logic-maven-central branch October 15, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ship-it PR is ready to merge from a reviewer perspective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants