File tree Expand file tree Collapse file tree
plugin/src/main/kotlin/org/openprojectx/gradle/dependency/bundle Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import org.gradle.api.file.DirectoryProperty
1616import org.gradle.api.provider.ListProperty
1717import org.gradle.api.provider.Property
1818import org.gradle.api.tasks.Input
19- import org.gradle.api.tasks.OutputDirectory
19+ import org.gradle.api.tasks.Internal
2020import org.gradle.api.tasks.TaskAction
2121import org.gradle.work.DisableCachingByDefault
2222import org.openprojectx.gradle.dependency.bundle.core.ArtifactRecord
@@ -43,7 +43,11 @@ abstract class ExportDependencyBundleTask : DefaultTask() {
4343 @get:Input abstract val gradleVariantRequests: ListProperty <String >
4444 @get:Input abstract val artifactRepositoryUrls: ListProperty <String >
4545 @get:Input abstract val pluginVersion: Property <String >
46- @get:OutputDirectory abstract val outputDirectory: DirectoryProperty
46+ // This task merges resolved artifacts into a repository that may already
47+ // contain publications from the current build. Declaring the whole bundle
48+ // as an output directory lets Gradle clean those publications immediately
49+ // before execution (notably POM-only plugin markers on a fresh CI runner).
50+ @get:Internal abstract val outputDirectory: DirectoryProperty
4751
4852 private val components = linkedMapOf<String , ComponentNode >()
4953 private val edges = linkedSetOf<DependencyEdge >()
You can’t perform that action at this time.
0 commit comments