File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
build-tools-internal/src/main/groovy Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments