unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: julien@lepiller.eu
To: 28707@debbugs.gnu.org
Subject: [bug#28707] [PATCH 16/23] gnu: Add java-fasterxml-jackson-core.
Date: Wed,  4 Oct 2017 22:37:28 +0200	[thread overview]
Message-ID: <20171004203735.21155-16-julien@lepiller.eu> (raw)
In-Reply-To: <20171004203735.21155-1-julien@lepiller.eu>

From: Julien Lepiller <julien@lepiller.eu>

* gnu/packages/java.scm (java-fasterxml-jackson-core): New variable.
---
 gnu/packages/java.scm | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 4a92533ab..7abbc08dd 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5649,3 +5649,60 @@ the system under test at the same time.")
 Jackson Data Processor, used on value and handler types.  The only annotations
 not included are ones that require dependency to the Databind package.")
     (license license:asl2.0)))
+
+(define-public java-fasterxml-jackson-core
+  (package
+    (name "java-fasterxml-jackson-core")
+    (version "2.9.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/FasterXML/"
+                                  "jackson-core/archive/"
+                                  "jackson-core-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1sdfp74zvlh4xr5h5bj87yjlp6kny3i8ai9m0q3xs7f8hvmxpx09"))))
+    (build-system ant-build-system)
+    (arguments
+     `(#:jar-name "jackson-core.jar"
+       #:source-dir "src/main/java"
+       #:test-dir "src/test"
+       #:test-exclude
+       (list
+         ;; Expected failure.  pom.xml excludes these
+         "**/failing/**"
+         ;; Base classes that have no constructor for junit
+         "**/BaseTest.java"
+         "**/ConcurrencyReadTest.java"
+         "**/ManualCharAccessTest.java"
+         "**/ManualCharAccessTest.java"
+         "**/TrailingCommasTest.java"
+         "**/AsyncMissingValuesInObjectTest.java"
+         "**/AsyncMissingValuesInArrayTest.java")
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'generate-PackageVersion.java
+           (lambda _
+             (let* ((out "src/main/java/com/fasterxml/jackson/core/json/PackageVersion.java")
+                    (in (string-append out ".in")))
+               (copy-file in out)
+               (substitute* out
+                 (("@package@") "com.fasterxml.jackson.core.json")
+                 (("@projectversion@") ,version)
+                 (("@projectgroupid@") "com.fasterxml.jackson.core")
+                 (("@projectartifactid@") "jackson-core")))))
+         (add-before 'build 'copy-resources
+           (lambda _
+             (copy-recursively "src/main/resources"
+                               "build/classes")))
+         (add-before 'check 'copy-test-resources
+           (lambda _
+             (copy-recursively "src/test/resources"
+                               "build/test-classes"))))))
+    (native-inputs
+     `(("junit" ,java-junit)
+       ("hamcrest" ,java-hamcrest-core)))
+    (home-page "https://github.com/FasterXML/jackson-core")
+    (synopsis "")
+    (description "")
+    (license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
-- 
2.14.2

  parent reply	other threads:[~2017-10-04 21:00 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04 20:33 [bug#28707] [PATCH] java packages Julien Lepiller
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
2017-10-04 20:37   ` [bug#28707] [PATCH 02/23] gnu: Add java-ops4j-base-monitors julien
2017-10-04 20:37   ` [bug#28707] [PATCH 03/23] gnu: Add java-ops4j-base-io julien
2017-10-04 20:37   ` [bug#28707] [PATCH 04/23] gnu: Add java-ops4j-base-util julien
2017-10-04 20:37   ` [bug#28707] [PATCH 05/23] gnu: Add java-ops4j-base-util-property julien
2017-10-04 20:37   ` [bug#28707] [PATCH 06/23] gnu: Add java-ops4j-base-store julien
2017-10-04 20:37   ` [bug#28707] [PATCH 07/23] gnu: Add java-ops4j-base-spi julien
2017-10-04 20:37   ` [bug#28707] [PATCH 08/23] gnu: Add java-aqute-bnd-annotation julien
2017-10-04 20:37   ` [bug#28707] [PATCH 09/23] gnu: Add java-aqute-libg julien
2017-10-04 20:37   ` [bug#28707] [PATCH 10/23] gnu: Add java-aqute-bndlib julien
2017-10-04 20:37   ` [bug#28707] [PATCH 11/23] gnu: Add java-ops4j-pax-tinybundles julien
2017-10-04 20:37   ` [bug#28707] [PATCH 12/23] gnu: Add java-ops4j-pax-exam-core julien
2017-10-04 20:37   ` [bug#28707] [PATCH 13/23] gnu: Add java-ops4j-pax-exam-core-spi julien
2017-10-04 20:37   ` [bug#28707] [PATCH 14/23] gnu: Add java-ops4j-pax-exam-core-junit julien
2017-10-04 20:37   ` [bug#28707] [PATCH 15/23] gnu: Add java-fasterxml-jackson-annotations julien
2017-10-04 20:37   ` julien [this message]
2017-10-04 20:37   ` [bug#28707] [PATCH 17/23] gnu: Add java-fasterxml-jackson-databind julien
2017-10-04 20:37   ` [bug#28707] [PATCH 18/23] gnu: Add java-fasterxml-jackson-modules-base-jaxb julien
2017-10-04 20:37   ` [bug#28707] [PATCH 19/23] gnu: Add java-snakeyaml julien
2017-10-04 20:37   ` [bug#28707] [PATCH 20/23] gnu: Add java-fasterxml-jackson-dataformat-yaml julien
2017-10-04 20:37   ` [bug#28707] [PATCH 21/23] gnu: Add java-stax2-api julien
2017-10-04 20:37   ` [bug#28707] [PATCH 22/23] gnu: Add java-woodstox-core julien
2017-10-04 20:37   ` [bug#28707] [PATCH 23/23] gnu: Add java-fasterxml-jackson-dataformat-xml julien
2017-10-09 19:36 ` [bug#28707] [PATCH] java packages Leo Famulari
2017-10-10 20:08   ` bug#28707: " Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171004203735.21155-16-julien@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=28707@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).