Skip to content

Commit cf25e14

Browse files
committed
Cleanup README, fix broken links
1 parent bc4769e commit cf25e14

File tree

2 files changed

+75
-65
lines changed

2 files changed

+75
-65
lines changed

CHANGES.md

+27-22
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@
22

33
## Version 3.0 (Unreleased)
44

5+
### Breaking Changes
6+
7+
* From version 3.0, the jar distributed to Maven Central is now compiled to Java 1.8 bytecode,
8+
and is not compatible with previous versions of Java. See
9+
[Issue #331](https://github.com/hamcrest/JavaHamcrest/issues/331) and
10+
[PR #411](https://github.com/hamcrest/JavaHamcrest/issues/411) for details. Developers who use Java 1.7 earlier can still
11+
depend upon `hamcrest-2.2.jar`.
12+
513
### Improvements
614

7-
* Java 1.8 or newer ([Issue #331](https://github.com/hamcrest/JavaHamcrest/issues/331), [PR #411](https://github.com/hamcrest/JavaHamcrest/issues/411)).
815
* FileMatchersTest simplification ([PR #389](https://github.com/hamcrest/JavaHamcrest/issues/389))
916
* License cleanup ([PR #414](https://github.com/hamcrest/JavaHamcrest/issues/414),
10-
[PR #415](https://github.com/hamcrest/JavaHamcrest/issues/415), see also
11-
[#264](https://github.com/hamcrest/JavaHamcrest/issues/264),
12-
[#355](https://github.com/hamcrest/JavaHamcrest/issues/355),
13-
[#396](https://github.com/hamcrest/JavaHamcrest/issues/396),and
14-
[#399](https://github.com/hamcrest/JavaHamcrest/issues/399))
15-
16-
TBD
17+
[PR #415](https://github.com/hamcrest/JavaHamcrest/issues/415), see also
18+
[#264](https://github.com/hamcrest/JavaHamcrest/issues/264),
19+
[#355](https://github.com/hamcrest/JavaHamcrest/issues/355),
20+
[#396](https://github.com/hamcrest/JavaHamcrest/issues/396),and
21+
[#399](https://github.com/hamcrest/JavaHamcrest/issues/399))
1722

1823
### Bugfixes
1924

@@ -30,7 +35,7 @@ TBD
3035
* Build now checks for consistent use of spaces ([PR #217](https://github.com/hamcrest/JavaHamcrest/pull/217))
3136

3237
### Bugfixes
33-
* Fix compatibility issue for development with Android D8 ([Issue #246](https://github.com/hamcrest/JavaHamcrest/issues/246))
38+
* Fix compatibility issue for development with Android D8 ([Issue #246](https://github.com/hamcrest/JavaHamcrest/issues/246))
3439
* Fix typo in license name ([Issue #247](https://github.com/hamcrest/JavaHamcrest/pull/247))
3540
* 1.3 compatible constructors for string matchers ([Issue #259](https://github.com/hamcrest/JavaHamcrest/issues/259), [Issue #260](https://github.com/hamcrest/JavaHamcrest/issues/260))
3641
* Fix for split packages with Java 9 modules ([Issue #269](https://github.com/hamcrest/JavaHamcrest/issues/269), [PR #270](https://github.com/hamcrest/JavaHamcrest/pull/270))
@@ -48,13 +53,13 @@ GitHub, along with numerous other new features, improvements and bug fixes.
4853
### Breaking Changes for 2.1
4954

5055
* The way that the project is packaged has changed. This may cause problems with
51-
correctly upgrading transitive dependencies. Refer to the
52-
[Hamcrest Distributables](http://hamcrest.org/JavaHamcrest/distributables.html)
53-
documentation for more information, and in particular,
54-
[Upgrading from Hamcrest 1.x](http://hamcrest.org/JavaHamcrest/distributables.html#upgrading-from-hamcrest-1.x)
56+
correctly upgrading transitive dependencies. Refer to the
57+
[Hamcrest Distributables](http://hamcrest.org/JavaHamcrest/distributables.html)
58+
documentation for more information, and in particular,
59+
[Upgrading from Hamcrest 1.x](http://hamcrest.org/JavaHamcrest/distributables.html#upgrading-from-hamcrest-1.x)
5560
* `org.hamcrest.Factory` has been removed. This was only used in old implementations
56-
of the hamcrest build toolchain, and can safely be deleted from client code without
57-
any effect.
61+
of the hamcrest build toolchain, and can safely be deleted from client code without
62+
any effect.
5863

5964
### Changes for 2.1
6065

@@ -69,7 +74,7 @@ any effect.
6974
* Fix for TypeSafeDiagnosingMatcher can't detect generic types for subclass
7075
* Make Hamcrest an OSGI bundle
7176
* Add StringRegularExpression matcher
72-
* Fix StringContainsInOrder to detect if a repeated pattern is missing
77+
* Fix StringContainsInOrder to detect if a repeated pattern is missing
7378
* Add ArrayAsIterableMatcher
7479
* Fix description for IsEqualIgnoringCase
7580
* Removed deprecated methods from previous release
@@ -112,17 +117,17 @@ any effect.
112117
* Added WithSamePropertyValuesAs matcher
113118
* Moved any() from IsAnything to IsInstanceOf. It now checks the type of the matched object
114119
* Moved MatcherAssert from integration to core
115-
* Tightened up generics.
116-
* Added IsMapContainingKey and IsMapContainingValue matchers to resolve a
120+
* Tightened up generics.
121+
* Added IsMapContainingKey and IsMapContainingValue matchers to resolve a
117122
generics bug in hasKey and hasValue static factories previously declared
118123
in IsMapContaining (ngd)
119-
* Added IsCollectionOnlyContaining and IsArrayOnlyContaining which matches
120-
collections (and arrays) where all match a given matcher. E.g onlyContains(3,4,5)
124+
* Added IsCollectionOnlyContaining and IsArrayOnlyContaining which matches
125+
collections (and arrays) where all match a given matcher. E.g onlyContains(3,4,5)
121126
or onlyContains(lessThan(9))
122127
* text module moved to separate project, hamcrest-text-patterns
123128
* added more colection matchers: xContainingInAnyOrder, xContainingInOrder, xWithSize
124129
* new text Matcher: IsEmptyString
125-
* hamcrest generator uses method return type
130+
* hamcrest generator uses method return type
126131

127132
## Version 1.1 (30th June 2007)
128133

@@ -146,7 +151,7 @@ any effect.
146151
* Generator recognizes @Factory methods that return subclass of Matcher.
147152
(Fix by David Saff)
148153

149-
## Version 1.0 (15th Dececmber 2006)
154+
## Version 1.0 (15th December 2006)
150155

151156
Initial release.
152157

README.md

+48-43
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,68 @@
11
![JavaHamcrest](http://hamcrest.org/images/logo.jpg)
22

3-
[![Build Status](https://travis-ci.org/hamcrest/JavaHamcrest.png?branch=master)](https://travis-ci.org/hamcrest/JavaHamcrest) [![Maven Central](https://img.shields.io/maven-central/v/org.hamcrest/hamcrest.svg?label=Maven%20Central)](https://search.maven.org/artifact/org.hamcrest/hamcrest)
3+
[![Build Status](https://github.com/hamcrest/JavaHamcrest/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/hamcrest/JavaHamcrest/actions/workflows/build.yml)
4+
[![Maven Central](https://img.shields.io/maven-central/v/org.hamcrest/hamcrest.svg?label=Maven%20Central)](https://search.maven.org/artifact/org.hamcrest/hamcrest)
5+
[![License](https://img.shields.io/github/license/hamcrest/JavaHamcrest.svg)](LICENSE)
46

5-
Java Hamcrest
6-
=============
7-
Licensed under [BSD License][].
87

9-
What is Hamcrest?
10-
-----------------
8+
# Java Hamcrest
9+
10+
## What is Hamcrest?
11+
1112
Hamcrest is a library of matchers, which can be combined in to create flexible expressions of intent in tests.
1213
They've also been used for other purposes.
1314

14-
Downloads
15-
---------
16-
You can obtain Hamcrest binaries from [maven central](https://search.maven.org/artifact/org.hamcrest/hamcrest). Learn more at [Hamcrest Distributables](http://hamcrest.org/JavaHamcrest/distributables).
15+
The [tutorial]([Hamcrest Distributables](http://hamcrest.org/JavaHamcrest/tutorial)) is
16+
good place to see how Hamcrest can be used.
17+
18+
## Downloads
1719

18-
Extensions
19-
----------
20+
You can obtain Hamcrest binaries from [maven central](https://search.maven.org/artifact/org.hamcrest/hamcrest). If you
21+
are using build tooling such as Maven, Gradle, etc, you can simply add a dependency declaration to your build
22+
definition. Learn more at [Hamcrest Distributables](http://hamcrest.org/JavaHamcrest/distributables).
2023

21-
For Hamcrest extension projects see the [hamcrest extensions page][].
24+
## Documentation
2225

23-
Documentation
24-
-------------
2526
Documentation can be found on the [Hamcrest site](http://hamcrest.org).
2627

27-
Reporting Bugs/Issues
28-
---------------------
29-
If you find an issue with Java Hamcrest, please report it via the
30-
[GitHub issue tracker](https://github.com/hamcrest/JavaHamcrest/issues),
31-
after first checking that it hasn't been raised already.
28+
## Reporting Bugs/Issues
3229

33-
Source
34-
------
35-
To build, please read BUILDING.txt
30+
If you find an issue with Java Hamcrest, please report it via the
31+
[GitHub issue tracker](https://github.com/hamcrest/JavaHamcrest/issues),
32+
after first checking that it hasn't been raised already.
3633

37-
Acknowledgements
38-
----------------
39-
Developers:
34+
## Build from Source
4035

41-
* Joe Walnes
42-
* Nat Pryce
43-
* Steve Freeman
36+
Building Hamcrest from source requires a minimum of JDK 1.8.
4437

45-
Contributors:
38+
Clone the repository, and from the top level directory in the repo
39+
run the following command:
4640

47-
* Robert Chatley
48-
* Tom White
49-
* Neil Dunn
50-
* Dan North
51-
* Magne Rasmussen
52-
* David Saff
53-
* Tom Denley
54-
* Joe Schmetzer
41+
```shell
42+
./gradlew clean build javadoc
43+
```
44+
This will download the correct version of Gradle, do a full clean build,
45+
run all tests and (if successful) package the compiled classes in a jar
46+
file. The resulting look under the `hamcrest/build/libs` directory.
5547

56-
Also, thanks to everyone who has worked on DynaMock, nMock, jMock, EasyMock and MiniMock! These libraries inspired Hamcrest.
48+
## Acknowledgements
5749

50+
Developers:
51+
52+
* Joe Walnes
53+
* Nat Pryce
54+
* Steve Freeman
55+
56+
Contributors:
5857

59-
[logo]: http://hamcrest.org/images/logo.jpg
60-
[website]: https://github.com/hamcrest/JavaHamcrest
61-
[BSD License]: http://opensource.org/licenses/BSD-3-Clause
62-
[hamcrest extensions page]: https://github.com/hamcrest/JavaHamcrest/wiki/Related-Projects
63-
[GitHub issue tracker]: https://github.com/hamcrest/JavaHamcrest/issues
58+
* Robert Chatley
59+
* Tom White
60+
* Neil Dunn
61+
* Dan North
62+
* Magne Rasmussen
63+
* David Saff
64+
* Tom Denley
65+
* Joe Schmetzer
66+
67+
Also, thanks to everyone who has worked on DynaMock, nMock, jMock, EasyMock
68+
and MiniMock! These libraries inspired Hamcrest.

0 commit comments

Comments
 (0)