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

processIntegrationTestsResources make Intellij to hide pipeline-libs #85

Open
Jonatha1983 opened this issue May 26, 2019 · 1 comment
Open

Comments

@Jonatha1983
Copy link

Jonatha1983 commented May 26, 2019

Hi @mkobit again !!

So I succeed reproducing the issue I was talking on in the previous comment.
Before the steps I will try to present the dev environment:
We have two projects:

  1. Pipeline - Only Jenkins files for various pipeline flows
  2. Pipeline-libs - The infra and utils to support the pipeline

Those two are in separate repo - but often when doing changes to the pipeline, developers need to make also changes in pipeline-libs ( not always but it happen).
So we decided to include the pipeline-libs in pipeline ( again with includeBuild to avoid each user to import it in IntelliJ).

Step to reproduce:

  1. Create a sample gradle groovy project and open Intellij idea on it.
  2. IncludeBuild in the Setting file the https://github.com/mkobit/jenkins-pipeline-shared-library-example (download it if needed) -
  3. See that all the project is imported correctly.
  4. Run the processIntegrationTestResource of the example project see how all the project structure disappear.

Now this does not happen if you open only the example project - so it is related to the includeBuild some how but also when opening just the project libs after running the task Intellij mark the folder as a module ( under build/generated-src/integrationTest/) so it is a bug.

So I started to check the pipeline plugin code and I think that it should use the idea plugin to set generate source location - I found an example in this project: https://github.com/mikhailstepanov88/grpc_kotlin/tree/master/src/main/kotlin/com/github/mikhailstepanov88/grpc_kotlin/internal/plugin/configurer

I can try to fix this if you agree - it will take me some times since it is a busy week.

Also I did not found the new release in gradle plugin portal - are you planing to upload it there ?

Thanks

@mkobit
Copy link
Owner

mkobit commented May 28, 2019

I just manually released 0.9.0 because I was having some difficulties getting Circle CI to trigger on tag builds - https://plugins.gradle.org/plugin/com.mkobit.jenkins.pipelines.shared-library/0.9.0

I haven't looked into this issue, yet.

Usually, IDEA inspects the source sets of a project to know how to handle them in IntelliJ, so there isn't a need to use the idea plugin. Maybe something else is going on here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants