[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/24: gnu: Add java-fasterxml-jackson-core.
From: |
julien lepiller |
Subject: |
16/24: gnu: Add java-fasterxml-jackson-core. |
Date: |
Tue, 10 Oct 2017 16:08:16 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 0b5481dfd3c024ad18243016f297fc6848815e0b
Author: Julien Lepiller <address@hidden>
Date: Wed Oct 4 20:22:18 2017 +0200
gnu: Add java-fasterxml-jackson-core.
* 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 dc0fbd2..38c7318 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5684,3 +5684,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
- 14/24: gnu: Add java-ops4j-pax-exam-core-junit., (continued)
- 14/24: gnu: Add java-ops4j-pax-exam-core-junit., julien lepiller, 2017/10/10
- 24/24: services: vpn: Fix default tls-auth configuration., julien lepiller, 2017/10/10
- 20/24: gnu: Add java-fasterxml-jackson-dataformat-yaml., julien lepiller, 2017/10/10
- 15/24: gnu: Add java-fasterxml-jackson-annotations., julien lepiller, 2017/10/10
- 18/24: gnu: Add java-fasterxml-jackson-modules-base-jaxb., julien lepiller, 2017/10/10
- 13/24: gnu: Add java-ops4j-pax-exam-core-spi., julien lepiller, 2017/10/10
- 22/24: gnu: Add java-woodstox-core., julien lepiller, 2017/10/10
- 21/24: gnu: Add java-stax2-api., julien lepiller, 2017/10/10
- 23/24: gnu: Add java-fasterxml-jackson-dataformat-xml., julien lepiller, 2017/10/10
- 11/24: gnu: Add java-ops4j-pax-tinybundles., julien lepiller, 2017/10/10
- 16/24: gnu: Add java-fasterxml-jackson-core.,
julien lepiller <=