From 764afaf388cc32b533ffe59407ad7fe544bdf21f Mon Sep 17 00:00:00 2001 From: Andre Dietisheim Date: Tue, 20 Aug 2024 10:49:03 +0200 Subject: [PATCH] fix: bumped telemetry to 1.2.1 Signed-off-by: Andre Dietisheim --- gradle.properties | 2 +- .../redhat/devtools/intellij/quarkus/TelemetryService.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index d1a838f49..f7520124f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ platformType=IC platformVersion=2023.2 # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 -platformPlugins=com.intellij.java, maven, gradle-java, properties, yaml, com.redhat.devtools.intellij.telemetry:1.1.0.52 +platformPlugins=com.intellij.java, maven, gradle-java, properties, yaml, com.redhat.devtools.intellij.telemetry:1.2.1.62 # Gradle Releases -> https://github.com/gradle/gradle/releases gradleVersion=8.6 channel=nightly diff --git a/src/main/java/com/redhat/devtools/intellij/quarkus/TelemetryService.java b/src/main/java/com/redhat/devtools/intellij/quarkus/TelemetryService.java index 7fc14fb2f..411e83baa 100644 --- a/src/main/java/com/redhat/devtools/intellij/quarkus/TelemetryService.java +++ b/src/main/java/com/redhat/devtools/intellij/quarkus/TelemetryService.java @@ -10,6 +10,7 @@ ******************************************************************************/ package com.redhat.devtools.intellij.quarkus; +import com.intellij.ide.plugins.PluginManager; import com.redhat.devtools.intellij.telemetry.core.service.TelemetryMessageBuilder; import com.redhat.devtools.intellij.telemetry.core.util.Lazy; @@ -24,7 +25,9 @@ public class TelemetryService { private static final TelemetryService INSTANCE = new TelemetryService(); - private final Lazy builder = new Lazy<>(() -> new TelemetryMessageBuilder(TelemetryService.class.getClassLoader())); + private final Lazy builder = new Lazy<>(() -> + new TelemetryMessageBuilder(PluginManager.getPluginByClass(this.getClass())) + ); public static TelemetryMessageBuilder instance() { return INSTANCE.builder.get();