Skip to content
Snippets Groups Projects
  1. Jul 18, 2017
  2. Jul 26, 2017
  3. Jun 21, 2017
  4. Nov 19, 2016
  5. Sep 22, 2016
  6. Apr 29, 2016
  7. Apr 19, 2016
  8. Mar 25, 2016
  9. Mar 17, 2016
  10. Mar 13, 2016
  11. Mar 08, 2016
    • Nick Alexander's avatar
      Bug 1252928 - Part 3: Replace android-gradle-build-dependencies with... · 65d4c28a
      Nick Alexander authored
      Bug 1252928 - Part 3: Replace android-gradle-build-dependencies with android-api-15-gradle-dependencies. r=dustin
      
      The existing task's outcome is best achieved with a special purpose
      build task, so here it is.
      
      MozReview-Commit-ID: 3gYnAb69TdK
      
      --HG--
      rename : mobile/android/config/mozconfigs/android-api-15-frontend/nightly => mobile/android/config/mozconfigs/android-api-15-gradle-dependencies/nightly
      rename : mobile/android/config/tooltool-manifests/android-frontend/releng.manifest => mobile/android/config/tooltool-manifests/android-gradle-dependencies/releng.manifest
      extra : rebase_source : 252c283553d64bac17c2b922773023a349c297ea
      extra : histedit_source : 2d8becbcdfa5d37829552e55b50fb7f9cbf56dea
      65d4c28a
  12. Mar 02, 2016
  13. Feb 18, 2016
  14. Feb 11, 2016
    • Nick Alexander's avatar
      Bug 1248005 - Use com.stanfy.spoon:spoon-gradle-plugin:1.0.4. r=me · c4f4d0e3
      Nick Alexander authored
      MozReview-Commit-ID: 8hSOCq8XpZ7
      
      --HG--
      extra : rebase_source : 2a53bf00a5ffbf3882d6b144e2c14979bf3c02ad
      extra : amend_source : f878e1ea6f2bad11b1ba53e499573b50a34794d5
      extra : histedit_source : 5ea4d001fa8b6c039785708fca5bffcbfd07dcea
      c4f4d0e3
    • Nick Alexander's avatar
      Bug 1247375 - Part 2: Add build system Gradle defines for Fennec. r=glandium · 9d87131d
      Nick Alexander authored
      Enable building with Gradle using --with-gradle.  Configure the
      location of Gradle with --with-gradle=/path/to/gradle.  For local
      developers, this is always the in tree Gradle wrapper, which downloads
      and installs the correct Gradle version automatically.  In automation,
      this will be a version of Gradle fetched from tooltool.
      
      Configure the location to use to download Gradle Maven dependencies
      (including the Android-Gradle plugin) by setting
      GRADLE_MAVEN_REPOSITORY in your mozconfig. For local developers, this
      defaults to the jcenter repository.  In automation, this will be an
      archived directory fetched from tooltool.
      
      Android-specific Maven dependencies are shipped as "extras" with the
      Android SDK, and should be found automatically by the Android-Gradle
      plugin.
      
      MozReview-Commit-ID: Hrkn88Vig5H
      
      --HG--
      extra : rebase_source : c5e83590c9b28ad5a10f91ec0a3663e6d64b3b40
      extra : amend_source : c3e162673238d6c6191838cc98f8301e325e01a2
      9d87131d
  15. Dec 17, 2015
  16. Dec 02, 2015
  17. Nov 03, 2015
    • Nick Alexander's avatar
      Bug 1220887 - Make 'base' Gradle project in the srcdir. r=sebastian · 44046732
      Nick Alexander authored
      This is the last Gradle project that isn't in the srcdir.  Since base/
      doesn't have the correct package prefix directory structure, we still
      need to symlink, but we only need one link.  This effectively
      deprecates |mach gradle-install|.
      
      This should improve the robustness of our Gradle configuration,
      ensuring that we always have projects to import.  Since
      settings.gradle executes very early in the IDE import project
      sequence: before Gradle project evaluation time, and thus before any
      Gradle task is executed, we should always see a complete project.  (It
      was possible to see incomplete Gradle configurations if |mach
      gradle-install| hadn't been run at just the right time.)
      
      --HG--
      extra : commitid : 4zK7U5PAypH
      extra : rebase_source : 91f8534a89f0311b36bd39f502e2f7609a1d78b0
      44046732
  18. Oct 20, 2015
    • Nick Alexander's avatar
      Bug 1123416 - Part 3: Limit IntelliJ objdir indexing. r=sebastian · 87aa09a0
      Nick Alexander authored
      IntelliJ's exclusion mechanism (for Gradle-based projects) is not very
      flexible; we get just idea.module.excludeDirs.  This patch crawls the
      file system to skip what we can.
      
      --HG--
      extra : commitid : 5ckT9DSiS02
      extra : rebase_source : 4f362c4996289ce7ee593e9bb35e9aff70e73426
      87aa09a0
  19. Oct 21, 2015
    • Nick Alexander's avatar
      Bug 1123416 - Part 1: Make topsrcdir a valid Gradle project root. r=sebastian · c1750592
      Nick Alexander authored
      The sub-project definitions are still in the object directory (and
      still installed by |mach gradle-install); over time, we'll migrate
      them out.
      
      The Gradle wrapper and {settings,build}.gradle in topsrcdir are
      identical to those in mobile/android/gradle.  I don't like the
      duplication, but I also don't want the burden of keeping the two
      configurations identical.  We'll move away from the configuration
      using mobile/android/gradle as quickly as we can.
      
      --HG--
      rename : mobile/android/gradle/build.gradle => build.gradle
      rename : mobile/android/gradle/gradle/wrapper/gradle-wrapper.jar => gradle/wrapper/gradle-wrapper.jar
      rename : mobile/android/gradle/gradle/wrapper/gradle-wrapper.properties => gradle/wrapper/gradle-wrapper.properties
      rename : mobile/android/gradle/gradlew => gradlew
      rename : mobile/android/gradle/settings.gradle => settings.gradle
      extra : commitid : IkXCiKfkha1
      extra : rebase_source : 4142fe37cd7e036d41fb122fe31cd232fcfdfc80
      c1750592
  20. Sep 14, 2015
  21. Sep 11, 2015
  22. Aug 28, 2015
  23. Aug 21, 2015
  24. Aug 20, 2015
    • Nick Alexander's avatar
      Bug 1196970 - Part 2: Make all Android Gradle projects generateCodeAndResoures. r=me · 806d7966
      Nick Alexander authored
      It's convenient to know that the object directory is up-to-date (after
      |make gradle-targets|) before any Gradle project builds.
      
      --HG--
      extra : commitid : 2WaqMEqw3mx
      extra : rebase_source : 2dea8249b329d82d9c89b5defa7e13d4aff60566
      extra : source : eb170abcc91b4714874e97b58b371e242aee9699
      extra : histedit_source : 92a62bd75dfa289f3ede4592d4a224ad135d3b6b
      806d7966
  25. Jun 04, 2015
    • Nick Alexander's avatar
      Bug 1171566 - Part 1: Configure Gradle and Spoon. rs=mcomella · 3f6c59b2
      Nick Alexander authored
      There are few things happening here:
      
      * A purely mechanical move of test sources into org.mozilla.test.browser.junit3.
        This is only to make it easy to specify the suite in Spoon.  (But it has the
        advantage of making it possible to move files around in IntelliJ, since the
        symlink points to src instead of org/mozilla/gecko.)
      
      * Specifying the suite (package name) ended up requiring changes to the
        spoon-gradle-plugin anyway.  Hence, I've included this custom
        spoon-gradle-plugin version locally, while I work to upstream the changes.
      
      * Some Gradle trickery to make |mach gradle runBrowserTests| execute Spoon with
        the correct package name.
      
      --HG--
      rename : mobile/android/tests/browser/junit3/src/BrowserTestCase.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/BrowserTestCase.java
      rename : mobile/android/tests/browser/junit3/src/TestDistribution.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/TestDistribution.java
      rename : mobile/android/tests/browser/junit3/src/TestGeckoBackgroundThread.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/TestGeckoBackgroundThread.java
      rename : mobile/android/tests/browser/junit3/src/TestGeckoMenu.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/TestGeckoMenu.java
      rename : mobile/android/tests/browser/junit3/src/TestGeckoProfilesProvider.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/TestGeckoProfilesProvider.java
      rename : mobile/android/tests/browser/junit3/src/TestGeckoSharedPrefs.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/TestGeckoSharedPrefs.java
      rename : mobile/android/tests/browser/junit3/src/TestImageDownloader.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/TestImageDownloader.java
      rename : mobile/android/tests/browser/junit3/src/TestJarReader.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/TestJarReader.java
      rename : mobile/android/tests/browser/junit3/src/TestRawResource.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/TestRawResource.java
      rename : mobile/android/tests/browser/junit3/src/TestSuggestedSites.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/TestSuggestedSites.java
      rename : mobile/android/tests/browser/junit3/src/TestTopSitesCursorWrapper.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/TestTopSitesCursorWrapper.java
      rename : mobile/android/tests/browser/junit3/src/harness/BrowserInstrumentationTestRunner.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/harness/BrowserInstrumentationTestRunner.java
      rename : mobile/android/tests/browser/junit3/src/harness/BrowserTestListener.java => mobile/android/tests/browser/junit3/src/org/mozilla/tests/browser/junit3/harness/BrowserTestListener.java
      extra : rebase_source : 5eff7e0da0be912838fac0ddad5f6b357800eb45
      extra : histedit_source : e76288628e14aeb155d2d3b4033d056c6efdc646
      3f6c59b2
  26. May 25, 2015
    • Nick Alexander's avatar
      No bug - Don't let Gradle incrementally dex. r=me · c5c780a8
      Nick Alexander authored
      DONTBUILD NPOTB
      
      Unfortunately, Gradle just can't handle incremental dexing in our
      multi-project and parallel configuration.  I see the dreaded
      "com.android.dex.DexException: Multiple dex files define ..." error
      frequently.
      
      I'm using a downloaded Robotium package instead of the in-tree JAR
      file as well, 'cuz it seems to be related.
      
      --HG--
      extra : rebase_source : d95c0844082a6deb48966496cb90824f70f6c49d
      extra : histedit_source : 2f3d231d9b7139880a924089ab0d523e5e31e6b6
      c5c780a8
  27. Apr 01, 2015
    • Nick Alexander's avatar
      Bug 1160357 - Share generateCodeAndResources across Gradle projects. r=me · 711f72fa
      Nick Alexander authored
      This is just a clean-up: rather than having each subproject have a
      generateCodeAndResources build action, we have a single action
      (attached to the root project) which all subprojects depend on.
      Gradle orders the task DAG accordingly, saving process invocations and
      speeding up the build.
      
      --HG--
      extra : source : b44dc79fbddb1acc02da12e9926852e67d606584
      extra : amend_source : b89249d8af2b7986ab1174f89c150ef8115c71cf
      711f72fa
  28. Jan 28, 2015
  29. Dec 23, 2014
    • Nick Alexander's avatar
      Bug 1115064 - Fix small errors and make Gradle integration work in Android Studio 1.0.2. r=me · 694a293c
      Nick Alexander authored
      The important change here is that we allow the Android-Gradle plugin
      to be version 0.14.4 or version 1.0.0, which appears to work in
      IntelliJ 14.0.2 and in Android Studio 1.0.2.
      
      Testing feedback came from imjalpreet and garvank.
      
      --HG--
      extra : rebase_source : 2b93dd91603666f1c6a1d2fe0fa7721d5741bdda
      694a293c
    • Nick Alexander's avatar
      Bug 1098239 - Rewrite mobile/android Gradle integration. r=me · 4f3f4284
      Nick Alexander authored
      This is a big patch, but it's essentially NPOTB.  The part that is POTB
      is ... removing Gradle integration from the build.  I've implemented
      |mach gradle-install| as a substitute for the build system stuff; it's
      just so much easier to iterate on a mach command than a moz.build and
      Makefile.in.
      
      I'm landing this with self-review because this lessens the impact of the
      Gradle integration on the build system and because I am the only person
      who understands either the old or the new system.
      
      You'll need to run |mach gradle-install| at top level to configure the
      new Gradle integration.  But |mach gradle ...| does the right thing
      configuration steps too.
      
      This patch rewrites most of the Gradle integration.  The major changes
      are:
      
      * all .gradle files move into mobile/android/gradle;
      * all the Gradle projects live in the object directory;
      * mozconfig exposed to all build.gradle files;
      * simplification of Android configuration between build.gradle files;
      * support for user-specified version of build tools;
      * first steps towards supporting builds from the source directory;
      * bumps Gradle to 2.2.1;
      * bumps the Android-Gradle plugin to 0.14.4.
      
      This is seemingly a step backwards given that we'd prefer to ship the
      .idea directory in the source directory.  But in fact we get closer to
      that; it's possible to run ./gradlew in the source directory and get a
      reasonable build.  We'll progress with this in time.  The win right now
      is that the projects are nested, which makes importing work better on
      Linux machines.
      
      Unfortunately IntelliJ 13 and 14 now have conflicting Android-Gradle
      plugin version requirements, so we now only support IntelliJ 14.0.2 and
      above.
      
      --HG--
      rename : mobile/android/base/gradle_AndroidManifest.xml => mobile/android/gradle/base/AndroidManifest.xml
      rename : mobile/android/base/gradle_AndroidManifest.xml => mobile/android/gradle/branding/AndroidManifest.xml
      rename : mobile/android/gradle/omnijar/gradle_AndroidManifest.xml => mobile/android/gradle/omnijar/AndroidManifest.xml
      rename : mobile/android/base/gradle_AndroidManifest.xml => mobile/android/gradle/preprocessed_code/AndroidManifest.xml
      rename : mobile/android/base/gradle_AndroidManifest.xml => mobile/android/gradle/preprocessed_resources/AndroidManifest.xml
      rename : mobile/android/thirdparty/gradle_AndroidManifest.xml => mobile/android/gradle/thirdparty/AndroidManifest.xml
      4f3f4284
  30. Nov 13, 2014
  31. Nov 10, 2014
  32. Nov 14, 2014
  33. Jan 14, 2015
    • Nick Alexander's avatar
      Bug 1120032 - Use Android-Gradle plugin version 1.0.0 everywhere. r=me · d1f80fc6
      Nick Alexander authored
      DONTBUILD NPOTB
      
      There are significant problems with the combination of Android-Gradle
      0.14.4, Gradle 2.2.1, and IntelliJ 14.0.2.  The problems include
      imports that have no recognized source directories and a quasi-working
      debugger that fails to stop on breakpoints.
      
      Rather than claim some support for this configuration, we'll move the
      Android-Gradle plugin version forward.  This should support both
      IntelliJ 14.0.3 (sadly still Early Access Preview only) and Android
      Studio 1.0.0.
      
      --HG--
      extra : rebase_source : f2394bd65549cef3a2dafb1f83c8d405f0d00124
      d1f80fc6
Loading