Browse Source

发布仓库.

nieqiurong 8 years ago
parent
commit
579dd212f0
1 changed files with 14 additions and 0 deletions
  1. 14 0
      build.gradle

+ 14 - 0
build.gradle

@@ -59,6 +59,20 @@ artifacts {
     archives javadocJar
 }
 
+uploadArchives {
+    def repositoryUrl = "http://172.16.111.124:8081/nexus/content/repositories/releases/"
+    repositories {
+        mavenDeployer {
+            repository(url: "$repositoryUrl") {
+                authentication(userName: "deployment", password: "deployment123")
+            }
+            pom.version = "$project.version"
+            pom.artifactId = "$project.name"
+            pom.groupId = "$project.group"
+        }
+    }
+}
+
 def common = [
         "org.springframework:spring-tx:${springVersion}",
         "org.springframework:spring-jdbc:${springVersion}",