Skip to content

Commit

Permalink
Add missing Inject annotation to DisambiguationRule.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed Oct 29, 2023
1 parent 8eb3068 commit 89e4786
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import org.gradle.api.attributes.Attribute
import org.gradle.api.attributes.AttributeDisambiguationRule
import org.gradle.api.attributes.MultipleCandidatesDetails
import org.gradle.api.logging.Logging
import javax.inject.Inject

interface KotlinCompilerVersion : Named {
companion object {
Expand All @@ -21,7 +22,7 @@ interface KotlinCompilerVersion : Named {
}
}

class DisambiguationRule(
class DisambiguationRule @Inject constructor(
private val currentKotlinVersion: String,
): AttributeDisambiguationRule<KotlinCompilerVersion> {
override fun execute(details: MultipleCandidatesDetails<KotlinCompilerVersion>) {
Expand Down

0 comments on commit 89e4786

Please sign in to comment.