File tree Expand file tree Collapse file tree 7 files changed +115
-13
lines changed Expand file tree Collapse file tree 7 files changed +115
-13
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,6 @@ __pycache__/
28
28
29
29
# Claude Code local settings
30
30
.claude /settings.local.json
31
+
32
+ # Maven Flatten Plugin generated files
33
+ .flattened-pom.xml
Original file line number Diff line number Diff line change 10
10
11
11
<artifactId >approvaltests-util</artifactId >
12
12
<packaging >jar</packaging >
13
+ <name >ApprovalTests Utilities</name >
14
+ <description >Utilities for ApprovalTests</description >
15
+ <url >http://approvaltests.com/</url >
16
+
17
+ <licenses >
18
+ <license >
19
+ <name >The Apache License, Version 2.0</name >
20
+ <url >http://www.apache.org/licenses/LICENSE-2.0.txt</url >
21
+ </license >
22
+ </licenses >
23
+
24
+ <developers >
25
+ <developer >
26
+ <name >Llewellyn Falco</name >
27
+ </developer >
28
+ <developer >
29
+ <name >Lars Eckart</name >
30
+ </developer >
31
+ </developers >
32
+
33
+ <scm >
34
+ <connection >scm:git:git://github.com/approvals/ApprovalTests.Java.git</connection >
35
+ <developerConnection >scm:git:ssh://github.com:approvals/ApprovalTests.Java.git</developerConnection >
36
+ <url >https://github.com/approvals/ApprovalTests.Java</url >
37
+ </scm >
13
38
14
39
<dependencies >
15
40
<dependency >
Original file line number Diff line number Diff line change 11
11
12
12
<artifactId >approvaltests</artifactId >
13
13
<packaging >jar</packaging >
14
+ <name >ApprovalTests</name >
15
+ <description >Unit testing asserts made easy</description >
16
+ <url >http://approvaltests.com/</url >
14
17
18
+ <licenses >
19
+ <license >
20
+ <name >The Apache License, Version 2.0</name >
21
+ <url >http://www.apache.org/licenses/LICENSE-2.0.txt</url >
22
+ </license >
23
+ </licenses >
24
+
25
+ <developers >
26
+ <developer >
27
+ <name >Llewellyn Falco</name >
28
+ </developer >
29
+ <developer >
30
+ <name >Lars Eckart</name >
31
+ </developer >
32
+ </developers >
33
+
34
+ <scm >
35
+ <connection >scm:git:git://github.com/approvals/ApprovalTests.Java.git</connection >
36
+ <developerConnection >scm:git:ssh://github.com:approvals/ApprovalTests.Java.git</developerConnection >
37
+ <url >https://github.com/approvals/ApprovalTests.Java</url >
38
+ </scm >
15
39
16
40
<dependencies >
17
41
<dependency >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ echo "********** Staging artifacts with Maven"
19
19
# Get the key ID from the imported key
20
20
KEY_ID=$( echo " $GPG_PRIVATE_KEY " | gpg --list-packets 2> /dev/null | grep -E " keyid:" | head -1 | awk ' {print $2}' )
21
21
echo " Using GPG key: $KEY_ID "
22
- mvn clean deploy -Ppublication -DskipTests -Dgpg.keyname=" $KEY_ID " -Dgpg.passphrase=" $GPG_PASSPHRASE "
22
+ mvn clean deploy -Ppublication -DskipTests -Dmaven.javadoc.failOnError=false - Dgpg.keyname=" $KEY_ID " -Dgpg.passphrase=" $GPG_PASSPHRASE "
23
23
24
24
echo " ********** Setting JReleaser environment variables"
25
25
export JRELEASER_MAVENCENTRAL_USERNAME=" $MAVEN_USERNAME_2025 "
@@ -28,5 +28,12 @@ export JRELEASER_GPG_PASSPHRASE="$GPG_PASSPHRASE"
28
28
export JRELEASER_GPG_PUBLIC_KEY=$( gpg --armor --export)
29
29
export JRELEASER_GPG_SECRET_KEY=" $GPG_PRIVATE_KEY "
30
30
31
+ echo " ********** Removing artifacts we don't want to deploy"
32
+ rm -rf target/staging-deploy/com/approvaltests/approvaltests-parent
33
+ rm -rf target/staging-deploy/com/approvaltests/approvaltests-util-tests
34
+ rm -rf target/staging-deploy/com/approvaltests/approvaltests-tests
35
+ rm -rf target/staging-deploy/com/approvaltests/CounterDisplay
36
+ rm -rf target/staging-deploy/com/approvaltests/HtmlLocker
37
+
31
38
echo " ********** Running JReleaser deploy"
32
- mvn jreleaser:deploy
39
+ mvn -N jreleaser:deploy
Original file line number Diff line number Diff line change 8
8
1 . the action succeeded (https://github.com/approvals/ApprovalTests.Java/actions/workflows/release.yml ) (this takes ~ 3 minutes)
9
9
2 . the release is available on Maven Central (https://search.maven.org/artifact/com.approvaltests/approvaltests ) (takes usually ~ 30 minutes)
10
10
11
+
12
+ ## Release requirements
13
+
14
+ - [ ] Need a username and password from sonatype account (token)
15
+ - Environmental variables MAVEN_USERNAME_2025 and MAVEN_PASSWORD_2025
16
+ - [ ] We need a GPG key to sign the artifacts
17
+ - Environmental variables GPG_PRIVATE_KEY and GPG_PASSPHRASE
18
+ - You can test this with ` internal_documentation/test_gpg_key.sh `
19
+ - You can set versions using
20
+ ```
21
+ mvn versions:set -DnewVersion=100.0.0-SNAPSHOT
22
+ ```
23
+ - We only deploy ` approvaltests ` and ` approvaltests-util ` , the other projects do not need to be deployed
24
+ - You can check the status at
25
+ - https://central.sonatype.com/publishing/deployments
26
+ - Note: You must be logged in as Llewellyn.
27
+ - https://repo1.maven.org/maven2/com/approvaltests/approvaltests/
28
+ - https://central.sonatype.com/artifact/com.approvaltests/approvaltests
Original file line number Diff line number Diff line change 1
1
project :
2
2
name : ApprovalTests.Java
3
3
description : Unit testing asserts can be difficult to use. Approval tests simplify this by taking a snapshot of the results, and confirming that they have not changed.
4
- website : http://approvaltests.com/
4
+ links :
5
+ homepage : http://approvaltests.com/
5
6
authors :
6
7
- Llewellyn Falco
7
8
- Lars Eckart
8
9
- Jay Bazuzi
9
10
license : Apache-2.0
10
- java :
11
- groupId : com.approvaltests
12
- version : 8
11
+ languages :
12
+ java :
13
+ groupId : com.approvaltests
14
+ version : 8
13
15
14
16
release :
15
17
github :
16
18
overwrite : false
17
19
18
20
signing :
19
- active : ALWAYS
21
+ active : NEVER
20
22
armored : true
21
23
22
24
deploy :
@@ -27,9 +29,4 @@ deploy:
27
29
url : https://central.sonatype.com/api/v1/publisher
28
30
stagingRepositories :
29
31
- target/staging-deploy
30
- excludedArtifacts :
31
- - " approvaltests-parent*.pom"
32
- - " approvaltests-util-tests*"
33
- - " approvaltests-tests*"
34
- - " counter_display*"
35
- - " html_locker*"
32
+ sign : false
Original file line number Diff line number Diff line change 133
133
<artifactId >jreleaser-maven-plugin</artifactId >
134
134
<version >1.19.0</version >
135
135
<inherited >false</inherited >
136
+ <configuration >
137
+ <configFile >jreleaser.yml</configFile >
138
+ </configuration >
139
+ </plugin >
140
+ <plugin >
141
+ <groupId >org.codehaus.mojo</groupId >
142
+ <artifactId >flatten-maven-plugin</artifactId >
143
+ <version >1.6.0</version >
144
+ <configuration >
145
+ <updatePomFile >true</updatePomFile >
146
+ <flattenMode >ossrh</flattenMode >
147
+ </configuration >
148
+ <executions >
149
+ <execution >
150
+ <id >flatten</id >
151
+ <phase >process-resources</phase >
152
+ <goals >
153
+ <goal >flatten</goal >
154
+ </goals >
155
+ </execution >
156
+ <execution >
157
+ <id >flatten.clean</id >
158
+ <phase >clean</phase >
159
+ <goals >
160
+ <goal >clean</goal >
161
+ </goals >
162
+ </execution >
163
+ </executions >
136
164
</plugin >
137
165
</plugins >
138
166
<resources >
You can’t perform that action at this time.
0 commit comments