File tree 3 files changed +32
-11
lines changed
powertools-idempotency/powertools-idempotency-dynamodb
3 files changed +32
-11
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,11 @@ jobs:
20
20
distribution : ' corretto'
21
21
java-version : 11
22
22
server-id : ossrh
23
- server-username : MAVEN_USERNAME
24
- server-password : MAVEN_PASSWORD
25
23
# TODO: use environments https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment
26
24
gpg-private-key : ${{ secrets.GPG_SIGNING_KEY }} # Value of the GPG private key to import
27
25
gpg-passphrase : GPG_PASSPHRASE # env variable for GPG private key passphrase
28
26
- name : Publish package
29
- run : mvn -Prelease clean deploy -DskipTests
27
+ run : mvn -Prelease clean validate deploy -DskipTests # We use validate here to run maven enforcer, to make sure we are only publishing SNAPSHOT builds
30
28
env :
31
29
MAVEN_USERNAME : ${{ secrets.OSSRH_JIRA_USERNAME }}
32
30
MAVEN_PASSWORD : fail_because_this_is_wrong
Original file line number Diff line number Diff line change 466
466
<plugins >
467
467
<plugin >
468
468
<groupId >org.apache.maven.plugins</groupId >
469
- <artifactId >maven-gpg-plugin</artifactId >
469
+ <artifactId >maven-enforcer-plugin</artifactId >
470
+ <version >3.5.0</version >
470
471
<executions >
471
472
<execution >
472
- <id >sign-artifacts </id >
473
- <phase >verify </phase >
473
+ <id >enforce-snapshot-versions </id >
474
+ <phase >validate </phase >
474
475
<goals >
475
- <goal >sign </goal >
476
+ <goal >enforce </goal >
476
477
</goals >
477
478
<configuration >
478
- <gpgArguments >
479
- <arg >--pinentry-mode</arg >
480
- <arg >loopback</arg >
481
- </gpgArguments >
479
+ <rules >
480
+ <requireSnapshotVersion >
481
+ <message >Release build should not have snapshot dependencies!</message >
482
+ </requireSnapshotVersion >
483
+ </rules >
484
+ <fail >true</fail >
482
485
</configuration >
483
486
</execution >
484
487
</executions >
485
488
</plugin >
489
+ <!-- <plugin>-->
490
+ <!-- <groupId>org.apache.maven.plugins</groupId>-->
491
+ <!-- <artifactId>maven-gpg-plugin</artifactId>-->
492
+ <!-- <executions>-->
493
+ <!-- <execution>-->
494
+ <!-- <id>sign-artifacts</id>-->
495
+ <!-- <phase>verify</phase>-->
496
+ <!-- <goals>-->
497
+ <!-- <goal>sign</goal>-->
498
+ <!-- </goals>-->
499
+ <!-- <configuration>-->
500
+ <!-- <gpgArguments>-->
501
+ <!-- <arg>--pinentry-mode</arg>-->
502
+ <!-- <arg>loopback</arg>-->
503
+ <!-- </gpgArguments>-->
504
+ <!-- </configuration>-->
505
+ <!-- </execution>-->
506
+ <!-- </executions>-->
507
+ <!-- </plugin>-->
486
508
<plugin >
487
509
<groupId >org.apache.maven.plugins</groupId >
488
510
<artifactId >maven-source-plugin</artifactId >
Original file line number Diff line number Diff line change
1
+ {"installationId" :" e43b8515-8484-485c-8315-bead4568972b" ,"telemetryEnabled" :" true" }
You can’t perform that action at this time.
0 commit comments