Skip to content

Commit 30079d1

Browse files
authored
Update reference to libs project in IDE setup (#115942)
1 parent 5ce74d3 commit 30079d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-tools-internal/src/main/groovy/elasticsearch.ide.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ if (providers.systemProperty('idea.active').getOrNull() == 'true') {
137137
}
138138
}
139139

140-
// modifies the idea module config to enable preview features on 'elasticsearch-native' module
140+
// modifies the idea module config to enable preview features on ':libs:native' module
141141
tasks.register("enablePreviewFeatures") {
142142
group = 'ide'
143143
description = 'Enables preview features on native library module'
144144
dependsOn tasks.named("enableExternalConfiguration")
145145

146146
doLast {
147147
['main', 'test'].each { sourceSet ->
148-
modifyXml(".idea/modules/libs/native/elasticsearch.libs.elasticsearch-native.${sourceSet}.iml") { xml ->
148+
modifyXml(".idea/modules/libs/native/elasticsearch.libs.${project.project(':libs:native').name}.${sourceSet}.iml") { xml ->
149149
xml.component.find { it.'@name' == 'NewModuleRootManager' }?.'@LANGUAGE_LEVEL' = 'JDK_21_PREVIEW'
150150
}
151151
}

0 commit comments

Comments
 (0)