Skip to content

Commit

Permalink
Update version sync script (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpmellema committed Jul 16, 2024
1 parent 562bffb commit 92a927d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/sync-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ EXPECTED_VERSION=$(cat VERSION)

# find all gradle build files and replace the existing version with the expected
find . -type f -name 'build.gradle.kts' \
-exec sed -i '' "s/\(id(\"software\.amazon\.smithy\.gradle\.smithy-\([[:lower:]]*\)\")\.version(\"\)\([[:digit:]\.]*\)\")/\\1${EXPECTED_VERSION}\")/" {} \;
-exec sed -i '' "s/\(id(\"software\.amazon\.smithy\.gradle\.smithy\([[:graph:]]*\)\")\.version(\"\)\([[:digit:]\.]*\)\")/\\1${EXPECTED_VERSION}\")/" {} \;

# update all references to the version in READMEs
find . -type f -name 'README.md' \
-exec sed -i '' "s/\(id(\"software\.amazon\.smithy\.gradle\.smithy-\([[:lower:]]*\)\")\.version(\"\)\([[:digit:]\.]*\)\")/\\1${EXPECTED_VERSION}\")/" {} \;
-exec sed -i '' "s/\(id(\"software\.amazon\.smithy\.gradle\.smithy\([[:graph:]]*\)\")\.version(\"\)\([[:digit:]\.]*\)\")/\\1${EXPECTED_VERSION}\")/" {} \;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "Custom Smithy structure trait with multiple inputs"

plugins {
id("software.amazon.smithy.gradle.smithy-trait-package") version "1.0.0"
id("software.amazon.smithy.gradle.smithy-trait-package").version("1.0.0")
}

group = "software.amazon.smithy"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "Use existing"

plugins {
id("software.amazon.smithy.gradle.smithy-trait-package") version "1.0.0"
id("software.amazon.smithy.gradle.smithy-trait-package").version("1.0.0")
}

group = "software.amazon.smithy"
Expand Down

0 comments on commit 92a927d

Please sign in to comment.