Skip to content

Commit a123f79

Browse files
committed
skipKodex gradle parameter in dataframe-csv
1 parent 0875efd commit a123f79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataframe-csv/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ tasks.named("runKtlintCheckOverGeneratedSourcesSourceSet") {
107107
// the target of `processKdocMain`, and they are returned to normal afterward.
108108
// This is usually only done when publishing
109109
val changeJarTask by tasks.registering {
110-
outputs.upToDateWhen { false }
110+
outputs.upToDateWhen { project.hasProperty("skipKodex") }
111111
doFirst {
112112
tasks.withType<Jar> {
113113
doFirst {
@@ -136,7 +136,7 @@ tasks.withType<Jar> {
136136

137137
// modify all publishing tasks to depend on `changeJarTask` so the sources are swapped out with generated sources
138138
tasks.configureEach {
139-
if (name.startsWith("publish")) {
139+
if (!project.hasProperty("skipKodex") && name.startsWith("publish")) {
140140
dependsOn(processKDocsMain, changeJarTask)
141141
}
142142
}

0 commit comments

Comments
 (0)