Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename ql:test project to ql:test-fixtures to avoid IntelliJ confusion #71135

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

mark-vieira
Copy link
Contributor

@mark-vieira mark-vieira commented Mar 31, 2021

IntelliJ is setup such that it creates a module per Gradle project source set. This means most Gradle projects actually map to multiple IntelliJ modules. In the most common scenario you get a main and test module. These "submodule" names are generated by appending the source set name to the project name. So :server creates two modules, server.main and server.test.

The :x-pack:plugin:ql project was unique in that it had both a source set named test as well as a subproject named test. This means that IntelliJ had two modules, both with the name x-pack.plugin.ql.test which could occasionally cause sync issues or the IDE to report it couldn't find classes.

image

The solution here was simply to rename the ql:test project to something unique, in this case, test-fixtures which is actually a better description of what that project actually is anyhow.

@mark-vieira mark-vieira added the :Delivery/Build Build or test infrastructure label Mar 31, 2021
@elasticmachine elasticmachine added the Team:Delivery Meta label for Delivery team label Mar 31, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >refactoring Team:Delivery Meta label for Delivery team v7.13.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants