|
8 | 8 | <name>+ astra-db-java</name>
|
9 | 9 | <version>1.0.0-SNAPSHOT</version>
|
10 | 10 | <description>Java Client for Data API JAVA </description>
|
| 11 | + <url>https://github.com/datastax/astra-db-java</url> |
| 12 | + <inceptionYear>2024</inceptionYear> |
11 | 13 |
|
12 | 14 | <properties>
|
| 15 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 16 | + |
| 17 | + <!-- Sonar --> |
| 18 | + <sonar.organization>clun-datastax</sonar.organization> |
| 19 | + <sonar.host.url>https://sonarcloud.io</sonar.host.url> |
13 | 20 |
|
14 | 21 | <!-- Third Party Libraries -->
|
| 22 | + <devops-sdk.version>1.2.7</devops-sdk.version> |
15 | 23 | <slf4j.version>2.0.9</slf4j.version>
|
16 | 24 | <logback.version>1.5.0</logback.version>
|
17 | 25 | <jackson.version>2.16.2</jackson.version>
|
18 | 26 | <lombok.version>1.18.32</lombok.version>
|
19 |
| - <assertj.version>3.25.3</assertj.version> |
20 |
| - <devops-sdk.version>1.2.7</devops-sdk.version> |
21 | 27 | <retry4j.version>0.15.0</retry4j.version>
|
22 |
| - <junit-jupiter.version>5.10.2</junit-jupiter.version> |
23 | 28 | <uuid-generator.version>5.0.0</uuid-generator.version>
|
24 | 29 |
|
| 30 | + <!-- Test --> |
| 31 | + <test.skipped>false</test.skipped> |
| 32 | + <assertj.version>3.25.3</assertj.version> |
| 33 | + <junit-jupiter.version>5.10.2</junit-jupiter.version> |
| 34 | + |
25 | 35 | <!-- Maven -->
|
26 | 36 | <maven.plugin.compiler.source>11</maven.plugin.compiler.source>
|
27 | 37 | <maven.plugin.compiler.target>11</maven.plugin.compiler.target>
|
|
32 | 42 | <version.maven.plugin.jacoco>0.8.11</version.maven.plugin.jacoco>
|
33 | 43 | <version.maven.plugin.javadoc>3.5.0</version.maven.plugin.javadoc>
|
34 | 44 | <version.maven.plugin.jar>3.3.0</version.maven.plugin.jar>
|
| 45 | + <version.maven.plugin.license>2.3.0</version.maven.plugin.license> |
35 | 46 | <version.maven.plugin.nexus>1.6.13</version.maven.plugin.nexus>
|
36 | 47 | <version.maven.plugin.release>3.0.1</version.maven.plugin.release>
|
37 | 48 | <version.maven.plugin.resources>3.3.1</version.maven.plugin.resources>
|
|
127 | 138 | <!-- Client is JDK11+ -->
|
128 | 139 | <build>
|
129 | 140 | <plugins>
|
| 141 | + |
130 | 142 | <plugin>
|
131 | 143 | <groupId>org.sonatype.plugins</groupId>
|
132 | 144 | <artifactId>nexus-staging-maven-plugin</artifactId>
|
|
139 | 151 | <skipLocalStaging>true</skipLocalStaging>
|
140 | 152 | </configuration>
|
141 | 153 | </plugin>
|
| 154 | + |
142 | 155 | <plugin>
|
143 | 156 | <groupId>org.apache.maven.plugins</groupId>
|
144 | 157 | <artifactId>maven-gpg-plugin</artifactId>
|
145 | 158 | <version>${version.maven.plugin.gpg}</version>
|
146 | 159 | </plugin>
|
| 160 | + |
147 | 161 | <plugin>
|
148 | 162 | <groupId>org.apache.maven.plugins</groupId>
|
149 | 163 | <artifactId>maven-source-plugin</artifactId>
|
150 | 164 | <version>${version.maven.plugin.source}</version>
|
151 | 165 | <executions>
|
152 | 166 | <execution>
|
153 | 167 | <id>attach-sources</id>
|
154 |
| - |
155 | 168 | <goals>
|
156 |
| - |
157 | 169 | <goal>jar-no-fork</goal>
|
158 |
| - |
159 | 170 | </goals>
|
160 |
| - |
161 | 171 | </execution>
|
162 |
| - |
163 | 172 | </executions>
|
164 |
| - |
165 | 173 | </plugin>
|
| 174 | + |
166 | 175 | <plugin>
|
167 | 176 | <groupId>org.apache.maven.plugins</groupId>
|
168 | 177 | <artifactId>maven-release-plugin</artifactId>
|
|
175 | 184 | <goals>deploy</goals>
|
176 | 185 | </configuration>
|
177 | 186 | </plugin>
|
| 187 | + |
178 | 188 | <plugin>
|
179 | 189 | <groupId>org.apache.maven.plugins</groupId>
|
180 | 190 | <artifactId>maven-compiler-plugin</artifactId>
|
|
185 | 195 | <showWarnings>false</showWarnings>
|
186 | 196 | </configuration>
|
187 | 197 | </plugin>
|
| 198 | + |
188 | 199 | <plugin>
|
189 | 200 | <groupId>org.apache.maven.plugins</groupId>
|
190 | 201 | <artifactId>maven-surefire-plugin</artifactId>
|
191 | 202 | <version>${version.maven.plugin.surefire}</version>
|
192 | 203 | <configuration>
|
193 |
| - <skipTests>true</skipTests> |
| 204 | + <skipTests>${test.skipped}</skipTests> |
194 | 205 | </configuration>
|
195 | 206 | <dependencies>
|
196 | 207 | <dependency>
|
|
200 | 211 | </dependency>
|
201 | 212 | </dependencies>
|
202 | 213 | </plugin>
|
| 214 | + |
203 | 215 | <plugin>
|
204 | 216 | <groupId>org.apache.maven.plugins</groupId>
|
205 | 217 | <artifactId>maven-javadoc-plugin</artifactId>
|
|
216 | 228 | <source>${maven.plugin.compiler.source}</source>
|
217 | 229 | </configuration>
|
218 | 230 | </plugin>
|
| 231 | + |
219 | 232 | <plugin>
|
220 | 233 | <groupId>org.apache.maven.plugins</groupId>
|
221 | 234 | <artifactId>maven-dependency-plugin</artifactId>
|
222 | 235 | <version>${version.maven.plugin.dependency}</version>
|
223 | 236 | </plugin>
|
| 237 | + |
224 | 238 | <plugin>
|
225 | 239 | <groupId>org.apache.maven.plugins</groupId>
|
226 | 240 | <artifactId>maven-jar-plugin</artifactId>
|
|
234 | 248 | </archive>
|
235 | 249 | </configuration>
|
236 | 250 | </plugin>
|
| 251 | + |
237 | 252 | <plugin>
|
238 | 253 | <groupId>org.apache.maven.plugins</groupId>
|
239 | 254 | <artifactId>maven-resources-plugin</artifactId>
|
|
243 | 258 | <encoding>UTF-8</encoding>
|
244 | 259 | </configuration>
|
245 | 260 | </plugin>
|
246 |
| - |
247 | 261 | <plugin>
|
248 |
| - <groupId>org.jacoco</groupId> |
249 |
| - <artifactId>jacoco-maven-plugin</artifactId> |
250 |
| - <version>${version.maven.plugin.jacoco}</version> |
| 262 | + <groupId>org.codehaus.mojo</groupId> |
| 263 | + <artifactId>license-maven-plugin</artifactId> |
| 264 | + <version>${version.maven.plugin.license}</version> |
| 265 | + <configuration> |
| 266 | + <verbose>false</verbose> |
| 267 | + <extraExtensions> |
| 268 | + <myProprietaryExtension>java</myProprietaryExtension> |
| 269 | + </extraExtensions> |
| 270 | + </configuration> |
251 | 271 | <executions>
|
252 | 272 | <execution>
|
253 |
| - <id>default-prepare-agent</id> |
254 |
| - <goals> |
255 |
| - <goal>prepare-agent</goal> |
256 |
| - </goals> |
257 |
| - </execution> |
258 |
| - <execution> |
259 |
| - <id>default-prepare-agent-integration</id> |
260 |
| - <goals> |
261 |
| - <goal>prepare-agent-integration</goal> |
262 |
| - </goals> |
263 |
| - </execution> |
264 |
| - <execution> |
265 |
| - <id>default-report</id> |
266 |
| - <goals> |
267 |
| - <goal>report</goal> |
268 |
| - </goals> |
269 |
| - </execution> |
270 |
| - <execution> |
271 |
| - <id>default-report-integration</id> |
| 273 | + <id>add-license</id> |
272 | 274 | <goals>
|
273 |
| - <goal>report-integration</goal> |
| 275 | + <goal>update-file-header</goal> |
274 | 276 | </goals>
|
| 277 | + <phase>process-sources</phase> |
| 278 | + <configuration> |
| 279 | + <projectName>Data API Java Client</projectName> |
| 280 | + <organizationName>DataStax</organizationName> |
| 281 | + <licenseName>apache2</licenseName> |
| 282 | + <licenseResolver>${project.baseUri}/src/license</licenseResolver> |
| 283 | + <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage> |
| 284 | + <sectionDelimiter>--</sectionDelimiter> |
| 285 | + <roots> |
| 286 | + <root>src/main/java</root> |
| 287 | + </roots> |
| 288 | + </configuration> |
275 | 289 | </execution>
|
276 | 290 | </executions>
|
277 | 291 | </plugin>
|
|
332 | 346 | </profile>
|
333 | 347 | </profiles>
|
334 | 348 |
|
| 349 | + <!-- Organization --> |
| 350 | + <organization> |
| 351 | + <name>DataStax</name> |
| 352 | + <url>https://www.datastax.com</url> |
| 353 | + </organization> |
335 | 354 |
|
336 | 355 | <!-- Release the client with Apache License -->
|
337 | 356 | <licenses>
|
|
0 commit comments