use of org.jetbrains.plugins.gradle.tooling.util.VersionMatcher in project intellij-community by JetBrains.
the class VersionMatcherRule method starting.
@Override
protected void starting(Description d) {
final TargetVersions targetVersions = d.getAnnotation(TargetVersions.class);
if (targetVersions == null)
return;
myMatcher = new CustomMatcher<String>("Gradle version '" + targetVersions.value() + "'") {
@Override
public boolean matches(Object item) {
return item instanceof String && new VersionMatcher(GradleVersion.version(item.toString())).isVersionMatch(targetVersions);
}
};
}
use of org.jetbrains.plugins.gradle.tooling.util.VersionMatcher in project kotlin by JetBrains.
the class VersionMatcherRule method starting.
@Override
protected void starting(Description d) {
final TargetVersions targetVersions = d.getAnnotation(TargetVersions.class);
if (targetVersions == null)
return;
myMatcher = new CustomMatcher<String>("Gradle version '" + targetVersions.value() + "'") {
@Override
public boolean matches(Object item) {
return item instanceof String && new VersionMatcher(GradleVersion.version(item.toString())).isVersionMatch(targetVersions);
}
};
}
Aggregations