Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Explicitly require hamcrest core so we don't rely on other bundles re-exporting API #97

Merged
merged 1 commit into from Jan 23, 2015
Merged

Explicitly require hamcrest core so we don't rely on other bundles re-exporting API #97

merged 1 commit into from Jan 23, 2015

Conversation

mbooth101
Copy link
Contributor

Background:

As a linux distro integrator it is a hard rule that we must build everything from source, which includes the restrictions on re-using pre-built binary artefacts from Orbit. Because we can't re-use things from Orbit, it means that osgi metadata sometimes differs between the upstream project's builds and Orbit builds of a given third-party dependency. We try to stay as close as possible to the upstream project's build to reduce our patch maintenance burden.

The problem:

The com.mountainminds.eclemma.core.test relies on hamcrest core, it does not import "org.hamcrest.core" in the manifest. This means that when re-building against versions of junit that do not reexport the hamcrest core API, the build will fail. Adding an extra requirement on the "org.hamcrest.core" bundle will prevent such a failure.

This pull request contains a small (two-line) patch that makes the dependency on hamcrest more explicit.

@marchof
Copy link
Member

marchof commented Jan 23, 2015

Sounds reasonable, many thanks!

marchof added a commit that referenced this pull request Jan 23, 2015
Explicitly require hamcrest core so we don't rely on other bundles re-exporting API
@marchof marchof merged commit 687fea0 into jacoco:master Jan 23, 2015
@marchof marchof modified the milestones: Release 2.3.2, Release 2.3.3 Jan 23, 2015
@marchof
Copy link
Member

marchof commented Jan 23, 2015

@mbooth101 Do you urgently need a release for this?

@mbooth101
Copy link
Contributor Author

We are carrying this patch in Fedora, so we will drop the patch when you make your next release -- no urgency needed :-)

Thanks for merging, btw!

@jacoco jacoco locked and limited conversation to collaborators Jan 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants