From ba606a3059994d362519f45eb90d9fc7827328dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Pluta?= Date: Mon, 11 Dec 2023 15:02:49 +0100 Subject: [PATCH] Apply temporary workaround for smnp.dsp module to plot charts --- modules/dsp/build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/dsp/build.gradle b/modules/dsp/build.gradle index be6a043..456376c 100644 --- a/modules/dsp/build.gradle +++ b/modules/dsp/build.gradle @@ -7,5 +7,11 @@ dependencies { } jar { - from configurations.fatjar.collect { it.isDirectory() ? it : zipTree(it) } + from configurations.compileClasspath + // FIXME: This is an ugly hack to include the xchart dependency into the output jar + // For some reason without this filter the module is no longer discoverable by SMNP core. + // Further investigation is required, however this temporary workaround works fine for the time being (11.12.2023). + .filter { it.getAbsolutePath().contains("xchart") } + .collect { it.isDirectory() ? it : zipTree(it) } + duplicatesStrategy = DuplicatesStrategy.EXCLUDE } \ No newline at end of file