File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
109109val 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
138138tasks.configureEach {
139- if (name.startsWith(" publish" )) {
139+ if (! project.hasProperty( " skipKodex " ) && name.startsWith(" publish" )) {
140140 dependsOn(processKDocsMain, changeJarTask)
141141 }
142142}
You can’t perform that action at this time.
0 commit comments