[Gradle] Don't expose sourcesElements when withSourcesJar(publish = false)
^KT-57652 Verification Pending
This commit is contained in:
committed by
Space Team
parent
1833347a7d
commit
0b07a20a70
+10
-6
@@ -201,12 +201,16 @@ abstract class AbstractKotlinTargetConfigurator<KotlinTargetType : KotlinTarget>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations.maybeCreate(target.sourcesElementsConfigurationName).apply {
|
project.whenEvaluated {
|
||||||
description = "Source files of main compilation of ${target.name}."
|
if (target.internal.isSourcesPublishable) {
|
||||||
isVisible = false
|
configurations.maybeCreate(target.sourcesElementsConfigurationName).apply {
|
||||||
isCanBeResolved = false
|
description = "Source files of main compilation of ${target.name}."
|
||||||
isCanBeConsumed = true
|
isVisible = false
|
||||||
configureSourcesPublicationAttributes(target)
|
isCanBeResolved = false
|
||||||
|
isCanBeConsumed = true
|
||||||
|
configureSourcesPublicationAttributes(target)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (createTestCompilation) {
|
if (createTestCompilation) {
|
||||||
|
|||||||
Reference in New Issue
Block a user