Преглед на файлове

1.增加版本改动说明
2.部署构件到snowheart私服

刘万想 преди 7 години
родител
ревизия
69f2f9207c
променени са 3 файла, в които са добавени 111 реда и са изтрити 13 реда
  1. 3 1
      README.md
  2. 106 12
      pom.xml
  3. 2 0
      spring-boot-dingtalk-robot-starter/src/main/resources/RELEASE.note

+ 3 - 1
README.md

@@ -47,4 +47,6 @@ public class DemoApplication {
 ...
 
 ### Note
-如果你发现了程序BUG或者有其他好的建议,可以通过发邮件[**sxjwzxlwx@yeah.net**]或者Issues的方式联系我,不胜感激。
+如果你发现了程序BUG或者有其他好的建议,可以通过发邮件[**sxjwzxlwx@yeah.net**]或者Issues的方式联系我,不胜感激。
+
+- 折腾了小半天,实在没办法提交到中央仓库,总是报错。无奈只能现行发布到自己的[私服](http://nexus.snowheart.cn/nexus),之后再研究怎么往中央仓库发布。

+ 106 - 12
pom.xml

@@ -14,6 +14,10 @@
         <module>dingtalk-robot-demo</module>
     </modules>
 
+    <name>dingtalk-robot</name>
+    <url>https://gitee.com/snowheart/dingtalk-robot.git</url>
+    <description>一个用Java打造的方便钉钉群机器人推送消息的轮子</description>
+
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -21,17 +25,107 @@
         <spring-boot-version>1.5.9.RELEASE</spring-boot-version>
     </properties>
 
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.8</source>
-                    <target>1.8</target>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
+    <profiles>
+        <profile>
+            <id>release</id>
+            <build>
+                <plugins>
+                    <!-- Source -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-source-plugin</artifactId>
+                        <version>2.2.1</version>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>jar-no-fork</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <!-- Javadoc -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-javadoc-plugin</artifactId>
+                        <version>2.9.1</version>
+                        <executions>
+                            <execution>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>jar</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <!-- GPG -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <version>1.5</version>
+                        <executions>
+                            <execution>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <!--Compiler-->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-compiler-plugin</artifactId>
+                        <version>3.0</version>
+                        <configuration>
+                            <source>1.7</source>
+                            <target>1.7</target>
+                            <fork>true</fork>
+                            <verbose>true</verbose>
+                            <encoding>UTF-8</encoding>
+                            <showWarnings>false</showWarnings>
+                        </configuration>
+                    </plugin>
+                    <!--Release-->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-release-plugin</artifactId>
+                        <version>2.5.1</version>
+                    </plugin>
+                </plugins>
+            </build>
+            <distributionManagement>
+                <snapshotRepository>
+                    <id>snowheart</id>
+                    <url>http://nexus.snowheart.cn/nexus/content/repositories/snapshots/</url>
+                </snapshotRepository>
+                <repository>
+                    <id>snowheart</id>
+                    <url>http://nexus.snowheart.cn/nexus/content/repositories/releases/</url>
+                </repository>
+            </distributionManagement>
+        </profile>
+    </profiles>
+
+    <licenses>
+        <license>
+            <name>GNU GENERAL PUBLIC LICENSE, Version 3</name>
+            <url>https://gitee.com/snowheart/dingtalk-robot/blob/master/LICENSE</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
+    <scm>
+        <tag>master</tag>
+        <url>git@gitee.com:snowheart/dingtalk-robot.git</url>
+        <connection>scm:git:git@gitee.com:snowheart/dingtalk-robot.git</connection>
+        <developerConnection>scm:git:git@gitee.com:snowheart/dingtalk-robot.git</developerConnection>
+    </scm>
+    <developers>
+        <developer>
+            <name>Wanxiang Liu</name>
+            <email>sxjwzxlwx@yeah.net</email>
+            <organization>snowheart</organization>
+        </developer>
+    </developers>
 
 </project>

+ 2 - 0
spring-boot-dingtalk-robot-starter/src/main/resources/RELEASE.note

@@ -0,0 +1,2 @@
+### 1.0.0.RELEASE
+初步实现钉钉机器人功能