summaryrefslogtreecommitdiff
path: root/opendc-trace/opendc-trace-tools/build.gradle.kts
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-09-19 13:42:26 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-09-19 14:02:52 +0200
commit6502fb752a6f80695c024b8904d7523c420ebdda (patch)
treed3e992d42797fdfd04282969f32f3134cdbd6c34 /opendc-trace/opendc-trace-tools/build.gradle.kts
parent474044649a67cfcc857615b6a0f8387a2954abbd (diff)
feat(trace): Add tool for converting workload traces
This change adds an initial implementation to the trace library for converting between workload trace formats. Currently the tool supports only converting to the OpenDC VM trace format. However, in the future, we will add support for converting between other formats as well.
Diffstat (limited to 'opendc-trace/opendc-trace-tools/build.gradle.kts')
-rw-r--r--opendc-trace/opendc-trace-tools/build.gradle.kts47
1 files changed, 47 insertions, 0 deletions
diff --git a/opendc-trace/opendc-trace-tools/build.gradle.kts b/opendc-trace/opendc-trace-tools/build.gradle.kts
new file mode 100644
index 00000000..35190dba
--- /dev/null
+++ b/opendc-trace/opendc-trace-tools/build.gradle.kts
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2021 AtLarge Research
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+description = "Tools for working with workload traces"
+
+/* Build configuration */
+plugins {
+ `kotlin-conventions`
+ application
+}
+
+application {
+ mainClass.set("org.opendc.trace.tools.TraceConverterKt")
+}
+
+dependencies {
+ api(platform(projects.opendcPlatform))
+
+ implementation(projects.opendcTrace.opendcTraceParquet)
+ implementation(projects.opendcTrace.opendcTraceOpendc)
+ implementation(projects.opendcTrace.opendcTraceAzure)
+ implementation(projects.opendcTrace.opendcTraceBitbrains)
+
+ implementation(libs.kotlin.logging)
+ implementation(libs.clikt)
+
+ runtimeOnly(libs.log4j.slf4j)
+}