Skip to content

Commit

Permalink
chore: add mpl version to project.properties (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
josecorella authored Jul 10, 2024
1 parent 7f7adaf commit baf901a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .releaserc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
// We model all the files and the runtimes here in this structure
const Runtimes = {
java: {
"project.properties": {
dependencies: [],
},
"AwsCryptographicMaterialProviders/runtimes/java/build.gradle.kts": {
dependencies: [],
},
Expand Down Expand Up @@ -57,7 +60,7 @@ const Runtimes = {
* @type {import('semantic-release').GlobalConfig}
*/
module.exports = {
branches: ["main"],
branches: ["main", "jocorell/add-mpl-version-properties"],
repositoryUrl:
"git@github.com:aws/aws-cryptographic-material-providers-library.git",
plugins: [
Expand All @@ -81,14 +84,20 @@ module.exports = {
replacements: [
// Update the version for all Gradle Java projects
// Does not update the dependencies
{
files: Object.keys(Runtimes.java),
from: 'mplVersion=".*"',
to: 'mplVersion="${nextRelease.version}"',
results: Object.keys(Runtimes.java).map(CheckResults),
countMatches: true,
},
{
files: Object.keys(Runtimes.java),
from: 'version = ".*"',
to: 'version = "${nextRelease.version}"',
results: Object.keys(Runtimes.java).map(CheckResults),
countMatches: true,
},

// Now update the Gradle Java dependencies
...Object.entries(Runtimes.java).flatMap(([file, { dependencies }]) =>
dependencies.map((dependency) => ({
Expand Down
1 change: 1 addition & 0 deletions project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
# And the Dotnet projects include and parse this file.
dafnyVersion=4.2.0
dafnyVerifyVersion=4.2.0
mplVersion=1.5.1-SNAPSHOT

0 comments on commit baf901a

Please sign in to comment.