Skip to content

Commit

Permalink
Add grpc
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Oct 11, 2024
1 parent 85856b1 commit 724db17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ public static Map<String, String> getVersions() {
}
}

private static void flattenToml(TomlTable tomlTable, Properties properties, String prefix) {
private static void tomlVersionsToProperties(TomlTable tomlTable, Properties properties) {
for (String key : tomlTable.keySet()) {
String fullKey = prefix.isEmpty() ? key : prefix + "." + key;
Object value = tomlTable.get(key);

if (value instanceof TomlTable) {
flattenToml((TomlTable) value, properties, fullKey);
} else {
properties.setProperty(key, value.toString());
if (key.equals("versions")) {
TomlTable versions = (TomlTable) value;
for (String library : versions.keySet()) {
properties.setProperty(library, versions.get(library).toString());
}
}
}
}
Expand All @@ -149,7 +149,7 @@ private static Properties getVersionProperties() {
}

Properties properties = new Properties();
flattenToml(toml, properties, "");
tomlVersionsToProperties(toml, properties);
return properties;
}

Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jakarta_annotation = "1.3.5"
google_http_client = "1.44.1"
tdigest = "3.3"
hdrhistogram = "2.2.2"
grpc = "1.68.0"

# when updating the JNA version, also update the version in buildSrc/build.gradle
jna = "5.13.0"
Expand Down

0 comments on commit 724db17

Please sign in to comment.