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") {
107
107
// the target of `processKdocMain`, and they are returned to normal afterward.
108
108
// This is usually only done when publishing
109
109
val changeJarTask by tasks.registering {
110
- outputs.upToDateWhen { false }
110
+ outputs.upToDateWhen { project.hasProperty( " skipKodex " ) }
111
111
doFirst {
112
112
tasks.withType<Jar > {
113
113
doFirst {
@@ -136,7 +136,7 @@ tasks.withType<Jar> {
136
136
137
137
// modify all publishing tasks to depend on `changeJarTask` so the sources are swapped out with generated sources
138
138
tasks.configureEach {
139
- if (name.startsWith(" publish" )) {
139
+ if (! project.hasProperty( " skipKodex " ) && name.startsWith(" publish" )) {
140
140
dependsOn(processKDocsMain, changeJarTask)
141
141
}
142
142
}
You can’t perform that action at this time.
0 commit comments