|
11 | 11 | <parent> |
12 | 12 | <groupId>org.springframework.boot</groupId> |
13 | 13 | <artifactId>spring-boot-starter-parent</artifactId> |
14 | | - <version>2.4.2</version> |
| 14 | + <version>2.5.4</version> |
15 | 15 | <relativePath/> <!-- lookup parent from repository --> |
16 | 16 | </parent> |
17 | 17 |
|
|
21 | 21 |
|
22 | 22 | <name>springboot-starter-leaf-parent</name> |
23 | 23 | <description>springboot-starter-leaf-parent project for Spring Boot</description> |
24 | | - |
25 | | - |
26 | | - <developers> |
27 | | - <developer> |
28 | | - <email>wangliang@codingapi.com</email> |
29 | | - <id>lorne</id> |
30 | | - </developer> |
31 | | - </developers> |
32 | | - |
33 | 24 | <url>https://gitlab.laiease.com/framework/springboot-starter-leaf</url> |
34 | 25 |
|
35 | 26 |
|
36 | 27 | <properties> |
37 | 28 | <java.version>1.8</java.version> |
38 | 29 |
|
| 30 | + <!-- maven properties--> |
| 31 | + <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format> |
| 32 | + <maven.compile.source>1.8</maven.compile.source> |
| 33 | + <maven.compile.target>1.8</maven.compile.target> |
| 34 | + <maven.source.plugin>3.0.1</maven.source.plugin> |
| 35 | + <maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version> |
| 36 | + <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> |
| 37 | + <maven.javadoc.plugin>2.10.3</maven.javadoc.plugin> |
| 38 | + <nexus.staging.maven.plugin>1.6.3</nexus.staging.maven.plugin> |
| 39 | + |
39 | 40 | <mybatis.version>3.5.4</mybatis.version> |
40 | 41 | <perf4j.version>0.9.16</perf4j.version> |
41 | 42 | <curator.version>2.6.0</curator.version> |
42 | 43 | <commons-io.version>2.4</commons-io.version> |
43 | 44 |
|
44 | 45 | <com.alibaba-fastjson.version>1.2.75</com.alibaba-fastjson.version> |
45 | 46 | <com.alibaba-druid.version>1.2.6</com.alibaba-druid.version> |
| 47 | + <org.reflections.version>0.10.2</org.reflections.version> |
46 | 48 | <com.codingapi.leaf.framework.version>0.0.1</com.codingapi.leaf.framework.version> |
47 | 49 | </properties> |
48 | 50 |
|
| 51 | + |
| 52 | + |
49 | 53 | <dependencies> |
50 | 54 |
|
51 | 55 | <dependency> |
|
68 | 72 |
|
69 | 73 | </dependencies> |
70 | 74 |
|
| 75 | + |
71 | 76 | <dependencyManagement> |
72 | 77 | <dependencies> |
| 78 | + |
| 79 | + <dependency> |
| 80 | + <groupId>org.reflections</groupId> |
| 81 | + <artifactId>reflections</artifactId> |
| 82 | + <version>${org.reflections.version}</version> |
| 83 | + </dependency> |
| 84 | + |
73 | 85 | <dependency> |
74 | 86 | <groupId>com.alibaba</groupId> |
75 | 87 | <artifactId>fastjson</artifactId> |
|
122 | 134 | </dependencies> |
123 | 135 | </dependencyManagement> |
124 | 136 |
|
125 | | - |
126 | 137 | <build> |
127 | 138 | <plugins> |
128 | 139 | <plugin> |
129 | 140 | <groupId>org.apache.maven.plugins</groupId> |
130 | 141 | <artifactId>maven-compiler-plugin</artifactId> |
131 | | - <version>${maven-compiler-plugin.version}</version> |
132 | 142 | <configuration> |
133 | | - <source>1.8</source> |
134 | | - <target>1.8</target> |
135 | | - <encoding>UTF-8</encoding> |
| 143 | + <source>${maven.compile.source}</source> |
| 144 | + <target>${maven.compile.target}</target> |
| 145 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 146 | + <compilerArgument>-Xlint:deprecation</compilerArgument> |
136 | 147 | </configuration> |
137 | 148 | </plugin> |
138 | | - <plugin> |
139 | | - <groupId>org.apache.maven.plugins</groupId> |
140 | | - <artifactId>maven-source-plugin</artifactId> |
141 | | - <version>${maven-source-plugin.version}</version> |
142 | | - <executions> |
143 | | - <execution> |
144 | | - <id>attach-sources</id> |
145 | | - <goals> |
146 | | - <goal>jar</goal> |
147 | | - </goals> |
148 | | - </execution> |
149 | | - </executions> |
150 | | - </plugin> |
151 | | - |
152 | 149 | </plugins> |
153 | 150 | </build> |
154 | 151 |
|
| 152 | + <distributionManagement> |
| 153 | + <repository> |
| 154 | + <id>ossrh</id> |
| 155 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 156 | + </repository> |
| 157 | + </distributionManagement> |
| 158 | + |
| 159 | + <scm> |
| 160 | + <connection>scm:git:https://github.com/codingapi/springboot-starter-leaf.git</connection> |
| 161 | + <developerConnection>scm:git:https://github.com/codingapi/springboot-starter-leaf.git</developerConnection> |
| 162 | + <url>https://github.com/codingapi/springboot-starter-leaf</url> |
| 163 | + <tag>v${project.version}</tag> |
| 164 | + </scm> |
| 165 | + |
| 166 | + <licenses> |
| 167 | + <license> |
| 168 | + <name>The Apache License, Version 2.0</name> |
| 169 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 170 | + </license> |
| 171 | + </licenses> |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + <developers> |
| 176 | + <developer> |
| 177 | + <name>lorne</name> |
| 178 | + <email>wangliang@codingapi.com</email> |
| 179 | + <roles> |
| 180 | + <role>developer</role> |
| 181 | + </roles> |
| 182 | + <timezone>+8</timezone> |
| 183 | + </developer> |
| 184 | + </developers> |
| 185 | + |
| 186 | + <profiles> |
| 187 | + <profile> |
| 188 | + <id>dev</id> |
| 189 | + <activation> |
| 190 | + <activeByDefault>true</activeByDefault> |
| 191 | + </activation> |
| 192 | + </profile> |
| 193 | + |
| 194 | + <!-- mvn clean test -P travis--> |
| 195 | + <profile> |
| 196 | + <id>travis</id> |
| 197 | + |
| 198 | + <build> |
| 199 | + <plugins> |
| 200 | + <plugin> |
| 201 | + <groupId>org.jacoco</groupId> |
| 202 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 203 | + <version>0.8.5</version> |
| 204 | + <executions> |
| 205 | + <execution> |
| 206 | + <goals> |
| 207 | + <goal>prepare-agent</goal> |
| 208 | + </goals> |
| 209 | + </execution> |
| 210 | + <execution> |
| 211 | + <id>report</id> |
| 212 | + <phase>test</phase> |
| 213 | + <goals> |
| 214 | + <goal>report</goal> |
| 215 | + </goals> |
| 216 | + </execution> |
| 217 | + </executions> |
| 218 | + </plugin> |
| 219 | + |
| 220 | + <plugin> |
| 221 | + <groupId>org.openclover</groupId> |
| 222 | + <artifactId>clover-maven-plugin</artifactId> |
| 223 | + <version>4.4.1</version> |
| 224 | + <configuration> |
| 225 | + <generateHtml>true</generateHtml> |
| 226 | + <generateXml>true</generateXml> |
| 227 | + </configuration> |
| 228 | + </plugin> |
| 229 | + |
| 230 | + </plugins> |
| 231 | + </build> |
| 232 | + </profile> |
| 233 | + |
| 234 | + <profile> |
| 235 | + <!-- mvn clean deploy -P ossrh --> |
| 236 | + <id>ossrh</id> |
| 237 | + |
| 238 | + <modules> |
| 239 | + <module>springboot-starter-leaf</module> |
| 240 | + </modules> |
| 241 | + |
| 242 | + |
| 243 | + <properties> |
| 244 | + <repository.id>ossrh</repository.id> |
| 245 | + <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format> |
| 246 | + <maven.compile.source>1.8</maven.compile.source> |
| 247 | + <maven.compile.target>1.8</maven.compile.target> |
| 248 | + <maven.source.plugin>3.0.1</maven.source.plugin> |
| 249 | + <nexus.staging.maven.plugin>1.6.3</nexus.staging.maven.plugin> |
| 250 | + <maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version> |
| 251 | + <maven.javadoc.plugin>2.10.3</maven.javadoc.plugin> |
| 252 | + <maven.gpg.plugin>1.6</maven.gpg.plugin> |
| 253 | + </properties> |
| 254 | + <build> |
| 255 | + <plugins> |
| 256 | + |
| 257 | + <plugin> |
| 258 | + <groupId>org.apache.maven.plugins</groupId> |
| 259 | + <artifactId>maven-compiler-plugin</artifactId> |
| 260 | + <configuration> |
| 261 | + <source>${maven.compile.source}</source> |
| 262 | + <target>${maven.compile.target}</target> |
| 263 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 264 | + <compilerArgument>-Xlint:deprecation</compilerArgument> |
| 265 | + </configuration> |
| 266 | + </plugin> |
| 267 | + <plugin> |
| 268 | + <groupId>org.apache.maven.plugins</groupId> |
| 269 | + <artifactId>maven-source-plugin</artifactId> |
| 270 | + <executions> |
| 271 | + <execution> |
| 272 | + <id>attach-sources</id> |
| 273 | + <goals> |
| 274 | + <goal>jar-no-fork</goal> |
| 275 | + </goals> |
| 276 | + </execution> |
| 277 | + </executions> |
| 278 | + </plugin> |
| 279 | + |
| 280 | + |
| 281 | + <plugin> |
| 282 | + <groupId>org.sonatype.plugins</groupId> |
| 283 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 284 | + <extensions>true</extensions> |
| 285 | + <configuration> |
| 286 | + <serverId>ossrh</serverId> |
| 287 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 288 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 289 | + </configuration> |
| 290 | + </plugin> |
| 291 | + |
| 292 | + |
| 293 | + <plugin> |
| 294 | + <groupId>org.apache.maven.plugins</groupId> |
| 295 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 296 | + <executions> |
| 297 | + <execution> |
| 298 | + <id>attach-javadocs</id> |
| 299 | + <goals> |
| 300 | + <goal>jar</goal> |
| 301 | + </goals> |
| 302 | + </execution> |
| 303 | + </executions> |
| 304 | + <configuration> |
| 305 | + <additionalOptions> |
| 306 | + <additionalOption>-Xdoclint:none</additionalOption> |
| 307 | + </additionalOptions> |
| 308 | + </configuration> |
| 309 | + </plugin> |
| 310 | + |
| 311 | + |
| 312 | + <plugin> |
| 313 | + <groupId>org.apache.maven.plugins</groupId> |
| 314 | + <artifactId>maven-gpg-plugin</artifactId> |
| 315 | + <executions> |
| 316 | + <execution> |
| 317 | + <id>sign-artifacts</id> |
| 318 | + <phase>verify</phase> |
| 319 | + <goals> |
| 320 | + <goal>sign</goal> |
| 321 | + </goals> |
| 322 | + </execution> |
| 323 | + </executions> |
| 324 | + </plugin> |
| 325 | + |
| 326 | + </plugins> |
| 327 | + </build> |
| 328 | + </profile> |
| 329 | + |
| 330 | + |
| 331 | + </profiles> |
| 332 | + |
| 333 | + |
155 | 334 | </project> |
0 commit comments