File tree 1 file changed +12
-0
lines changed
build-logic/mcbuild/src/main/kotlin/modulecheck/builds
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import org.gradle.api.tasks.bundling.Jar
30
30
import org.gradle.kotlin.dsl.apply
31
31
import org.gradle.kotlin.dsl.configure
32
32
import org.gradle.plugins.signing.Sign
33
+ import org.jetbrains.dokka.gradle.AbstractDokkaLeafTask
33
34
34
35
const val GROUP = " com.rickbusarow.modulecheck"
35
36
const val PLUGIN_ID = " com.rickbusarow.module-check"
@@ -114,5 +115,16 @@ fun Project.configurePublishing(
114
115
}
115
116
tasks.withType(Sign ::class .java).configureEach {
116
117
notCompatibleWithConfigurationCache(" " )
118
+ // skip signing for -LOCAL and -SNAPSHOT publishing
119
+ onlyIf {
120
+
121
+ ! VERSION_NAME .endsWith(" SNAPSHOT" ) && ! VERSION_NAME .endsWith(" LOCAL" )
122
+ }
123
+ }
124
+ tasks.withType(AbstractDokkaLeafTask ::class .java) {
125
+ // skip signing for -LOCAL publishing
126
+ onlyIf {
127
+ ! VERSION_NAME .endsWith(" LOCAL" )
128
+ }
117
129
}
118
130
}
You can’t perform that action at this time.
0 commit comments