if (selection.candidate.version.contains(“SNAPSHOT”)) {
selection.reject(“Don’t use SNAPSHOT dependencies”)
}
}
}
}
}
Edit: You could also alternatively use the ‘latest.release’ version selector but it would additionally resolve to 1.3 if such a version existed, which may not be what you want.