Browse Source

增加快照仓库.

nieqiurong 2 months ago
parent
commit
1da47664ea
1 changed files with 10 additions and 0 deletions
  1. 10 0
      build.gradle

+ 10 - 0
build.gradle

@@ -189,6 +189,16 @@ subprojects {
                 name = "Local"
                 url = layout.buildDirectory.dir('repos/bundles')
             }
+            maven {
+                def userName = System.getProperty("un")
+                def passWord = System.getProperty("ps")
+                name = "snapshots"
+                url = "https://central.sonatype.com/repository/maven-snapshots/"
+                credentials {
+                    username userName
+                    password passWord
+                }
+            }
         }
 
         // use example : ./gradlew clean build publish publishToMavenCentralPortal -DauthToken='xxxxxx' -x test