[Gradle][Minor] MetadataDependencyTransformationTask: Demote visibilty of internals
KT-49933
This commit is contained in:
committed by
Space Team
parent
e0fde89262
commit
b31100a90c
+6
-6
@@ -84,7 +84,7 @@ open class MetadataDependencyTransformationTask
|
|||||||
|
|
||||||
@Suppress("unused") // Gradle input
|
@Suppress("unused") // Gradle input
|
||||||
@get:Input
|
@get:Input
|
||||||
internal val inputSourceSetsAndCompilations: Map<String, Iterable<String>> by lazy {
|
protected val inputSourceSetsAndCompilations: Map<String, Iterable<String>> by lazy {
|
||||||
participatingSourceSets.associate { sourceSet ->
|
participatingSourceSets.associate { sourceSet ->
|
||||||
sourceSet.name to sourceSet.internal.compilations.map { it.name }.sorted()
|
sourceSet.name to sourceSet.internal.compilations.map { it.name }.sorted()
|
||||||
}
|
}
|
||||||
@@ -92,7 +92,7 @@ open class MetadataDependencyTransformationTask
|
|||||||
|
|
||||||
@Suppress("unused") // Gradle input
|
@Suppress("unused") // Gradle input
|
||||||
@get:Input
|
@get:Input
|
||||||
internal val inputCompilationDependencies: Map<String, Set<List<String?>>> by lazy {
|
protected val inputCompilationDependencies: Map<String, Set<List<String?>>> by lazy {
|
||||||
participatingSourceSets.flatMap { it.internal.compilations }.associate {
|
participatingSourceSets.flatMap { it.internal.compilations }.associate {
|
||||||
it.name to project.configurations.getByName(it.compileDependencyConfigurationName)
|
it.name to project.configurations.getByName(it.compileDependencyConfigurationName)
|
||||||
.allDependencies.map { listOf(it.group, it.name, it.version) }.toSet()
|
.allDependencies.map { listOf(it.group, it.name, it.version) }.toSet()
|
||||||
@@ -100,17 +100,17 @@ open class MetadataDependencyTransformationTask
|
|||||||
}
|
}
|
||||||
|
|
||||||
@get:OutputFile
|
@get:OutputFile
|
||||||
internal val transformedLibrariesIndexFile: RegularFileProperty = objectFactory
|
protected val transformedLibrariesIndexFile: RegularFileProperty = objectFactory
|
||||||
.fileProperty()
|
.fileProperty()
|
||||||
.apply { set(outputsDir.resolve("${kotlinSourceSet.name}.libraries")) }
|
.apply { set(outputsDir.resolve("${kotlinSourceSet.name}.libraries")) }
|
||||||
|
|
||||||
@get:OutputFile
|
@get:OutputFile
|
||||||
internal val visibleSourceSetsFile: RegularFileProperty = objectFactory
|
protected val visibleSourceSetsFile: RegularFileProperty = objectFactory
|
||||||
.fileProperty()
|
.fileProperty()
|
||||||
.apply { set(outputsDir.resolve("${kotlinSourceSet.name}.visibleSourceSets")) }
|
.apply { set(outputsDir.resolve("${kotlinSourceSet.name}.visibleSourceSets")) }
|
||||||
|
|
||||||
@get:InputFiles
|
@get:InputFiles
|
||||||
internal val parentVisibleSourceSetFiles: FileCollection = project.filesProvider {
|
protected val parentVisibleSourceSetFiles: FileCollection = project.filesProvider {
|
||||||
parentTransformationTasks.map { taskProvider ->
|
parentTransformationTasks.map { taskProvider ->
|
||||||
taskProvider.flatMap { task ->
|
taskProvider.flatMap { task ->
|
||||||
task.visibleSourceSetsFile.map { it.asFile }
|
task.visibleSourceSetsFile.map { it.asFile }
|
||||||
@@ -119,7 +119,7 @@ open class MetadataDependencyTransformationTask
|
|||||||
}
|
}
|
||||||
|
|
||||||
@get:InputFiles
|
@get:InputFiles
|
||||||
internal val parentTransformedLibraries: FileCollection = project.filesProvider {
|
protected val parentTransformedLibraries: FileCollection = project.filesProvider {
|
||||||
parentTransformationTasks.map { taskProvider ->
|
parentTransformationTasks.map { taskProvider ->
|
||||||
taskProvider.map { task -> task.ownTransformedLibraries }
|
taskProvider.map { task -> task.ownTransformedLibraries }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user