Skip to content

Commit

Permalink
Update reference to libs project in IDE setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Oct 30, 2024
1 parent 099a3db commit 1ed4df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-tools-internal/src/main/groovy/elasticsearch.ide.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ 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'
dependsOn tasks.named("enableExternalConfiguration")

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'
}
}
Expand Down

0 comments on commit 1ed4df2

Please sign in to comment.