Skip to content

Commit

Permalink
explain what the trimming is doing
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Feb 3, 2024
1 parent dc53cd6 commit 0523f95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,12 @@ processResources {
duplicatesStrategy 'include'
}

String zetaVer = deps.zeta;
// Formats 1.0-13.58 to 1.0-13 (removes the build number)
String zetaVer = deps.zeta.substring(0, deps.zeta.lastIndexOf('.'))

Map<String, String> properties = Map.of(
"version", version,
"zeta_ver", zetaVer.substring(0, zetaVer.lastIndexOf('.'))
"version", version as String,
"zeta_ver", zetaVer
)

properties.forEach((k, v) -> inputs.property(k, v))
Expand Down

0 comments on commit 0523f95

Please sign in to comment.