@@ -5,11 +5,9 @@ package dokkabuild
55
66import dokkabuild.utils.systemProperty
77import org.gradle.api.file.FileCollection
8- import org.gradle.api.provider.Provider
98import org.gradle.api.tasks.PathSensitivity.RELATIVE
109import org.gradle.api.tasks.testing.Test
1110import org.gradle.process.JavaForkOptions
12- import java.io.File
1311
1412abstract class DevMavenPublishExtension (
1513 /* *
@@ -23,7 +21,7 @@ abstract class DevMavenPublishExtension(
2321 /* *
2422 * Files suitable for registering as a task input (as in, the files are reproducible-build compatible).
2523 */
26- private val devMavenRepositoriesInputFiles: Provider < List < File >> =
24+ private val devMavenRepositoriesInputFiles: FileCollection =
2725 devMavenRepositories
2826 // Convert to a FileTree, which converts directories to all files, so we can filter on specific files.
2927 .asFileTree
@@ -32,10 +30,6 @@ abstract class DevMavenPublishExtension(
3230 // The Gradle Module Metadata contains the same information (and more),
3331 // so the Maven metadata is redundant.
3432 .matching { exclude(" **/maven-metadata*.xml" ) }
35- // FileTrees have an unstable order (even on the same machine), which means Gradle up-to-date checks fail.
36- // So, manually sort the files so that Gradle can cache the task.
37- .elements
38- .map { files -> files.map { it.asFile }.sorted() }
3933
4034 /* *
4135 * Configures [Test] task to register [devMavenRepositories] as a task input,
0 commit comments