diff options
| author | Mathieu Lirzin <mthl@gnu.org> | 2026-01-17 17:09:56 +0100 |
|---|---|---|
| committer | Julien Lepiller <julien@lepiller.eu> | 2026-02-04 18:48:28 +0100 |
| commit | b3afd035282aa636e19e50d7f61dbf24985fa0e3 (patch) | |
| tree | d6383fe6d04faa863cc0058ca6160c12998eae40 /gnu/packages/java.scm | |
| parent | f5d7b5ddc65b383ac8984149c04b1164820b91bf (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.scm | 28 |
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 @@ | |||
| 24 | ;;; Copyright © 2024 Hartmut Goebel <h.goebel@crazy-compilers.com> | 24 | ;;; Copyright © 2024 Hartmut Goebel <h.goebel@crazy-compilers.com> |
| 25 | ;;; Copyright © 2025 Zheng Junjie <873216071@qq.com> | 25 | ;;; Copyright © 2025 Zheng Junjie <873216071@qq.com> |
| 26 | ;;; Copyright © 2025 Julian Flake <julian@flake.de> | 26 | ;;; Copyright © 2025 Julian Flake <julian@flake.de> |
| 27 | ;;; Copyright © 2026 Mathieu Lirzin <mthl@gnu.org> | ||
| 27 | ;;; | 28 | ;;; |
| 28 | ;;; This file is part of GNU Guix. | 29 | ;;; This file is part of GNU Guix. |
| 29 | ;;; | 30 | ;;; |
| @@ -3511,6 +3512,33 @@ libraries and embed them into your own distribution. Jar Jar Links includes | |||
| 3511 | an Ant task that extends the built-in @code{jar} task.") | 3512 | an Ant task that extends the built-in @code{jar} task.") |
| 3512 | (license license:asl2.0))) | 3513 | (license license:asl2.0))) |
| 3513 | 3514 | ||
| 3515 | (define-public java-hamcrest | ||
| 3516 | (package | ||
| 3517 | (name "java-hamcrest") | ||
| 3518 | (version "3.0") | ||
| 3519 | (source (origin | ||
| 3520 | (method git-fetch) | ||
| 3521 | (uri (git-reference | ||
| 3522 | (url "https://github.com/hamcrest/JavaHamcrest/") | ||
| 3523 | (commit (string-append "v" version)))) | ||
| 3524 | (file-name (git-file-name name version)) | ||
| 3525 | (sha256 | ||
| 3526 | (base32 | ||
| 3527 | "07cagv2ncs4y02fmwbll3r4rqpjf3zxs163ync24q3x9fplrxmly")))) | ||
| 3528 | (build-system ant-build-system) | ||
| 3529 | (arguments | ||
| 3530 | `(#:tests? #f ; Tests require junit | ||
| 3531 | #:source-dir "hamcrest/src/main" | ||
| 3532 | #:jar-name "hamcrest.jar")) | ||
| 3533 | (home-page "https://hamcrest.org/") | ||
| 3534 | (synopsis "Library of matchers for building test expressions") | ||
| 3535 | (description | ||
| 3536 | "This package provides a library of matcher objects (also known as | ||
| 3537 | constraints or predicates) allowing @code{match} rules to be defined | ||
| 3538 | declaratively, to be used in other frameworks. Typical scenarios include | ||
| 3539 | testing frameworks, mocking libraries and UI validation rules.") | ||
| 3540 | (license license:bsd-3))) | ||
| 3541 | |||
| 3514 | (define-public java-hamcrest-core | 3542 | (define-public java-hamcrest-core |
| 3515 | (package | 3543 | (package |
| 3516 | (name "java-hamcrest-core") | 3544 | (name "java-hamcrest-core") |
