From 1c6665332b84c3c6aab29b3bead18aa47361b64f Mon Sep 17 00:00:00 2001 From: Marko Milic Date: Tue, 5 Nov 2024 07:52:08 +0100 Subject: [PATCH] enhancement - add groupId, artifactId and version attributes --- .../gradle/bs/importer/GradleBuildServerBuildSupport.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/GradleBuildServerBuildSupport.java b/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/GradleBuildServerBuildSupport.java index e004eae80..3a71e56b0 100644 --- a/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/GradleBuildServerBuildSupport.java +++ b/extension/jdtls.ext/com.microsoft.gradle.bs.importer/src/com/microsoft/gradle/bs/importer/GradleBuildServerBuildSupport.java @@ -676,6 +676,9 @@ private List getDependencyJars(DependencyModulesResult dependen attributes.add(optionalAttribute); } attributes.add(buildServerAttribute); + attributes.add(JavaCore.newClasspathAttribute("groupId", mavenDependencyModule.getOrganization())); + attributes.add(JavaCore.newClasspathAttribute("artifactId", mavenDependencyModule.getName())); + attributes.add(JavaCore.newClasspathAttribute("version", mavenDependencyModule.getVersion())); dependencyEntries.add(JavaCore.newLibraryEntry( new Path(artifact.getAbsolutePath()),