浏览代码

增加快照仓库.

nieqiurong 2 月之前
父节点
当前提交
1da47664ea
共有 1 个文件被更改,包括 10 次插入0 次删除
  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