File tree 1 file changed +6
-4
lines changed
plugin/src/main/kotlin/com/vanniktech/maven/publish/legacy
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ internal fun Project.configureNotAndroidPlatform() {
54
54
55
55
internal fun Project.configureAndroidPlatform () {
56
56
if (hasWorkingNewAndroidPublishingApi()) {
57
- // afterEvaluate is too late but we can't run this synchronously because we shouldn't call the APIs for
57
+ // afterEvaluate is too late, but we can't run this synchronously because we shouldn't call the APIs for
58
58
// multiplatform projects that use Android
59
59
androidComponents.finalizeDsl {
60
60
if (! plugins.hasPlugin(" org.jetbrains.kotlin.multiplatform" )) {
@@ -68,9 +68,11 @@ internal fun Project.configureAndroidPlatform() {
68
68
}
69
69
} else {
70
70
afterEvaluate {
71
- // release was the old default value before it was changed to null for AGP 7.1+
72
- val variant = legacyExtension.androidVariantToPublish ? : " release"
73
- baseExtension.configure(AndroidLibrary (defaultJavaDocOption() ? : javadoc(), variant = variant))
71
+ if (! plugins.hasPlugin(" org.jetbrains.kotlin.multiplatform" )) {
72
+ // release was the old default value before it was changed to null for AGP 7.1+
73
+ val variant = legacyExtension.androidVariantToPublish ? : " release"
74
+ baseExtension.configure(AndroidLibrary (defaultJavaDocOption() ? : javadoc(), variant = variant))
75
+ }
74
76
}
75
77
}
76
78
}
You can’t perform that action at this time.
0 commit comments