From d1b19b6fdb73ad4057ef0eb3f0ea61ccc6d44769 Mon Sep 17 00:00:00 2001 From: Pablo Baxter Date: Tue, 5 Dec 2023 21:09:33 -0800 Subject: [PATCH] Fix custom Gradle flags not being properly set --- CHANGELOG.md | 1 + .../main/kotlin/com/squareup/affected/paths/core/CoreOptions.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb115dd..1037f74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ## Unreleased +- `affected-paths-core`: Fix custom Gradle flags not being properly set ## v0.1.2 - `affected-paths-core`, `tooling-support-*`: Add in support for composite builds being analyzed diff --git a/affected-paths/core/src/main/kotlin/com/squareup/affected/paths/core/CoreOptions.kt b/affected-paths/core/src/main/kotlin/com/squareup/affected/paths/core/CoreOptions.kt index efd6910..4c81b84 100644 --- a/affected-paths/core/src/main/kotlin/com/squareup/affected/paths/core/CoreOptions.kt +++ b/affected-paths/core/src/main/kotlin/com/squareup/affected/paths/core/CoreOptions.kt @@ -94,6 +94,7 @@ public data class CoreOptions @JvmOverloads constructor( } internal val gradleArgs: List = buildList { + addAll(customGradleFlags) if (autoInjectPlugin) { add("-I") add(