Commit graph

19 commits

Author SHA1 Message Date
Lina Butler
3a17ce396e Bug 1895781 - Move the App Services and Glean auto-publish logic to its own settings file. r=nalexander
This commit factors out the logic into its own settings file, adds
docs, and only imports the settings file into applications that
consume App Services and Glean via Maven (i.e., not GeckoView).

Differential Revision: https://phabricator.services.mozilla.com/D209897
2024-05-10 06:21:28 +00:00
Lina Butler
a0c36ffb32 Bug 1895781 - Run the App Services and Glean auto-publish scripts in settingsEvaluated. r=nalexander
This lets developers set the `autoPublish.*` properties in
`$topsrcdir/mobile/android/{project}/local.properties`. These will
override the `autoPublish.*` properties in
`$topsrcdir/local.properties` if set.

This commit also refactors the `local.properties` loading logic in
`shared-settings.gradle` to match the style used in the previous
commit.

Differential Revision: https://phabricator.services.mozilla.com/D209896
2024-05-10 06:21:28 +00:00
Lina Butler
903581e523 Bug 1895781 - Restore project-specific local.properties for Fenix and Focus. r=nalexander
This commit partially reverts the changes in bug 1888422, to fix an
issue where the contents of `mobile/android/{project}/local.properties`
wouldn't be loaded into `gradle.ext` properties. This broke the ability
to set project-specific properties like `autosignReleaseWithDebugKey`,
`debuggable`, `nimbus`, `glean`, `official`, `mozillaOnline`, etc.

This commit also reverts moving the GeckoView substitution logic into
`shared-settings.gradle`, because it's only needed for Android
Components and Fenix.

Differential Revision: https://phabricator.services.mozilla.com/D209895
2024-05-10 06:21:28 +00:00
Cristian Tuns
b636f63a07 Backed out 3 changesets (bug 1895781) for causing gradle-dependencies failures CLOSED TREE
Backed out changeset eccc129ad554 (bug 1895781)
Backed out changeset 2ffa0d4d2326 (bug 1895781)
Backed out changeset 278306033d92 (bug 1895781)
2024-05-09 19:26:48 -04:00
Lina Butler
29399ad0cc Bug 1895781 - Move the App Services and Glean auto-publish logic to its own settings file. r=nalexander
This commit factors out the logic into its own settings file, adds
docs, and only imports the settings file into applications that
consume App Services and Glean via Maven (i.e., not GeckoView).

Differential Revision: https://phabricator.services.mozilla.com/D209897
2024-05-09 22:48:18 +00:00
Lina Butler
b71fefbb65 Bug 1895781 - Run the App Services and Glean auto-publish scripts in settingsEvaluated. r=nalexander
This lets developers set the `autoPublish.*` properties in
`$topsrcdir/mobile/android/{project}/local.properties`. These will
override the `autoPublish.*` properties in
`$topsrcdir/local.properties` if set.

This commit also refactors the `local.properties` loading logic in
`shared-settings.gradle` to match the style used in the previous
commit.

Differential Revision: https://phabricator.services.mozilla.com/D209896
2024-05-09 22:48:17 +00:00
Lina Butler
044a448533 Bug 1895781 - Restore project-specific local.properties for Fenix and Focus. r=nalexander
This commit partially reverts the changes in bug 1888422, to fix an
issue where the contents of `mobile/android/{project}/local.properties`
wouldn't be loaded into `gradle.ext` properties. This broke the ability
to set project-specific properties like `autosignReleaseWithDebugKey`,
`debuggable`, `nimbus`, `glean`, `official`, `mozillaOnline`, etc.

This commit also reverts moving the GeckoView substitution logic into
`shared-settings.gradle`, because it's only needed for Android
Components and Fenix.

Depends on D209826

Differential Revision: https://phabricator.services.mozilla.com/D209895
2024-05-09 22:48:17 +00:00
Lina Butler
4281623d11 Bug 1895048 - Support absolute App Services and Glean repo paths in shared-settings.gradle. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D209826
2024-05-09 22:24:33 +00:00
Lina Butler
10de5f8260 Bug 1888422 - get local-publish flows for app-services and glean working. r=janerik,markh,nalexander
This commit restores the ability to build the Android projects with a
local checkouts of Application Services and Glean. To do so:

1. Create a `local.properties` file in the top source directory
  (that is, your checkout of m-c).
2. Add the `autoPublish.application-services.dir` property with the
  path to your checkout of Application Services, and/or
  `autoPublish.glean.dir` with the path to your checkout of Glean.

Both paths must be relative to the top source directory.

The local publish flow works when building from the top source
directory with `./mach build` or Android Studio, and when building
Android Components, Fenix, or Focus from their respective
project directories with Android Studio or `./gradlew`.

Original patch by: Mark Hammond <mhammond@skippinet.com.au>

Differential Revision: https://phabricator.services.mozilla.com/D206066
2024-04-26 00:36:59 +00:00
Gabriel Luong
10bf459698 Bug 1876335 - use GRADLE_MAVEN_REPOSITORIES in more places. r=owlish,geckoview-reviewers,nalexander,tthibaud,android-reviewers
To ensure that we can build offline, we need to prevent gradle from
going through remote maven repos directly.

That means also overriding the default plugin repository
(plugins.gradle.org) in the `pluginManagement` section.

Differential Revision: https://phabricator.services.mozilla.com/D201497
2024-01-18 15:38:47 +01:00
Gabriel Luong
5475585d75 Bug 1867656 - Refactor loading mozconfig extension property into its own gradle file. r=nalexander,owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201489
2023-12-14 02:35:30 -05:00
Gabriel Luong
0e54430926 Bug 1867656 - Refactor loading the mozconfig to shared-settings.gradle. r=nalexander,owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201482
2023-12-07 16:19:37 -05:00
Gabriel Luong
0b9ddf4f26 Bug 1867656 - Support GeckoView root directory in shared-settings.gradle. r=nalexander,owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201481
2023-12-07 16:19:28 -05:00
Ryan VanderMeulen
3d59857932 Bug 1882134 - Use jvmToolchain for setting target JVM version 2024-02-27 14:40:20 +00:00
Ryan VanderMeulen
c616b68002 Bug 1880759 - Update SnakeYAML to version 2.2 2024-02-19 15:44:19 +00:00
Ryan VanderMeulen
6610ec27e1 Bug 1834409 - Update snakeyaml to version 2.0 2023-05-23 12:09:09 +00:00
William Durand
d4df9aa865 Bug 1824818 - Update manifest version strings to respect the simple versioning format 2023-04-07 08:53:41 +00:00
Christian Sadilek
6c8ded8fa4 Bug 1825649 - Fix A-C nightly builds after adding shared settings.gradle 2023-04-04 11:31:40 -04:00
Christian Sadilek
64da2e6e03 Bug 1825649 - Introduce shared-settings.gradle to allow reusing build logic 2023-04-03 23:05:55 +00:00