Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c97bc46

Browse files
committedApr 23, 2024·
add java sem release
1 parent 0a29347 commit c97bc46

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed
 

‎.releaserc.cjs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@
1919
// each one has files that need to be updated.
2020
// We model all the files and the runtimes here in this structure
2121
const Runtimes = {
22+
java: {
23+
"project.properties": {
24+
dependencies: [],
25+
},
26+
},
2227
net: {
2328
"DynamoDbEncryption/runtimes/net/DynamoDbEncryption.csproj": {
2429
dependencies: [],
25-
assemblyInfo: [
26-
"DynamoDbEncryption/runtimes/net/AssemblyInfo.cs"
27-
]
30+
assemblyInfo: "DynamoDbEncryption/runtimes/net/AssemblyInfo.cs",
2831
}
2932
},
3033
};
@@ -100,6 +103,15 @@ module.exports = {
100103
"semantic-release-replace-plugin",
101104
{
102105
replacements: [
106+
// Update the version for all Gradle Java projects
107+
// Does not update the dependencies
108+
{
109+
files: Object.keys(Runtimes.java),
110+
from: "projectJavaVersion=.*",
111+
to: 'projectJavaVersion=${nextRelease.version}',
112+
results: Object.keys(Runtimes.java).map(CheckResults),
113+
countMatches: true,
114+
},
103115
// Update the version for all DotNet projects
104116
// Does not update the dependencies
105117
{

0 commit comments

Comments
 (0)
Please sign in to comment.