|
7 | 7 | <groupId>cn.xiaoandcai</groupId> |
8 | 8 | <artifactId>json-diff-parent</artifactId> |
9 | 9 | <!-- mvn clean deploy - -settings /Users/weidian/.m2/settings-out.xml --> |
10 | | - <version>3.1.2-RC1-RELEASE</version> |
| 10 | + <version>3.1.6-RC1-RELEASE</version> |
11 | 11 | <name>JsonDiff</name> |
12 | 12 | <url>https://gitee.com/local-li/json-diff</url> |
13 | 13 | <description>一款高性能的Json差异发现工具</description> |
|
17 | 17 | <module>json-diff-test</module> |
18 | 18 | <module>json-diff-common</module> |
19 | 19 | <module>json-diff</module> |
20 | | - <module>json-diff-impl</module> |
21 | 20 | </modules> |
22 | 21 |
|
23 | 22 | <properties> |
24 | 23 | <java.version>1.8</java.version> |
25 | 24 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
26 | 25 | <maven.compiler.source>1.8</maven.compiler.source> |
27 | 26 | <maven.compiler.target>1.8</maven.compiler.target> |
| 27 | + <maven-release-plugin.version>2.5.3</maven-release-plugin.version> |
28 | 28 | </properties> |
29 | 29 |
|
| 30 | + <scm> |
| 31 | + <connection>scm:git:${project.scm.url}</connection> |
| 32 | + <developerConnection>scm:git:${project.scm.url}</developerConnection> |
| 33 | + <url>git@github.com:codeleep/json-diff.git</url> |
| 34 | + <tag>HEAD</tag> |
| 35 | + </scm> |
| 36 | + |
30 | 37 | <dependencyManagement> |
31 | 38 | <dependencies> |
32 | 39 | <dependency> |
|
51 | 58 | </license> |
52 | 59 | </licenses> |
53 | 60 |
|
54 | | - <scm> |
55 | | - <url>https://gitee.com/local-li/json-diff</url> |
56 | | - <connection>https://gitee.com/local-li/json-diff.git</connection> |
57 | | - </scm> |
58 | | - |
59 | 61 | <developers> |
60 | 62 | <developer> |
61 | 63 | <name>codeleep</name> |
|
78 | 80 | </developers> |
79 | 81 |
|
80 | 82 |
|
| 83 | + <build> |
| 84 | + <plugins> |
| 85 | + <plugin> |
| 86 | + <groupId>org.apache.maven.plugins</groupId> |
| 87 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 88 | + <version>3.5.0</version> |
| 89 | + <configuration> |
| 90 | + <doclint>none</doclint> <!-- Turnoff all checks --> |
| 91 | + </configuration> |
| 92 | + <executions> |
| 93 | + <execution> |
| 94 | + <id>attach-javadocs</id> |
| 95 | + <goals> |
| 96 | + <goal>jar</goal> |
| 97 | + </goals> |
| 98 | + </execution> |
| 99 | + </executions> |
| 100 | + </plugin> |
| 101 | + <plugin> |
| 102 | + <groupId>org.apache.maven.plugins</groupId> |
| 103 | + <artifactId>maven-source-plugin</artifactId> |
| 104 | + <version>3.1.0</version> |
| 105 | + <executions> |
| 106 | + <execution> |
| 107 | + <id>attach-sources</id> |
| 108 | + <phase>verify</phase> |
| 109 | + <goals> |
| 110 | + <goal>jar-no-fork</goal> |
| 111 | + </goals> |
| 112 | + </execution> |
| 113 | + </executions> |
| 114 | + </plugin> |
| 115 | + </plugins> |
| 116 | + </build> |
| 117 | + |
81 | 118 | <profiles> |
82 | 119 | <profile> |
83 | | - <id>ossrh</id> |
84 | | - <activation> |
85 | | - <activeByDefault>true</activeByDefault> |
86 | | - </activation> |
| 120 | + <id>release</id> |
87 | 121 | <build> |
88 | 122 | <plugins> |
89 | | - <!-- 要生成Javadoc和Source jar文件,您必须配置javadoc和源Maven插件 --> |
90 | | - <plugin> |
91 | | - <groupId>org.apache.maven.plugins</groupId> |
92 | | - <artifactId>maven-source-plugin</artifactId> |
93 | | - <version>2.2.1</version> |
94 | | - <executions> |
95 | | - <execution> |
96 | | - <id>attach-sources</id> |
97 | | - <goals> |
98 | | - <goal>jar-no-fork</goal> |
99 | | - </goals> |
100 | | - </execution> |
101 | | - </executions> |
102 | | - </plugin> |
103 | 123 | <plugin> |
104 | | - <groupId>org.apache.maven.plugins</groupId> |
105 | | - <artifactId>maven-javadoc-plugin</artifactId> |
106 | | - <version>2.10.4</version> |
107 | | - <executions> |
108 | | - <execution> |
109 | | - <phase>package</phase> |
110 | | - <goals> |
111 | | - <goal>jar</goal> |
112 | | - </goals> |
113 | | - <configuration> |
114 | | - <additionalparam>-Xdoclint:none</additionalparam> |
115 | | - </configuration> |
116 | | - </execution> |
117 | | - </executions> |
| 124 | + <groupId>org.sonatype.central</groupId> |
| 125 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 126 | + <version>0.4.0</version> |
| 127 | + <extensions>true</extensions> |
| 128 | + <configuration> |
| 129 | + <tokenAuth>true</tokenAuth> |
| 130 | + <autoPublish>true</autoPublish> |
| 131 | + <publishingServerId>${gpg.keyname}</publishingServerId> |
| 132 | + </configuration> |
118 | 133 | </plugin> |
119 | | - <!-- 必须配置GPG插件用于使用以下配置对组件进行签名 --> |
120 | 134 | <plugin> |
121 | 135 | <groupId>org.apache.maven.plugins</groupId> |
122 | 136 | <artifactId>maven-gpg-plugin</artifactId> |
123 | | - <version>1.6</version> |
| 137 | + <version>3.1.0</version> |
124 | 138 | <executions> |
125 | 139 | <execution> |
126 | 140 | <id>sign-artifacts</id> |
127 | 141 | <phase>verify</phase> |
128 | 142 | <goals> |
129 | 143 | <goal>sign</goal> |
130 | 144 | </goals> |
| 145 | + <configuration> |
| 146 | + <gpgArguments> |
| 147 | + <arg>--pinentry-mode</arg> |
| 148 | + <arg>loopback</arg> |
| 149 | + </gpgArguments> |
| 150 | + <keyname>${gpg.keyname}</keyname> |
| 151 | + <passphraseServerId>${gpg.keyname}</passphraseServerId> |
| 152 | + </configuration> |
131 | 153 | </execution> |
132 | 154 | </executions> |
133 | 155 | </plugin> |
134 | 156 | </plugins> |
135 | 157 | </build> |
136 | | - <!-- 【注】snapshotRepository 与 repository 中的 id 一定要与 setting.xml 中 server 的 id 保持一致! --> |
137 | | - <distributionManagement> |
138 | | - <snapshotRepository> |
139 | | - <id>json-diff</id> |
140 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
141 | | - </snapshotRepository> |
142 | | - <repository> |
143 | | - <id>json-diff</id> |
144 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
145 | | - </repository> |
146 | | - </distributionManagement> |
147 | 158 | </profile> |
148 | 159 | </profiles> |
149 | | - <build> |
150 | | - <plugins> |
151 | | -<!-- <plugin>--> |
152 | | -<!-- <groupId>org.springframework.boot</groupId>--> |
153 | | -<!-- <artifactId>spring-boot-maven-plugin</artifactId>--> |
154 | | -<!-- </plugin>--> |
155 | | - <plugin> |
156 | | - <groupId>org.apache.maven.plugins</groupId> |
157 | | - <artifactId>maven-compiler-plugin</artifactId> |
158 | | - <version>3.10.1</version> |
159 | | - <configuration> |
160 | | - <source>1.8</source> |
161 | | - <target>1.8</target> |
162 | | - </configuration> |
163 | | - </plugin> |
164 | | - |
165 | | - <plugin> |
166 | | - <groupId>org.apache.maven.plugins</groupId> |
167 | | - <artifactId>maven-gpg-plugin</artifactId> |
168 | | - <version>1.6</version> |
169 | | - <executions> |
170 | | - <execution> |
171 | | - <id>sign-artifacts</id> |
172 | | - <phase>verify</phase> |
173 | | - <goals> |
174 | | - <goal>sign</goal> |
175 | | - </goals> |
176 | | - </execution> |
177 | | - </executions> |
178 | | - <configuration> |
179 | | - <keyname>${gpg.keyname}</keyname> |
180 | | - <passphrase>${gpg.passphrase}</passphrase> |
181 | | - </configuration> |
182 | | - </plugin> |
183 | | - </plugins> |
184 | | - </build> |
185 | 160 |
|
186 | 161 | </project> |
0 commit comments