Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Cleanup + refactor gradle files #6009

Closed

Description

@tobrun

Our gradle files are growing large and complex.
I suggest refactoring some tasks into external build scripts:

  • javadoc.gradle
  • maven.gradle
  • make.gradle
  • dev_config.gradle
  • ...

How to config project using external build script

build.gradle

apply from: 'other.gradle'

other.gradle

println "configuring $project"
task hello << {
    println 'hello from other script'
}

Additional tasks:

cc @mapbox/android

Activity

  1. added
    Android
    on Aug 15, 2016
  2. added this to the android-v4.2.0 milestone on Aug 15, 2016
  3. zugaldia commented on Aug 15, 2016

    @zugaldia
    Member

    👍 I really like doing this to my .gradle files and also makes sense from a consistency point of view as we're already following this approach on MAS. E.g.: https://github.com/mapbox/mapbox-java/blob/master/libandroid/lib/build.gradle#L47-L49.

  4. tobrun commented on Aug 15, 2016

    @tobrun
    MemberAuthor

    Ah now I remember where I had seen that before, 🙇 @zugaldia

  5. tobrun commented on Aug 16, 2016

    @tobrun
    MemberAuthor

    Moving of the milestone, no requirement

  6. removed this from the android-v4.2.0 milestone on Aug 16, 2016
  7. self-assigned this
    on Nov 3, 2016
  8. added this to the android-v5.0.0 milestone on Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Androidrefactor

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions