File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/dsl Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -384,14 +384,17 @@ internal fun isAvailableForPublication(project: Project, publication: MavenPubli
384384
385385 // Allow overriding K/N publications for local development
386386 val overrideGroupNameValidation = project.extra.getOrNull<String >(OVERRIDE_KOTLIN_NATIVE_GROUP_NAME_VALIDATION ) == " true"
387- if (overrideGroupNameValidation) println (" Overriding group name validation for Kotlin/Native publications" )
388387
389388 // Validate publication name
390389 if (publication.name in ALLOWED_PUBLICATION_NAMES ) {
391390 // Standard publication
392391 } else if (publication.name in ALLOWED_KOTLIN_NATIVE_PUBLICATION_NAMES ) {
393392 // Kotlin/Native publication
394- shouldPublish = shouldPublish && (overrideGroupNameValidation || publication.groupId in ALLOWED_KOTLIN_NATIVE_GROUP_NAMES )
393+ if (overrideGroupNameValidation && publication.groupId !in ALLOWED_KOTLIN_NATIVE_PUBLICATION_NAMES ) {
394+ println (" Overriding K/N publication, project=${project.name} ; publication=${publication.name} ; group=${publication.groupId} " )
395+ } else {
396+ shouldPublish = shouldPublish && publication.groupId in ALLOWED_KOTLIN_NATIVE_GROUP_NAMES
397+ }
395398 } else {
396399 shouldPublish = false
397400 }
You can’t perform that action at this time.
0 commit comments