Re: Digest for hamcrest-java@googlegroups.com - 1 update in 1 topic

12 views
Skip to first unread message

Oliver Bye

unread,
Dec 23, 2014, 2:48:32 AM12/23/14
to hamcre...@googlegroups.com

Agreed.

Can I propose breaking out the jmock/hamcrest interdependencies (some tests and examples) into another project?
As it makes bootstrapping a clean build impossible without copies of old jars.

Oli

On 23 Dec 2014 05:37, <hamcre...@googlegroups.com> wrote:
Steve Freeman <st...@m3p.co.uk>: Dec 22 09:07PM +0100

Chatting briefly with Nat recently, it became clear that one blocker to change is the complexity of the current build. So I have a proposal, which I'll call Hamcrest 7.0. When we port to Java 8, it will become Hamcrest 8.0.
 
1) collapse everything to one jar. I can't think of a use case where all the different sub jars are useful.
 
2) Freeze the Matchers and CoreMatchers classes. As the number of matchers grows, the Matchers class is getting too large to be useful, and the code-gen step is a pain. I propose that we break up the collection matchers in ListMatchers, SetMatchers, etc, like the Google collections API does, which I believe will fix some of the template pain. Similarly for other types of matchers. It's not that much of a burden to write new helper factory methods by hand and modern IDEs will do the hard work of importing. Check in the current version of Matchers for backwards compatibility but deprecate it.
 
3) This allows us to port to Gradle as a build tool, which has some publishing features built in.
 
When all of this is stable, the clean up starts with Hamcrest 7.1
 
For Java 8 matching, as some have mentioned, we start an additional library where extra features become candidates for including in the next major release.
 
I've started a branch in GitHub.
 
Thoughts?
 
S
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to hamcrest-jav...@googlegroups.com.

Steve Freeman

unread,
Dec 23, 2014, 3:24:51 AM12/23/14
to hamcre...@googlegroups.com
Already done.

S
Reply all
Reply to author
Forward
0 new messages