Skip to content

Commit b31100a

Browse files
sellmairSpace Team
authored and
Space Team
committed
[Gradle][Minor] MetadataDependencyTransformationTask: Demote visibilty of internals
KT-49933
1 parent e0fde89 commit b31100a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/MetadataDependencyTransformationTask.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,33 +84,33 @@ open class MetadataDependencyTransformationTask
8484

8585
@Suppress("unused") // Gradle input
8686
@get:Input
87-
internal val inputSourceSetsAndCompilations: Map<String, Iterable<String>> by lazy {
87+
protected val inputSourceSetsAndCompilations: Map<String, Iterable<String>> by lazy {
8888
participatingSourceSets.associate { sourceSet ->
8989
sourceSet.name to sourceSet.internal.compilations.map { it.name }.sorted()
9090
}
9191
}
9292

9393
@Suppress("unused") // Gradle input
9494
@get:Input
95-
internal val inputCompilationDependencies: Map<String, Set<List<String?>>> by lazy {
95+
protected val inputCompilationDependencies: Map<String, Set<List<String?>>> by lazy {
9696
participatingSourceSets.flatMap { it.internal.compilations }.associate {
9797
it.name to project.configurations.getByName(it.compileDependencyConfigurationName)
9898
.allDependencies.map { listOf(it.group, it.name, it.version) }.toSet()
9999
}
100100
}
101101

102102
@get:OutputFile
103-
internal val transformedLibrariesIndexFile: RegularFileProperty = objectFactory
103+
protected val transformedLibrariesIndexFile: RegularFileProperty = objectFactory
104104
.fileProperty()
105105
.apply { set(outputsDir.resolve("${kotlinSourceSet.name}.libraries")) }
106106

107107
@get:OutputFile
108-
internal val visibleSourceSetsFile: RegularFileProperty = objectFactory
108+
protected val visibleSourceSetsFile: RegularFileProperty = objectFactory
109109
.fileProperty()
110110
.apply { set(outputsDir.resolve("${kotlinSourceSet.name}.visibleSourceSets")) }
111111

112112
@get:InputFiles
113-
internal val parentVisibleSourceSetFiles: FileCollection = project.filesProvider {
113+
protected val parentVisibleSourceSetFiles: FileCollection = project.filesProvider {
114114
parentTransformationTasks.map { taskProvider ->
115115
taskProvider.flatMap { task ->
116116
task.visibleSourceSetsFile.map { it.asFile }
@@ -119,7 +119,7 @@ open class MetadataDependencyTransformationTask
119119
}
120120

121121
@get:InputFiles
122-
internal val parentTransformedLibraries: FileCollection = project.filesProvider {
122+
protected val parentTransformedLibraries: FileCollection = project.filesProvider {
123123
parentTransformationTasks.map { taskProvider ->
124124
taskProvider.map { task -> task.ownTransformedLibraries }
125125
}

0 commit comments

Comments
 (0)