|
238 | 238 | </configuration>
|
239 | 239 | </plugin>
|
240 | 240 |
|
241 |
| - <!-- skips deployment of submodule artifact if already in repo --> |
242 |
| - <plugin> |
243 |
| - <groupId>org.honton.chas</groupId> |
244 |
| - <artifactId>exists-maven-plugin</artifactId> |
245 |
| - <version>0.14.0</version> |
246 |
| - <executions> |
247 |
| - <execution> |
248 |
| - <goals> |
249 |
| - <goal>remote</goal> |
250 |
| - </goals> |
251 |
| - </execution> |
252 |
| - </executions> |
253 |
| - <configuration> |
254 |
| - <skip>${maven.deploy.skip}</skip> |
255 |
| - <repository>https://s01.oss.sonatype.org/service/local/repositories/releases/content</repository> |
256 |
| - <snapshotRepository>https://s01.oss.sonatype.org/content/repositories/snapshots</snapshotRepository> |
257 |
| - <snapshotServerId>ossrh</snapshotServerId> |
258 |
| - </configuration> |
259 |
| - </plugin> |
260 |
| - |
261 |
| - <!-- Begin source & javadocs being generated --> |
262 |
| - <plugin> |
263 |
| - <groupId>org.apache.maven.plugins</groupId> |
264 |
| - <artifactId>maven-source-plugin</artifactId> |
265 |
| - <version>3.3.1</version> |
266 |
| - <executions> |
267 |
| - <execution> |
268 |
| - <id>attach-sources</id> |
269 |
| - <goals> |
270 |
| - <goal>jar-no-fork</goal> |
271 |
| - </goals> |
272 |
| - </execution> |
273 |
| - </executions> |
274 |
| - </plugin> |
275 |
| - <plugin> |
276 |
| - <groupId>org.apache.maven.plugins</groupId> |
277 |
| - <artifactId>maven-javadoc-plugin</artifactId> |
278 |
| - <version>3.11.2</version> |
279 |
| - <configuration> |
280 |
| - <failOnWarnings>${javadoc.failOnWarnings}</failOnWarnings> |
281 |
| - <sourceFileExcludes> |
282 |
| - <sourceFileExclude>**/GoFeatureFlagProviderOptions.java</sourceFileExclude> |
283 |
| - </sourceFileExcludes> |
284 |
| - <excludePackageNames> |
285 |
| - dev.openfeature.flagd.grpc,dev.openfeature.contrib.providers.gofeatureflag.exception,dev.openfeature.contrib.providers.gofeatureflag.bean |
286 |
| - </excludePackageNames> |
287 |
| - <doclint>all,-missing |
288 |
| - </doclint> <!-- ignore missing javadoc, these are enforced with more customizability in the checkstyle plugin --> |
289 |
| - <legacyMode>true</legacyMode> |
290 |
| - </configuration> |
291 |
| - <executions> |
292 |
| - <execution> |
293 |
| - <id>attach-javadocs</id> |
294 |
| - <phase>verify</phase> |
295 |
| - <goals> |
296 |
| - <goal>jar</goal> |
297 |
| - </goals> |
298 |
| - </execution> |
299 |
| - </executions> |
300 |
| - </plugin> |
301 |
| - <!-- end source & javadoc --> |
302 |
| - |
303 |
| - <!-- SBOM generation --> |
304 |
| - <plugin> |
305 |
| - <groupId>org.cyclonedx</groupId> |
306 |
| - <artifactId>cyclonedx-maven-plugin</artifactId> |
307 |
| - <version>2.9.1</version> |
308 |
| - <configuration> |
309 |
| - <projectType>library</projectType> |
310 |
| - <schemaVersion>1.3</schemaVersion> |
311 |
| - <includeBomSerialNumber>true</includeBomSerialNumber> |
312 |
| - <includeCompileScope>true</includeCompileScope> |
313 |
| - <includeProvidedScope>true</includeProvidedScope> |
314 |
| - <includeRuntimeScope>true</includeRuntimeScope> |
315 |
| - <includeSystemScope>true</includeSystemScope> |
316 |
| - <includeTestScope>false</includeTestScope> |
317 |
| - <includeLicenseText>false</includeLicenseText> |
318 |
| - <outputFormat>all</outputFormat> |
319 |
| - </configuration> |
320 |
| - <executions> |
321 |
| - <execution> |
322 |
| - <phase>package</phase> |
323 |
| - <goals> |
324 |
| - <!-- "makeAggregateBom" pollutes each module with the deps of other modules, so we use "makeBom" --> |
325 |
| - <goal>makeBom</goal> |
326 |
| - </goals> |
327 |
| - </execution> |
328 |
| - </executions> |
329 |
| - </plugin> |
330 |
| - |
331 |
| - <!-- sign the jars --> |
332 |
| - <plugin> |
333 |
| - <groupId>org.apache.maven.plugins</groupId> |
334 |
| - <artifactId>maven-gpg-plugin</artifactId> |
335 |
| - <version>3.2.7</version> |
336 |
| - <executions> |
337 |
| - <execution> |
338 |
| - <id>sign-artifacts</id> |
339 |
| - <phase>install</phase> |
340 |
| - <goals> |
341 |
| - <goal>sign</goal> |
342 |
| - </goals> |
343 |
| - </execution> |
344 |
| - </executions> |
345 |
| - </plugin> |
346 |
| - <!-- end sign --> |
347 |
| - |
348 |
| - <!-- Begin publish to maven central --> |
349 |
| - <plugin> |
350 |
| - <groupId>org.sonatype.plugins</groupId> |
351 |
| - <artifactId>nexus-staging-maven-plugin</artifactId> |
352 |
| - <version>1.7.0</version> |
353 |
| - <extensions>true</extensions> |
354 |
| - <configuration> |
355 |
| - <serverId>ossrh</serverId> |
356 |
| - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
357 |
| - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
358 |
| - <skipNexusStagingDeployMojo>${maven.deploy.skip}</skipNexusStagingDeployMojo> |
359 |
| - </configuration> |
360 |
| - </plugin> |
361 | 241 | <plugin>
|
362 | 242 | <groupId>org.apache.maven.plugins</groupId>
|
363 | 243 | <artifactId>maven-surefire-plugin</artifactId>
|
|
375 | 255 | <!-- End publish to maven central -->
|
376 | 256 | </plugins>
|
377 | 257 | </build>
|
378 |
| - |
379 | 258 | <profiles>
|
| 259 | + <profile> |
| 260 | + <id>deploy</id> |
| 261 | + <activation> |
| 262 | + <activeByDefault>true</activeByDefault> |
| 263 | + </activation> |
| 264 | + <properties> |
| 265 | + <maven.compiler.proc>full</maven.compiler.proc> |
| 266 | + </properties> |
| 267 | + <build> |
| 268 | + <plugins> |
| 269 | + |
| 270 | + <!-- skips deployment of submodule artifact if already in repo --> |
| 271 | + <plugin> |
| 272 | + <groupId>org.honton.chas</groupId> |
| 273 | + <artifactId>exists-maven-plugin</artifactId> |
| 274 | + <version>0.15.0</version> |
| 275 | + <executions> |
| 276 | + <execution> |
| 277 | + <goals> |
| 278 | + <goal>remote</goal> |
| 279 | + </goals> |
| 280 | + </execution> |
| 281 | + </executions> |
| 282 | + <configuration> |
| 283 | + <skip>${maven.deploy.skip}</skip> |
| 284 | + <repository>https://s01.oss.sonatype.org/service/local/repositories/releases/content</repository> |
| 285 | + <snapshotRepository>https://s01.oss.sonatype.org/content/repositories/snapshots</snapshotRepository> |
| 286 | + <snapshotServerId>ossrh</snapshotServerId> |
| 287 | + </configuration> |
| 288 | + </plugin> |
| 289 | + |
| 290 | + <!-- Begin source & javadocs being generated --> |
| 291 | + <plugin> |
| 292 | + <groupId>org.apache.maven.plugins</groupId> |
| 293 | + <artifactId>maven-source-plugin</artifactId> |
| 294 | + <version>3.3.1</version> |
| 295 | + <executions> |
| 296 | + <execution> |
| 297 | + <id>attach-sources</id> |
| 298 | + <goals> |
| 299 | + <goal>jar-no-fork</goal> |
| 300 | + </goals> |
| 301 | + </execution> |
| 302 | + </executions> |
| 303 | + </plugin> |
| 304 | + <plugin> |
| 305 | + <groupId>org.apache.maven.plugins</groupId> |
| 306 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 307 | + <version>3.11.2</version> |
| 308 | + <configuration> |
| 309 | + <failOnWarnings>${javadoc.failOnWarnings}</failOnWarnings> |
| 310 | + <sourceFileExcludes> |
| 311 | + <sourceFileExclude>**/GoFeatureFlagProviderOptions.java</sourceFileExclude> |
| 312 | + </sourceFileExcludes> |
| 313 | + <excludePackageNames> |
| 314 | + dev.openfeature.flagd.grpc,dev.openfeature.contrib.providers.gofeatureflag.exception,dev.openfeature.contrib.providers.gofeatureflag.bean |
| 315 | + </excludePackageNames> |
| 316 | + <doclint>all,-missing |
| 317 | + </doclint> <!-- ignore missing javadoc, these are enforced with more customizability in the checkstyle plugin --> |
| 318 | + <legacyMode>true</legacyMode> |
| 319 | + </configuration> |
| 320 | + <executions> |
| 321 | + <execution> |
| 322 | + <id>attach-javadocs</id> |
| 323 | + <phase>verify</phase> |
| 324 | + <goals> |
| 325 | + <goal>jar</goal> |
| 326 | + </goals> |
| 327 | + </execution> |
| 328 | + </executions> |
| 329 | + </plugin> |
| 330 | + <!-- end source & javadoc --> |
| 331 | + |
| 332 | + <!-- SBOM generation --> |
| 333 | + <plugin> |
| 334 | + <groupId>org.cyclonedx</groupId> |
| 335 | + <artifactId>cyclonedx-maven-plugin</artifactId> |
| 336 | + <version>2.9.1</version> |
| 337 | + <configuration> |
| 338 | + <projectType>library</projectType> |
| 339 | + <schemaVersion>1.3</schemaVersion> |
| 340 | + <includeBomSerialNumber>true</includeBomSerialNumber> |
| 341 | + <includeCompileScope>true</includeCompileScope> |
| 342 | + <includeProvidedScope>true</includeProvidedScope> |
| 343 | + <includeRuntimeScope>true</includeRuntimeScope> |
| 344 | + <includeSystemScope>true</includeSystemScope> |
| 345 | + <includeTestScope>false</includeTestScope> |
| 346 | + <includeLicenseText>false</includeLicenseText> |
| 347 | + <outputFormat>all</outputFormat> |
| 348 | + </configuration> |
| 349 | + <executions> |
| 350 | + <execution> |
| 351 | + <phase>package</phase> |
| 352 | + <goals> |
| 353 | + <!-- "makeAggregateBom" pollutes each module with the deps of other modules, so we use "makeBom" --> |
| 354 | + <goal>makeBom</goal> |
| 355 | + </goals> |
| 356 | + </execution> |
| 357 | + </executions> |
| 358 | + </plugin> |
| 359 | + |
| 360 | + <!-- sign the jars --> |
| 361 | + <plugin> |
| 362 | + <groupId>org.apache.maven.plugins</groupId> |
| 363 | + <artifactId>maven-gpg-plugin</artifactId> |
| 364 | + <version>3.2.7</version> |
| 365 | + <executions> |
| 366 | + <execution> |
| 367 | + <id>sign-artifacts</id> |
| 368 | + <phase>install</phase> |
| 369 | + <goals> |
| 370 | + <goal>sign</goal> |
| 371 | + </goals> |
| 372 | + </execution> |
| 373 | + </executions> |
| 374 | + </plugin> |
| 375 | + <!-- end sign --> |
| 376 | + |
| 377 | + <!-- Begin publish to maven central --> |
| 378 | + <plugin> |
| 379 | + <groupId>org.sonatype.plugins</groupId> |
| 380 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 381 | + <version>1.7.0</version> |
| 382 | + <extensions>true</extensions> |
| 383 | + <configuration> |
| 384 | + <serverId>ossrh</serverId> |
| 385 | + <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
| 386 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 387 | + <skipNexusStagingDeployMojo>${maven.deploy.skip}</skipNexusStagingDeployMojo> |
| 388 | + </configuration> |
| 389 | + </plugin> |
| 390 | + </plugins> |
| 391 | + </build> |
| 392 | + </profile> |
380 | 393 | <profile>
|
381 | 394 | <id>codequality</id>
|
382 | 395 | <activation>
|
|
0 commit comments