main.name.remal.gradle_plugins.dsl.extensions.org.gradle.api.artifacts.ResolvedArtifact.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugins-kotlin-dsl Show documentation
Show all versions of gradle-plugins-kotlin-dsl Show documentation
Remal Gradle plugins: gradle-plugins-kotlin-dsl
The newest version!
package name.remal.gradle_plugins.dsl.extensions
import name.remal.gradle_plugins.dsl.utils.DependencyNotation
import name.remal.gradle_plugins.dsl.utils.DependencyNotationMatcher
import name.remal.nullIf
import org.gradle.api.artifacts.DependencyArtifact
import org.gradle.api.artifacts.ResolvedArtifact
val ResolvedArtifact.notation
get() = DependencyNotation(
group = moduleVersion.id.group,
module = moduleVersion.id.name,
version = moduleVersion.id.version,
classifier = classifier,
extension = extension.nullIf { this == DependencyArtifact.DEFAULT_TYPE }
)
fun DependencyNotationMatcher.matches(resolvedArtifact: ResolvedArtifact) = matches(resolvedArtifact.notation)
fun DependencyNotationMatcher.notMatches(resolvedArtifact: ResolvedArtifact) = !matches(resolvedArtifact)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy