summaryrefslogtreecommitdiff
path: root/gnu/packages/java.scm
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2026-01-17 17:09:56 +0100
committerJulien Lepiller <julien@lepiller.eu>2026-02-04 18:48:28 +0100
commitb3afd035282aa636e19e50d7f61dbf24985fa0e3 (patch)
treed6383fe6d04faa863cc0058ca6160c12998eae40 /gnu/packages/java.scm
parentf5d7b5ddc65b383ac8984149c04b1164820b91bf (diff)
gnu: Add java-hamcrest.
* gnu/packages/java.scm (java-hamcrest): New variable. Change-Id: Ic9611714ac2066334caea7a41d21bd8b33ef29cc Signed-off-by: Julien Lepiller <julien@lepiller.eu>
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r--gnu/packages/java.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 8273b55fbbe..8254cf89bf9 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -24,6 +24,7 @@
;;; Copyright © 2024 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2025 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2025 Julian Flake <julian@flake.de>
+;;; Copyright © 2026 Mathieu Lirzin <mthl@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -3511,6 +3512,33 @@ libraries and embed them into your own distribution. Jar Jar Links includes
an Ant task that extends the built-in @code{jar} task.")
(license license:asl2.0)))
+(define-public java-hamcrest
+ (package
+ (name "java-hamcrest")
+ (version "3.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/hamcrest/JavaHamcrest/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "07cagv2ncs4y02fmwbll3r4rqpjf3zxs163ync24q3x9fplrxmly"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:tests? #f ; Tests require junit
+ #:source-dir "hamcrest/src/main"
+ #:jar-name "hamcrest.jar"))
+ (home-page "https://hamcrest.org/")
+ (synopsis "Library of matchers for building test expressions")
+ (description
+ "This package provides a library of matcher objects (also known as
+constraints or predicates) allowing @code{match} rules to be defined
+declaratively, to be used in other frameworks. Typical scenarios include
+testing frameworks, mocking libraries and UI validation rules.")
+ (license license:bsd-3)))
+
(define-public java-hamcrest-core
(package
(name "java-hamcrest-core")