Nanev
Nanev

Reputation: 126

C++ Build order?

Trying to build C++ multipart project. I have this in settings.gradle:

include 'Common', 'Base'

Gradle build this in alphabetical order:

  1. Base
  2. Common

I need the opposite:

  1. Common
  2. Base

Upvotes: 0

Views: 201

Answers (1)

Nanev
Nanev

Reputation: 126

It turns out that in each gradle file you need to add dependency (i.e. projects you want to be built before this one)

    dependencies {
        implementation project(':Common')
    }

and then gradle creates correct build graph.

Upvotes: 1

Related Questions