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

Add workflow-job tests jar to bom #264

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

dwnusbaum
Copy link
Member

@dwnusbaum dwnusbaum commented Jul 1, 2020

workflow-job has a tests jar that is used by at least workflow-multibranch, so it would be nice for that to be in the BOM.

(I think there are currently only two source files in the tests jar that other plugins might use: MockTrigger and QueryingMockTrigger. workflow-multibranch only uses MockTrigger, and I'm not aware of any other plugins that depend on the workflow-job tests jar, so I could also see an argument for just copying the source code of MockTrigger to workflow-multibranch and removing the tests jar from workflow-job completely, but I figured I'd file this first and see what people think)

Comment on lines +106 to +111
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-job</artifactId>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I need to update the tests to exercise this dependency. If so, is it enough to just add an unused import to verify that the dependency is available during compilation?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary in this case. We just require that the sample plugin’s POM exercises all dependencies to verify that it can be done without triggering Enforcer violations or the like.

Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine, @jglick?

@timja timja requested a review from jglick July 7, 2020 14:56
@timja timja added the enhancement New feature or request label Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants