Skip to content

Commit

Permalink
Remove spurious TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Nov 6, 2023
1 parent 442319f commit 5dde093
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import org.gradle.api.invocation.Gradle
import org.gradle.api.tasks.TaskProvider
import org.gradle.util.GradleVersion

// TODO: Rename these
private const val RESOLVE_PROJECT_TASK = "ForceDependencyResolutionPlugin_resolveProjectDependencies"
private const val RESOLVE_ALL_TASK = "ForceDependencyResolutionPlugin_resolveAllDependencies"

Expand Down Expand Up @@ -40,10 +39,10 @@ class ForceDependencyResolutionPlugin : Plugin<Gradle> {
private fun getResolveProjectDependenciesTaskFactory(): ResolveProjectDependenciesTaskFactory {
val gradleVersion = GradleVersion.current()
val gradle8 = GradleVersion.version("8.0")
if (gradleVersion >= gradle8) {
return ResolveProjectDependenciesTaskFactory.Current
return if (gradleVersion >= gradle8) {
ResolveProjectDependenciesTaskFactory.Current
} else {
return ResolveProjectDependenciesTaskFactory.Legacy
ResolveProjectDependenciesTaskFactory.Legacy
}
}

Expand Down

0 comments on commit 5dde093

Please sign in to comment.