Skip to content

Commit

Permalink
Fix snapshot check
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 28, 2024
1 parent 590e2f2 commit 7450dc7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.incendo.cloudbuildlogic

import org.gradle.api.artifacts.ModuleDependency
import org.gradle.api.artifacts.component.ModuleComponentIdentifier
import org.gradle.api.internal.artifacts.repositories.resolver.MavenUniqueSnapshotComponentIdentifier
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.MapProperty
import org.gradle.api.provider.Property
Expand Down Expand Up @@ -42,7 +43,7 @@ abstract class JavadocLinksExtension {
fun interface DependencyFilter : Predicate<ModuleComponentIdentifier> {
class NoSnapshots : DependencyFilter {
override fun test(t: ModuleComponentIdentifier): Boolean {
return !t.version.endsWith("-SNAPSHOT")
return t !is MavenUniqueSnapshotComponentIdentifier
}
}
}
Expand Down

0 comments on commit 7450dc7

Please sign in to comment.