diff --git a/plugins/build.gradle b/plugins/build.gradle index 8e5e287..2611a36 100644 --- a/plugins/build.gradle +++ b/plugins/build.gradle @@ -42,7 +42,12 @@ subprojects { from { configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it).matching { + exclude 'org/pf4j/**' exclude 'org/slf4j/**' + exclude 'sysmon/shared/**' + exclude 'META-INF/AL2.0' + exclude 'META-INF/LGPL2.1' + exclude 'META-INF/LICENSE' } } } diff --git a/plugins/os-aix/build.gradle b/plugins/os-aix/build.gradle index 93beca3..a76f366 100644 --- a/plugins/os-aix/build.gradle +++ b/plugins/os-aix/build.gradle @@ -1,8 +1,6 @@ dependencies { - implementation(group: 'com.github.oshi', name: 'oshi-core', version: "5.7.3") { exclude(group: "org.slf4j") } - } diff --git a/plugins/os-aix/src/main/java/sysmon/plugins/os_aix/AixDiskExtension.java b/plugins/os-aix/src/main/java/sysmon/plugins/os_aix/AixDiskExtension.java index c77bdb2..a986d93 100644 --- a/plugins/os-aix/src/main/java/sysmon/plugins/os_aix/AixDiskExtension.java +++ b/plugins/os-aix/src/main/java/sysmon/plugins/os_aix/AixDiskExtension.java @@ -40,10 +40,9 @@ public class AixDiskExtension implements MetricExtension { public AixDiskExtension() { - systemInfo = new SystemInfo(); hardwareAbstractionLayer = systemInfo.getHardware(); - + log.warn(systemInfo.getOperatingSystem().toString()); }