Closed Bug 1983934 Opened 10 months ago Closed 5 months ago

Centralize Maven repository configuration

Categories

(Firefox Build System :: Android Studio and Gradle Integration, task)

task

Tracking

(firefox149 fixed)

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: ahochheiden, Assigned: ahochheiden)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

No description provided.

Comment on attachment 9507969 [details]
Bug 1983934 - Centralize Maven repository configuration via dependencyResolutionManagement in SettingsPlugin r?nalexander

Revision D261617 was moved to bug 2007013. Setting attachment 9507969 [details] to obsolete.

Attachment #9507969 - Attachment is obsolete: true
Attachment #9507969 - Attachment description: Bug 1983934: Centralize Maven repository configuration using dependencyResolutionManagement r?nalexander → Bug 1983934 - Centralize Maven repository configuration via `dependencyResolutionManagement` in `SettingsPlugin` r?nalexander
Attachment #9507969 - Attachment is obsolete: false
Attachment #9539248 - Attachment is obsolete: true
Pushed by ahochheiden@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3aebd1c22e92 https://hg.mozilla.org/integration/autoland/rev/3acf573e6b94 Centralize Maven repository configuration via `dependencyResolutionManagement` in `SettingsPlugin` r=nalexander,android-reviewers,geckoview-reviewers
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch

This breaks app-services auto-publish for me.

I see a bunch of warnings like this:

> Configure project :components:feature-fxsuggest
  Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by plugin 'com.jetbrains.python.envs'

Followed by a bunch of errors like this:

  > Configure project :geckoview
  GeckoView version = 150.0.20260224112257-SNAPSHOT
  [gradle:error]: > Could not determine the dependencies of task ':fenix:compileDebugJavaWithJavac'.
  [gradle:error]: > > Could not determine the dependencies of task ':fenix:compileDebugJavaWithJavac'.
  [gradle:error]: >   > Could not resolve all dependencies for configuration ':fenix:debugCompileClasspath'.
  [gradle:error]: >     > Could not resolve all dependencies for configuration ':fenix:debugCompileClasspath'.
  [gradle:error]: >       > Could not find any version that matches org.mozilla.appservices:syncmanager:0.0.1-SNAPSHOT-+.
  [gradle:error]: >         Versions that do not match:
  [gradle:error]: >           - 63.0.0
  [gradle:error]: >           - 62.1.0
  [gradle:error]: >           - 62.0.0
  [gradle:error]: >           - 61.0.13
  [gradle:error]: >           - 61.0.12
  [gradle:error]: >           - + 53 more
  [gradle:error]: >         Required by:
  [gradle:error]: >             project ':fenix'
  [gradle:error]: >

Is there any extra configuration I can add to avoid this issue? If not, what changes are needed to make this work again?

Adding mavenLocal() to the repositories section in SettingsPlugin.kt fixes things for me, so I can unblock myself for the short term. Long-term, maybe there's a way to make that conditional on the localProperties.autoPublish.application-services.dir property?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: