Skip to content

Commit 63e2f05

Browse files
authored
chore: update releaserc to include pom.xml file (#357)
1 parent e259caf commit 63e2f05

File tree

3 files changed

+45
-30
lines changed

3 files changed

+45
-30
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ target/
1212

1313
## semantic-release
1414
package-lock.json
15+
package.json
1516
node_modules/
17+
pom.xml.versionsBackup

.releaserc

+23-10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
## SPDX-License-Identifier: Apache-2.0
13
{
24
"branches": ["master"],
35
"plugins": [
@@ -9,16 +11,21 @@
911
"presetConfig": {
1012
"types": [
1113
{"type": "feat", "section": "Features"},
12-
{"type": "fix", "section": "Bug Fixes"},
14+
{"type": "fix", "section": "Fixes"},
1315
{"type": "chore", "section": "Maintenance"},
1416
{"type": "docs", "section": "Maintenance"},
15-
{"type": "revert", "section": "Bug Fixes"},
17+
{"type": "revert", "section": "Fixes"},
1618
{"type": "style", "hidden": true},
1719
{"type": "refactor", "hidden": true},
1820
{"type": "perf", "hidden": true},
1921
{"type": "test", "hidden": true}
2022
]
21-
}
23+
},
24+
"releaseRules": [
25+
{"type": "docs", "release": "patch"},
26+
{"type": "revert", "release": "patch"},
27+
{"type": "chore", "release": "patch"}
28+
]
2229
}],
2330
["@semantic-release/release-notes-generator", {
2431
"preset": "conventionalcommits",
@@ -28,10 +35,10 @@
2835
"presetConfig": {
2936
"types": [
3037
{"type": "feat", "section": "Features"},
31-
{"type": "fix", "section": "Bug Fixes"},
38+
{"type": "fix", "section": "Fixes"},
3239
{"type": "chore", "section": "Maintenance"},
3340
{"type": "docs", "section": "Maintenance"},
34-
{"type": "revert", "section": "Bug Fixes"},
41+
{"type": "revert", "section": "Fixes"},
3542
{"type": "style", "hidden": true},
3643
{"type": "refactor", "hidden": true},
3744
{"type": "perf", "hidden": true},
@@ -40,13 +47,19 @@
4047
}
4148
}],
4249
["@semantic-release/changelog", {
43-
"changelogFile": "./CHANGELOG.md"
50+
"changelogFile": "./CHANGELOG.md",
51+
"changelogTitle": "# Changelog"
52+
}],
53+
["@semantic-release/exec", {
54+
"prepareCmd": "mvn versions:set -DnewVersion=${nextRelease.version} \
55+
-DautoVersionSubmodules=true && find README.md -type f \
56+
-exec sed -i '' 's/<version>.*<\\/version>/<version>${nextRelease.version}<\\/version>/g' {} \\;"
4457
}],
4558
["@semantic-release/git", {
46-
"assets": ["./CHANGELOG.md"],
47-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
59+
"assets": ["./CHANGELOG.md", "./pom.xml", "./README.md"],
60+
"message": "AWS Encryption SDK ${nextRelease.version} Release \n\n${nextRelease.notes}"
4861
}],
49-
"@semantic-release/github"
62+
#@semantic-release/github"
5063
],
51-
"repositoryUrl": "https://github.com/josecorella/test-semantic-release-pr",
64+
"repositoryUrl": "https://github.com/aws/aws-encryption-sdk-java",
5265
}

CHANGELOG.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 2.3.3 -- 2021-08-26
3+
### 2.3.3 -- 2021-08-26
44

55
### Maintenance
66

@@ -23,7 +23,7 @@
2323
* CI: Compilation with OpenJDK11 and validation with other JDKs
2424
([#293](https://github.com/aws/aws-encryption-sdk-java/pull/293))
2525

26-
## 2.3.2 -- 2021-07-20
26+
### 2.3.2 -- 2021-07-20
2727

2828
### Maintenance
2929

@@ -47,11 +47,11 @@
4747
* chore: Add support policy
4848
([#274](https://github.com/aws/aws-encryption-sdk-java/pull/274))
4949

50-
## 2.3.1 -- 2021-06-29
50+
### 2.3.1 -- 2021-06-29
5151

5252
* fix: read project properties from package's own ClassLoader [(PR #269)](https://github.com/aws/aws-encryption-sdk-java/pull/269)
5353

54-
## 2.3.0 -- 2021-06-16
54+
### 2.3.0 -- 2021-06-16
5555

5656
* feat: AWS KMS multi-Region Key support
5757

@@ -66,14 +66,14 @@
6666
for more details about how the AWS Encryption SDK interoperates
6767
with AWS KMS multi-Region keys.
6868

69-
## 2.2.0 -- 2021-05-27
69+
### 2.2.0 -- 2021-05-27
7070

7171
* feat: Improvements to the message decryption process.
7272

7373
See https://github.com/aws/aws-encryption-sdk-java/security/advisories/GHSA-55xh-53m6-936r
7474

7575

76-
## 2.0.0 -- 2020-09-24
76+
### 2.0.0 -- 2020-09-24
7777

7878
* feat!: Updates to the AWS Encryption SDK. 4678ffa
7979

@@ -84,11 +84,11 @@ Key committing suites are now default. CommitmentPolicy requires commitment by d
8484

8585
See: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/migration.html
8686

87-
## 1.7.0 -- 2020-09-24
87+
### 1.7.0 -- 2020-09-24
8888

8989
* feat: Updates to the AWS Encryption SDK. a6be12a
9090

91-
## 1.6.2 -- 2020-05-26
91+
### 1.6.2 -- 2020-05-26
9292

9393
### Patches
9494
* Validate final frame length does not exceed the frame size in the message header [PR #166](https://github.com/aws/aws-encryption-sdk-java/pull/166)
@@ -98,7 +98,7 @@ See: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/migration
9898
* Update AWS Java SDK version from 1.11.561 to 1.11.704. [PR #186](https://github.com/aws/aws-encryption-sdk-java/pull/186)
9999
* Upgrade Bouncy Castle from 1.61 to 1.65 [PR #179](https://github.com/aws/aws-encryption-sdk-java/pull/179)
100100

101-
## 1.6.1 -- 2019-10-29
101+
### 1.6.1 -- 2019-10-29
102102

103103
### Deprecation Warnings
104104
* Deprecated `AwsCrypto.encryptString()` and `AwsCrypto.decryptString()`.
@@ -121,15 +121,15 @@ See: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/migration
121121
[#131](https://github.com/aws/aws-encryption-sdk-java/pull/131),
122122
and [#132](https://github.com/aws/aws-encryption-sdk-java/pull/132).
123123

124-
## 1.6.0 -- 2019-05-31
124+
### 1.6.0 -- 2019-05-31
125125

126126
### Minor Changes
127127
* Remove dependency on Apache Commons Codec 1.12.
128128
* Use Base64 encoder from Bouncy Castle.
129129
* Introduce and use utility methods for Base64 encoding/decoding so that
130130
switching the codec provider needs to be done only in one place next time.
131131

132-
## 1.5.0 -- 2019-05-30
132+
### 1.5.0 -- 2019-05-30
133133

134134
### Minor Changes
135135
* Added dependency on Apache Commons Codec 1.12.
@@ -142,12 +142,12 @@ See: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/migration
142142
* Upgrade Mockito from 2.23.4 to 2.28.1.
143143
* Upgrade Apache Commons Lang from 3.4 to 3.9.
144144

145-
## 1.4.1 -- 2019-05-10
145+
### 1.4.1 -- 2019-05-10
146146

147147
### Patches
148148
* Cast ByteBuffer to Buffer prior to using some methods so that it works properly in Java 8.
149149

150-
## 1.4.0 -- 2019-05-10
150+
### 1.4.0 -- 2019-05-10
151151

152152
### Minor Changes
153153
* Increased BouncyCastle dependency version to 1.61
@@ -156,7 +156,7 @@ See: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/migration
156156
### Maintenance
157157
* Increased Mockito test dependency version to 2.23.4
158158

159-
## 1.3.6 -- 2018-12-10
159+
### 1.3.6 -- 2018-12-10
160160

161161
### Patches
162162
* Fixed typos in Exception messages (excryption -> encryption) #78
@@ -168,7 +168,7 @@ See: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/migration
168168
* Added JML specs in #72
169169
* Ensure that KeyBlob treats field lengths as unsigned shorts #71
170170

171-
## 1.3.5
171+
### 1.3.5
172172

173173
### Minor Changes
174174

@@ -178,39 +178,39 @@ See: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/migration
178178
region not servicable by that MKP, the exception will now be thrown on first
179179
use of the MK, rather than at getMasterKey time.
180180

181-
## 1.3.4
181+
### 1.3.4
182182

183183
### Minor Changes
184184

185185
* Removed the KMS client cache, which could result in a memory leak when
186186
decrypting certain malformed ciphertexts. This may reduce performance slightly
187187
in some scenarios.
188188

189-
## 1.3.3
189+
### 1.3.3
190190

191191
### Minor Changes
192192
* Move the `aws-encryption-sdk-java` repository from `awslabs` to `aws`.
193193
* Log a warning when an unsupported asymmetric algorithm is used with `JceMasterKey`
194194
* Make `JceMasterKey` case insensitive
195195
* Fix bare aliases not using default region
196196

197-
## 1.3.2
197+
### 1.3.2
198198

199199
### Minor Changes
200200
* Frame size restriction removed again
201201
* Support Builders for use with AWS KMS
202202
* Fix estimateCipherText when used with cached data keys
203203
* Do not automatically set a default region in KmsMasterKeyProvider
204204

205-
## 1.3.1
205+
### 1.3.1
206206

207207
### Minor changes
208208

209209
* Frame sizes are once again required to be aligned to 16 bytes
210210
This restriction was relaxed in 1.3.0, but due to compatibility concerns
211211
we'll put this restriction back in for the time being.
212212

213-
## 1.3.0
213+
### 1.3.0
214214

215215
### Major changes
216216

0 commit comments

Comments
 (0)