Skip to content

Commit

Permalink
Fixed version updating hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jiakuan committed Oct 25, 2024
1 parent 87e03be commit e582a57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add the following to your `build.gradle` file to use the plugin:

```
plugins {
id "org.docstr.gwt version "2.0.10-alpha"
id "org.docstr.gwt version" "2.0.10-alpha"
}
gwt {
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ scmVersion {
hooks {
pre("fileUpdate", [
file : "README.md",
pattern : { v, p -> /id "org\.docstr\.gwt version "([\d.a-zA-Z-]+)"/ },
replacement: { v, p -> "id \"org.docstr.gwt version \"${v}-alpha\"" }
pattern : { v, p -> /id "org\.docstr\.gwt" version "([\d.a-zA-Z-]+)"/ },
replacement: { v, p -> "id \"org.docstr.gwt\" version \"${v}-alpha\"" }
])
pre("fileUpdate", [
file : "doc/Configuration.md",
pattern : { v, p -> /id "org\.docstr\.gwt version "([\d.a-zA-Z-]+)"/ },
replacement: { v, p -> "id \"org.docstr.gwt version \"${v}-alpha\"" }
pattern : { v, p -> /id "org\.docstr\.gwt" version "([\d.a-zA-Z-]+)"/ },
replacement: { v, p -> "id \"org.docstr.gwt\" version \"${v}-alpha\"" }
])
pre("fileUpdate", [
file : "examples/basic-gwt-project/build.gradle",
pattern : { v, p -> /id "org\.docstr\.gwt version "([\d.a-zA-Z-]+)"/ },
replacement: { v, p -> "id \"org.docstr.gwt version \"${v}-alpha\"" }
pattern : { v, p -> /id "org\.docstr\.gwt" version "([\d.a-zA-Z-]+)"/ },
replacement: { v, p -> "id \"org.docstr.gwt\" version \"${v}-alpha\"" }
])
pre("fileUpdate", [
file : "README.md",
Expand Down

0 comments on commit e582a57

Please sign in to comment.