From be688c98a407095b3caaa0caaec4f5e0f4238646 Mon Sep 17 00:00:00 2001 From: Artyom Shendrik Date: Sun, 24 Dec 2023 19:30:02 +0100 Subject: [PATCH] ci(GitHub): call printKotlinSourceSetsGraph in the `check-main` phase of `build` workflow Signed-off-by: Artyom Shendrik --- .github/workflows/build.yml | 2 +- .gitignore | 1 + .../src/main/kotlin/fluxo/conf/KotlinSourceSetsReportTask.kt | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d092af5..5d0e5305 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -92,7 +92,7 @@ jobs: - name: 'Run check-main' working-directory: checks/main - run: ./gradlew build assemble check --continue --stacktrace --scan + run: ./gradlew build assemble check printKotlinSourceSetsGraph --continue --stacktrace --scan env: GITHUB_DEPENDENCY_GRAPH_ENABLED: false diff --git a/.gitignore b/.gitignore index 3063542b..23690c9d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.iml .fleet/ .idea/ +.kotlin/ projectFilesBackup*/ # Gradle diff --git a/fluxo-kmp-conf/src/main/kotlin/fluxo/conf/KotlinSourceSetsReportTask.kt b/fluxo-kmp-conf/src/main/kotlin/fluxo/conf/KotlinSourceSetsReportTask.kt index f7002395..8173a4eb 100644 --- a/fluxo-kmp-conf/src/main/kotlin/fluxo/conf/KotlinSourceSetsReportTask.kt +++ b/fluxo-kmp-conf/src/main/kotlin/fluxo/conf/KotlinSourceSetsReportTask.kt @@ -234,7 +234,7 @@ internal abstract class KotlinSourceSetsReportTask : var progressiveMode: Boolean by attrs var targetName: String? by attrs var platformType: String? by attrs - var isDeprecatedTarget: Boolean by attrs + var isDeprecatedTarget: Boolean? by attrs } internal class SourceSetNodeRenderer(showTests: Boolean) : SimpleNodeRenderer(showTests) { @@ -269,7 +269,7 @@ internal abstract class KotlinSourceSetsReportTask : items.add("progressive") } - val isDeprecatedTarget = node.isDeprecatedTarget + val isDeprecatedTarget = node.isDeprecatedTarget == true if (isDeprecatedTarget && parent?.isDeprecatedTarget != true) { hasWarning = true items.add("deprecated target")