From 1ed4df2e3071d0b82541bd5f0ffd94d67ef2dbfb Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Wed, 30 Oct 2024 07:31:09 -0700 Subject: [PATCH] Update reference to libs project in IDE setup --- build-tools-internal/src/main/groovy/elasticsearch.ide.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-tools-internal/src/main/groovy/elasticsearch.ide.gradle b/build-tools-internal/src/main/groovy/elasticsearch.ide.gradle index 86b48f744e16e..63a3cb6d86d68 100644 --- a/build-tools-internal/src/main/groovy/elasticsearch.ide.gradle +++ b/build-tools-internal/src/main/groovy/elasticsearch.ide.gradle @@ -137,7 +137,7 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') { } } - // modifies the idea module config to enable preview features on 'elasticsearch-native' module + // modifies the idea module config to enable preview features on ':libs:native' module tasks.register("enablePreviewFeatures") { group = 'ide' description = 'Enables preview features on native library module' @@ -145,7 +145,7 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') { doLast { ['main', 'test'].each { sourceSet -> - modifyXml(".idea/modules/libs/native/elasticsearch.libs.elasticsearch-native.${sourceSet}.iml") { xml -> + modifyXml(".idea/modules/libs/native/elasticsearch.libs.${project.project(':libs:native').name}.${sourceSet}.iml") { xml -> xml.component.find { it.'@name' == 'NewModuleRootManager' }?.'@LANGUAGE_LEVEL' = 'JDK_21_PREVIEW' } }