Browse Source

Use artifactoryUsername/Password for plugin repositories

Rob Winch 4 years ago
parent
commit
03c2cc846d
1 changed files with 9 additions and 1 deletions
  1. 9 1
      build.gradle

+ 9 - 1
build.gradle

@@ -6,7 +6,15 @@ buildscript {
 		classpath "io.freefair.gradle:aspectj-plugin:4.0.2"
 	}
 	repositories {
-		maven { url 'https://repo.spring.io/plugins-snapshot' }
+		maven {
+			url = 'https://repo.spring.io/plugins-snapshot'
+			if (project.hasProperty('artifactoryUsername')) {
+				credentials {
+					username "$artifactoryUsername"
+					password "$artifactoryPassword"
+				}
+			}
+		}
 		maven { url 'https://plugins.gradle.org/m2/' }
 	}
 }