From 06a9ae8e3d9b9be99e657ac72c143d795215f5f0 Mon Sep 17 00:00:00 2001 From: Nikita Klimenko Date: Thu, 7 Aug 2025 16:04:53 +0300 Subject: [PATCH] skipKodex gradle parameter in dataframe-csv --- dataframe-csv/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dataframe-csv/build.gradle.kts b/dataframe-csv/build.gradle.kts index 2b040ba46..c613dc58e 100644 --- a/dataframe-csv/build.gradle.kts +++ b/dataframe-csv/build.gradle.kts @@ -107,7 +107,7 @@ tasks.named("runKtlintCheckOverGeneratedSourcesSourceSet") { // the target of `processKdocMain`, and they are returned to normal afterward. // This is usually only done when publishing val changeJarTask by tasks.registering { - outputs.upToDateWhen { false } + outputs.upToDateWhen { project.hasProperty("skipKodex") } doFirst { tasks.withType { doFirst { @@ -136,7 +136,7 @@ tasks.withType { // modify all publishing tasks to depend on `changeJarTask` so the sources are swapped out with generated sources tasks.configureEach { - if (name.startsWith("publish")) { + if (!project.hasProperty("skipKodex") && name.startsWith("publish")) { dependsOn(processKDocsMain, changeJarTask) } }