Skip to content

Commit

Permalink
Try to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cupertank committed Jul 10, 2024
1 parent fda7d85 commit 326c878
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ class PrimitivesGradlePlugin : Plugin<Project> {
primitivesTask.get().dependsOn(task)
}

project.tasks.withType(MetadataDependencyTransformationTask::class.java).all {
primitivesTask.get().dependsOn(it)
}
// project.tasks.named { it == "transformDependenciesMetadata" }.all {
// primitivesTask.get().dependsOn(it)
// }
// primitivesTask.get().dependsOn(project.tasks.named("transformDependenciesMetadata"))
// project.tasks.withType(MetadataDependencyTransformationTask::class.java).all {
// it.transformMetadata()
// primitivesTask.get().inputs.files(it.outputs.files).ignoreEmptyDirectories().withPathSensitivity(PathSensitivity.RELATIVE)
// primitivesTask.get().dependsOn(it)
// }

kotlinExt.sourceSets.all { sourceSet ->
val sourceSetName = sourceSet.name
Expand All @@ -42,6 +48,8 @@ class PrimitivesGradlePlugin : Plugin<Project> {
}

fun configureCompilation(compilation: KotlinCompilation<*>) {
if (compilation.name == "test") return
primitivesTask.get().inputs.files(compilation.compileDependencyFiles)
val targetTask = compilation.compileTaskProvider

targetTask.configure {
Expand Down

0 comments on commit 326c878

Please sign in to comment.