diff --git a/build.gradle b/build.gradle
index 7448fb5de2f85034754289a06abd3992264e779c..5c7989acd814d90b56dc1095f0af9bb0e5e418c0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -17,9 +17,11 @@ project.targetCompatibility = '1.7'
 
 repositories {
 	mavenCentral()
-	maven {
-		name "sonatype snapshots"
-		url "https://oss.sonatype.org/content/repositories/snapshots"
+	if (isSnapshot) {
+		maven {
+			name "sonatype snapshots"
+			url "https://oss.sonatype.org/content/repositories/snapshots"
+		}
 	}
 }