diff --git a/dataframe-csv/build.gradle.kts b/dataframe-csv/build.gradle.kts index 2b040ba464..c613dc58ed 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) } }