|
19 | 19 | <name>CozeLoop Java SDK - Core</name> |
20 | 20 | <description>Core module of CozeLoop Java SDK</description> |
21 | 21 |
|
| 22 | + <licenses> |
| 23 | + <license> |
| 24 | + <name>MIT License</name> |
| 25 | + <url>https://github.com/coze-dev/cozeloop-java/blob/main/LICENSE</url> |
| 26 | + </license> |
| 27 | + </licenses> |
| 28 | + |
22 | 29 | <dependencies> |
23 | 30 | <!-- OpenTelemetry --> |
24 | 31 | <dependency> |
|
149 | 156 | </dependency> |
150 | 157 | </dependencies> |
151 | 158 |
|
| 159 | + <distributionManagement> |
| 160 | + <snapshotRepository> |
| 161 | + <id>ossrh</id> |
| 162 | + <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
| 163 | + </snapshotRepository> |
| 164 | + <repository> |
| 165 | + <id>ossrh</id> |
| 166 | + <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url> |
| 167 | + </repository> |
| 168 | + </distributionManagement> |
| 169 | + |
| 170 | + |
| 171 | + |
152 | 172 | <build> |
| 173 | + <resources> |
| 174 | + <resource> |
| 175 | + <directory>src/main/resources</directory> |
| 176 | + <filtering>true</filtering> |
| 177 | + <includes> |
| 178 | + <include>**/version.properties</include> |
| 179 | + </includes> |
| 180 | + </resource> |
| 181 | + </resources> |
153 | 182 | <plugins> |
| 183 | + |
| 184 | + <!-- Javadoc plugin --> |
154 | 185 | <plugin> |
155 | 186 | <groupId>org.apache.maven.plugins</groupId> |
156 | | - <artifactId>maven-compiler-plugin</artifactId> |
| 187 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 188 | + <version>3.12.0</version> |
| 189 | + <configuration> |
| 190 | + <doclint>none</doclint> |
| 191 | + <source>8</source> |
| 192 | + <additionalJOptions> |
| 193 | + <additionalJOption>-Xdoclint:none</additionalJOption> |
| 194 | + </additionalJOptions> |
| 195 | + </configuration> |
| 196 | + <executions> |
| 197 | + <execution> |
| 198 | + <id>attach-javadocs</id> |
| 199 | + <goals> |
| 200 | + <goal>jar</goal> |
| 201 | + </goals> |
| 202 | + </execution> |
| 203 | + </executions> |
157 | 204 | </plugin> |
158 | 205 | <plugin> |
159 | 206 | <groupId>org.apache.maven.plugins</groupId> |
160 | | - <artifactId>maven-surefire-plugin</artifactId> |
| 207 | + <artifactId>maven-compiler-plugin</artifactId> |
| 208 | + <version>3.13.0</version> |
| 209 | + <configuration> |
| 210 | + <source>1.8</source> |
| 211 | + <target>1.8</target> |
| 212 | + <encoding>UTF-8</encoding> |
| 213 | + <showWarnings>true</showWarnings> |
| 214 | + <showDeprecation>true</showDeprecation> |
| 215 | + <verbose>true</verbose> |
| 216 | + <fork>true</fork> |
| 217 | + <compilerArgs> |
| 218 | + <arg>-verbose</arg> |
| 219 | + <arg>-Xlint:all</arg> |
| 220 | + </compilerArgs> |
| 221 | + <annotationProcessorPaths> |
| 222 | + <path> |
| 223 | + <groupId>org.projectlombok</groupId> |
| 224 | + <artifactId>lombok</artifactId> |
| 225 | + <version>1.18.24</version> |
| 226 | + </path> |
| 227 | + </annotationProcessorPaths> |
| 228 | + </configuration> |
161 | 229 | </plugin> |
| 230 | + |
162 | 231 | <plugin> |
163 | 232 | <groupId>org.apache.maven.plugins</groupId> |
164 | 233 | <artifactId>maven-source-plugin</artifactId> |
| 234 | + <version>3.3.0</version> |
| 235 | + <executions> |
| 236 | + <execution> |
| 237 | + <id>attach-sources</id> |
| 238 | + <goals> |
| 239 | + <goal>jar</goal> |
| 240 | + </goals> |
| 241 | + </execution> |
| 242 | + </executions> |
165 | 243 | </plugin> |
| 244 | + |
| 245 | + <plugin> |
| 246 | + <groupId>org.jacoco</groupId> |
| 247 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 248 | + <version>0.8.11</version> |
| 249 | + <executions> |
| 250 | + <execution> |
| 251 | + <id>prepare-agent</id> |
| 252 | + <goals> |
| 253 | + <goal>prepare-agent</goal> |
| 254 | + </goals> |
| 255 | + </execution> |
| 256 | + <execution> |
| 257 | + <id>report</id> |
| 258 | + <phase>test</phase> |
| 259 | + <goals> |
| 260 | + <goal>report</goal> |
| 261 | + </goals> |
| 262 | + </execution> |
| 263 | + </executions> |
| 264 | + </plugin> |
| 265 | + |
166 | 266 | <plugin> |
167 | 267 | <groupId>org.apache.maven.plugins</groupId> |
168 | | - <artifactId>maven-javadoc-plugin</artifactId> |
| 268 | + <artifactId>maven-surefire-plugin</artifactId> |
| 269 | + <version>3.2.5</version> |
| 270 | + <configuration> |
| 271 | + <includes> |
| 272 | + <include>**/*Test.java</include> |
| 273 | + </includes> |
| 274 | + <useSystemClassLoader>false</useSystemClassLoader> |
| 275 | + <forkCount>1</forkCount> |
| 276 | + <reuseForks>true</reuseForks> |
| 277 | + <argLine>@{argLine}</argLine> |
| 278 | + <systemPropertyVariables> |
| 279 | + <okhttp.platform>jdk-8</okhttp.platform> |
| 280 | + <java.security.egd>file:/dev/urandom</java.security.egd> |
| 281 | + <javax.net.ssl.trustStore>${java.home}/lib/security/cacerts</javax.net.ssl.trustStore> |
| 282 | + <javax.net.ssl.trustStorePassword>changeit</javax.net.ssl.trustStorePassword> |
| 283 | + </systemPropertyVariables> |
| 284 | + </configuration> |
169 | 285 | </plugin> |
| 286 | + |
170 | 287 | </plugins> |
171 | 288 | </build> |
| 289 | + |
| 290 | + <profiles> |
| 291 | + <profile> |
| 292 | + <id>release</id> |
| 293 | + <activation> |
| 294 | + <property> |
| 295 | + <name>performRelease</name> |
| 296 | + <value>true</value> |
| 297 | + </property> |
| 298 | + </activation> |
| 299 | + <build> |
| 300 | + <plugins> |
| 301 | + <plugin> |
| 302 | + <groupId>org.apache.maven.plugins</groupId> |
| 303 | + <artifactId>maven-gpg-plugin</artifactId> |
| 304 | + <version>3.2.5</version> |
| 305 | + <configuration> |
| 306 | + <gpgArguments> |
| 307 | + <arg>--pinentry-mode</arg> |
| 308 | + <arg>loopback</arg> |
| 309 | + </gpgArguments> |
| 310 | + </configuration> |
| 311 | + <executions> |
| 312 | + <execution> |
| 313 | + <id>sign-artifacts</id> |
| 314 | + <phase>verify</phase> |
| 315 | + <goals> |
| 316 | + <goal>sign</goal> |
| 317 | + </goals> |
| 318 | + <configuration> |
| 319 | + <gpgArguments> |
| 320 | + <arg>--pinentry-mode</arg> |
| 321 | + <arg>loopback</arg> |
| 322 | + </gpgArguments> |
| 323 | + </configuration> |
| 324 | + </execution> |
| 325 | + </executions> |
| 326 | + </plugin> |
| 327 | + |
| 328 | + <plugin> |
| 329 | + <groupId>org.sonatype.central</groupId> |
| 330 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 331 | + <version>0.5.0</version> |
| 332 | + <extensions>true</extensions> |
| 333 | + <configuration> |
| 334 | + <publishingServerId>central</publishingServerId> |
| 335 | + <autoPublish>true</autoPublish> |
| 336 | + </configuration> |
| 337 | + </plugin> |
| 338 | + </plugins> |
| 339 | + </build> |
| 340 | + </profile> |
| 341 | + </profiles> |
| 342 | + |
172 | 343 | </project> |
173 | 344 |
|
0 commit comments