Skip to content

Properties set at fladle scope don't get propagated to individual configs #240

Description

@valeraz

When executing ./gradlew app:runFlankReleaseVariantTests from the configuration below, I noticed that orchestrator was still set to false (the default), despite the fact that it was set to true at the top-level scope:

fladle {
  useOrchestrator.set(true) // PROBLEM: not being propagated down
  configs {
    create("releaseVariantTests") {
      debugApk.set(project.provider { "$buildDir/outputs/apk/internal/release/$apkName" })
      instrumentationApk.set("$buildDir/outputs/apk/androidTest/internal/release/$testApkName")
      devices.set(listOf(mapOf("model" to "walleye" /* pixel2 */, "version" to "27"))) //
      testTargets.set(listOf("package slack.external"))
    }
  }
}

Running the fladle kotlin (sample)[https://github.com/runningcode/fladle/blob/master/sample-kotlin/build.gradle.kts] should repro this error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions