diff --git a/build.gradle b/build.gradle index f20cb977..215790c3 100644 --- a/build.gradle +++ b/build.gradle @@ -39,6 +39,17 @@ jacocoTestCoverageVerification { } } } +configurations.all { + resolutionStrategy { + componentSelection { + all { ComponentSelection selection -> + if (selection.candidate.version =~ /(?i).*[.-](alpha|beta|rc|m)[.\d-]*/) { + selection.reject("Pre-release versions are not allowed") + } + } + } + } +} repositories { mavenCentral()