Browse Source

调整maven身份校验

xielq 3 years ago
parent
commit
9658d5bf02
1 changed files with 15 additions and 3 deletions
  1. 15 3
      build.gradle

+ 15 - 3
build.gradle

@@ -9,7 +9,13 @@ buildscript {
     }
     repositories {
         maven { url "https://plugins.gradle.org/m2/" }
-        maven { url "https://maven.ubtob.net/artifactory/libs-release-local" }
+        maven { 
+		url "https://maven.ubtob.net/artifactory/libs-release-local"
+		credentials {
+                	username 'robin'
+               		password 'robin'
+            	}
+	      }
         maven { url "https://maven.ubtob.net/artifactory/libs-snapshot-local" }
         maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
         maven { url "https://repo.spring.io/libs-release" }
@@ -39,7 +45,13 @@ repositories {
     mavenLocal()
     maven { url "https://repo.spring.io/libs-milestone" }
     maven { url "https://repo.spring.io/libs-release" }
-    maven { url "https://maven.ubtob.net/artifactory/libs-release-local" }
+    maven {
+                url "https://maven.ubtob.net/artifactory/libs-release-local"
+                credentials {
+                        username 'robin'
+                        password 'robin'
+                }
+          }
     maven { url "https://maven.ubtob.net/artifactory/ext-release-local" }
     maven { url "https://maven.ubtob.net/artifactory/libs-snapshot-local" }
     maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
@@ -80,7 +92,7 @@ uploadArchives {
     repositories {
         mavenDeployer {
             repository(url: "https://maven.ubtob.net/artifactory/libs-release-local") {
-                authentication(userName: "yingp", password: "111111")
+                authentication(userName: "admin", password: "Admin2020yourkj2021")
             }
         }
     }