* [bug#28707] [PATCH] java packages
@ 2017-10-04 20:33 Julien Lepiller
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
2017-10-09 19:36 ` [bug#28707] [PATCH] java packages Leo Famulari
0 siblings, 2 replies; 26+ messages in thread
From: Julien Lepiller @ 2017-10-04 20:33 UTC (permalink / raw)
To: 28707
Hi!
Here are 23 new packages that get us a bit closer to maven.
^ permalink raw reply [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang.
2017-10-04 20:33 [bug#28707] [PATCH] java packages Julien Lepiller
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 02/23] gnu: Add java-ops4j-base-monitors julien
` (21 more replies)
2017-10-09 19:36 ` [bug#28707] [PATCH] java packages Leo Famulari
1 sibling, 22 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-base-lang): New variable.
---
gnu/packages/java.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 4418b67ea..f1325be4e 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5280,3 +5280,38 @@ utility classes for the configuration of services.")
and service platform for the Java programming language. This package contains
the packageadmin service.")
(license license:asl2.0)))
+
+(define-public java-ops4j-base-lang
+ (package
+ (name "java-ops4j-base-lang")
+ (version "1.5.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/ops4j/org.ops4j.base/"
+ "archive/base-" version ".tar.gz"))
+ (sha256
+ (base32
+ "18hl3lpchgpv8yh5rlk39l2gif5dlfgb8gxjmncf39pr2dprkniw"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-ops4j-base-lang.jar"
+ #:source-dir "ops4j-base-lang/src/main/java"
+ #:tests? #f; no tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'add-test-file
+ (lambda _
+ ;; That file is required by a test in ops4j-pax-exam-core-spi
+ (mkdir-p "build/classes/META-INF/maven/org.ops4j.base/ops4j-base-lang")
+ (with-output-to-file "build/classes/META-INF/maven/org.ops4j.base/ops4j-base-lang/pom.properties"
+ (lambda _
+ (display
+ (string-append
+ "version=" ,version "\n"
+ "groupId=org.ops4j.base"
+ "artifactId=ops4j-base-lang\n")))))))))
+ (home-page "https://ops4j1.jira.com/wiki/spaces/base/overview")
+ (synopsis "Utility classes and extensions to be used in OPS4J projects")
+ (description "OPS4J stands for Open Participation Software for Java. This
+package contains utilities and extensions related to @code{java.lang}.")
+ (license license:asl2.0)))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 02/23] gnu: Add java-ops4j-base-monitors.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 03/23] gnu: Add java-ops4j-base-io julien
` (20 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-base-monitors): New variable.
---
gnu/packages/java.scm | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index f1325be4e..246e255ea 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5315,3 +5315,16 @@ the packageadmin service.")
(description "OPS4J stands for Open Participation Software for Java. This
package contains utilities and extensions related to @code{java.lang}.")
(license license:asl2.0)))
+
+(define-public java-ops4j-base-monitors
+ (package
+ (inherit java-ops4j-base-lang)
+ (name "java-ops4j-base-monitors")
+ (arguments
+ `(#:jar-name "java-ops4j-base-monitors.jar"
+ #:source-dir "ops4j-base-monitors/src/main/java"
+ #:tests? #f)); no tests
+ (inputs
+ `(("lang" ,java-ops4j-base-lang)))
+ (description "OPS4J stands for Open Participation Software for Java. This
+package contains utilities and extensions related to monitoring.")))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 03/23] gnu: Add java-ops4j-base-io.
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 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 04/23] gnu: Add java-ops4j-base-util julien
` (19 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-base-io): New variable.
---
gnu/packages/java.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 246e255ea..96ef7c033 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5328,3 +5328,22 @@ package contains utilities and extensions related to @code{java.lang}.")
`(("lang" ,java-ops4j-base-lang)))
(description "OPS4J stands for Open Participation Software for Java. This
package contains utilities and extensions related to monitoring.")))
+
+(define-public java-ops4j-base-io
+ (package
+ (inherit java-ops4j-base-lang)
+ (name "java-ops4j-base-io")
+ (arguments
+ `(#:jar-name "java-ops4j-base-io.jar"
+ #:source-dir "ops4j-base-io/src/main/java"
+ #:test-dir "ops4j-base-io/src/test"
+ #:test-exclude
+ (list "**/ListerTest.java")))
+ (inputs
+ `(("lang" ,java-ops4j-base-monitors)
+ ("lang" ,java-ops4j-base-lang)))
+ (native-inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)))
+ (description "OPS4J stands for Open Participation Software for Java. This
+package contains utilities and extensions related to handling streams and files.")))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 04/23] gnu: Add java-ops4j-base-util.
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 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 05/23] gnu: Add java-ops4j-base-util-property julien
` (18 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-base-util): New variable.
---
gnu/packages/java.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 96ef7c033..1c7b5f92e 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5347,3 +5347,19 @@ package contains utilities and extensions related to monitoring.")))
("hamcrest" ,java-hamcrest-core)))
(description "OPS4J stands for Open Participation Software for Java. This
package contains utilities and extensions related to handling streams and files.")))
+
+(define-public java-ops4j-base-util
+ (package
+ (inherit java-ops4j-base-lang)
+ (name "java-ops4j-base-util")
+ (arguments
+ `(#:jar-name "java-ops4j-base-util.jar"
+ #:source-dir "ops4j-base-util/src/main/java"
+ #:test-dir "ops4j-base-util/src/test"))
+ (inputs
+ `(("lang" ,java-ops4j-base-lang)))
+ (native-inputs
+ `(("junit" ,java-junit)))
+ (description "OPS4J stands for Open Participation Software for Java. This
+package contains utilities and extensions related to environment, i18n and
+mime types.")))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 05/23] gnu: Add java-ops4j-base-util-property.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (2 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 04/23] gnu: Add java-ops4j-base-util julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 06/23] gnu: Add java-ops4j-base-store julien
` (17 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-base-util-property): New variable.
---
gnu/packages/java.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 1c7b5f92e..512583c7b 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5363,3 +5363,18 @@ package contains utilities and extensions related to handling streams and files.
(description "OPS4J stands for Open Participation Software for Java. This
package contains utilities and extensions related to environment, i18n and
mime types.")))
+
+(define-public java-ops4j-base-util-property
+ (package
+ (inherit java-ops4j-base-lang)
+ (name "java-ops4j-base-util-property")
+ (arguments
+ `(#:jar-name "java-ops4j-base-util-property.jar"
+ #:source-dir "ops4j-base-util-property/src/main/java"
+ #:tests? #f)); no tests
+ (inputs
+ `(("lang" ,java-ops4j-base-lang)
+ ("util" ,java-ops4j-base-util)))
+ (description "OPS4J stands for Open Participation Software for Java. This
+package contains utilities and extensions related to resolving properties from
+different sources.")))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 06/23] gnu: Add java-ops4j-base-store.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (3 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 05/23] gnu: Add java-ops4j-base-util-property julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 07/23] gnu: Add java-ops4j-base-spi julien
` (16 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-base-store): New variable.
---
gnu/packages/java.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 512583c7b..f66b97a6d 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5378,3 +5378,19 @@ mime types.")))
(description "OPS4J stands for Open Participation Software for Java. This
package contains utilities and extensions related to resolving properties from
different sources.")))
+
+(define-public java-ops4j-base-store
+ (package
+ (inherit java-ops4j-base-lang)
+ (name "java-ops4j-base-store")
+ (arguments
+ `(#:jar-name "java-ops4j-base-store.jar"
+ #:source-dir "ops4j-base-store/src/main/java"
+ #:tests? #f)); no tests
+ (inputs
+ `(("lang" ,java-ops4j-base-lang)
+ ("slf4j" ,java-slf4j-api)
+ ("io" ,java-ops4j-base-io)))
+ (description "OPS4J stands for Open Participation Software for Java. This
+package contains utilities for storing and retrieving data from an
+@code{InputStream}.")))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 07/23] gnu: Add java-ops4j-base-spi.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (4 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 06/23] gnu: Add java-ops4j-base-store julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 08/23] gnu: Add java-aqute-bnd-annotation julien
` (15 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-base-spi): New variable.
---
gnu/packages/java.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index f66b97a6d..4954653a7 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5394,3 +5394,18 @@ different sources.")))
(description "OPS4J stands for Open Participation Software for Java. This
package contains utilities for storing and retrieving data from an
@code{InputStream}.")))
+
+(define-public java-ops4j-base-spi
+ (package
+ (inherit java-ops4j-base-lang)
+ (name "java-ops4j-base-spi")
+ (arguments
+ `(#:jar-name "java-ops4j-base-spi.jar"
+ #:source-dir "ops4j-base-spi/src/main/java"
+ #:test-dir "ops4j-base-spi/src/test"))
+ (native-inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)))
+ (description "OPS4J stands for Open Participation Software for Java. This
+package contains utilities for obtaining services via the Java SE 6
+@code{ServiceLoader}.")))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 08/23] gnu: Add java-aqute-bnd-annotation.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (5 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 07/23] gnu: Add java-ops4j-base-spi julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 09/23] gnu: Add java-aqute-libg julien
` (14 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-aqute-bnd-annotation): New variable.
---
gnu/packages/java.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 4954653a7..4d23b8cdd 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5409,3 +5409,27 @@ package contains utilities for storing and retrieving data from an
(description "OPS4J stands for Open Participation Software for Java. This
package contains utilities for obtaining services via the Java SE 6
@code{ServiceLoader}.")))
+
+(define-public java-aqute-bnd-annotation
+ (package
+ (name "java-aqute-bnd-annotation")
+ (version "3.4.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/bndtools/bnd/archive/"
+ version ".REL.tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "09vgb6axikbz66zi9falijbnzh1qnp9ysfns123dmzdb01cbza9q"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-aqute-bnd-annotation.jar"
+ #:source-dir "biz.aQute.bnd.annotation/src"
+ #:tests? #f)); empty test dir
+ (home-page "http://bnd.bndtools.org/")
+ (synopsis "Tools for OSGi")
+ (description "Bnd is a swiss army knife for OSGi, it creates manifest
+headers based on analyzing the class code, it verifies the project settings,
+it manages project dependencies, gives diffs jars, and much more.")
+ (license license:asl2.0)))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 09/23] gnu: Add java-aqute-libg.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (6 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 08/23] gnu: Add java-aqute-bnd-annotation julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 10/23] gnu: Add java-aqute-bndlib julien
` (13 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-aqute-libg): New variable.
---
gnu/packages/java.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 4d23b8cdd..4bdb8241d 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5433,3 +5433,17 @@ package contains utilities for obtaining services via the Java SE 6
headers based on analyzing the class code, it verifies the project settings,
it manages project dependencies, gives diffs jars, and much more.")
(license license:asl2.0)))
+
+(define-public java-aqute-libg
+ (package
+ (inherit java-aqute-bnd-annotation)
+ (name "java-aqute-libg")
+ (arguments
+ `(#:jar-name "java-aqute-libg.jar"
+ #:source-dir "aQute.libg/src"
+ #:tests? #f)); FIXME: tests are in "aQute.libg/test", not in a java directory
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("osgi-annot" ,java-osgi-annotation)
+ ("java-osgi-cmpn" ,java-osgi-cmpn)
+ ("osgi" ,java-osgi-core)))))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 10/23] gnu: Add java-aqute-bndlib.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (7 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 09/23] gnu: Add java-aqute-libg julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 11/23] gnu: Add java-ops4j-pax-tinybundles julien
` (12 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-aqute-bndlib): New variable.
---
gnu/packages/java.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 4bdb8241d..2c52d8345 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5447,3 +5447,26 @@ it manages project dependencies, gives diffs jars, and much more.")
("osgi-annot" ,java-osgi-annotation)
("java-osgi-cmpn" ,java-osgi-cmpn)
("osgi" ,java-osgi-core)))))
+
+(define-public java-aqute-bndlib
+ (package
+ (inherit java-aqute-bnd-annotation)
+ (name "java-aqute-bndlib")
+ (arguments
+ `(#:jar-name "java-bndlib.jar"
+ #:source-dir "biz.aQute.bndlib/src"
+ #:tests? #f)); no tests
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("osgi-annot" ,java-osgi-annotation)
+ ("java-aqute-libg" ,java-aqute-libg)
+ ("java-aqute-bnd-annotation" ,java-aqute-bnd-annotation)
+ ("java-osgi-service-component-annotations" ,java-osgi-service-component-annotations)
+ ("java-osgi-service-repository" ,java-osgi-service-repository)
+ ("java-osgi-service-log" ,java-osgi-service-log)
+ ("java-osgi-service-metatype-annotations" ,java-osgi-service-metatype-annotations)
+ ("java-osgi-namespace-contract" ,java-osgi-namespace-contract)
+ ("java-osgi-namespace-extender" ,java-osgi-namespace-extender)
+ ("java-osgi-namespace-service" ,java-osgi-namespace-service)
+ ("promise" ,java-osgi-util-promise)
+ ("osgi" ,java-osgi-core)))))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 11/23] gnu: Add java-ops4j-pax-tinybundles.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (8 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 10/23] gnu: Add java-aqute-bndlib julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 12/23] gnu: Add java-ops4j-pax-exam-core julien
` (11 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-pax-tinybundles): New variable.
---
gnu/packages/java.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 2c52d8345..32d18ad54 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5470,3 +5470,52 @@ it manages project dependencies, gives diffs jars, and much more.")
("java-osgi-namespace-service" ,java-osgi-namespace-service)
("promise" ,java-osgi-util-promise)
("osgi" ,java-osgi-core)))))
+
+(define-public java-ops4j-pax-tinybundles
+ (package
+ (name "java-ops4j-pax-tinybundles")
+ (version "2.1.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/ops4j/org.ops4j.pax.tinybundles/"
+ "archive/tinybundles-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0y0gq3pvv0iir2b885lmlwnvr724vv7vklzhhr4fs27d7mdkj871"))))
+ (arguments
+ `(#:jar-name "java-ops4j-pax-tinybundles.jar"
+ #:source-dir "src/main/java"
+ #:test-exclude
+ ;; Abstract base classes for other tests
+ (list "**/BndTest.java" "**/CoreTest.java")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'fix-version
+ (lambda _
+ ;; This test has a reference to an old version of bndlib we are not
+ ;; packaging. It uses the version referenced in pom.xml. We replace
+ ;; it with our own version.
+ (substitute* "src/test/java/org/ops4j/pax/tinybundles/bnd/BndTest.java"
+ (("2.4.0.201411031534") "3.4.0")))))))
+ (inputs
+ `(("lang" ,java-ops4j-base-lang)
+ ("io" ,java-ops4j-base-io)
+ ("store" ,java-ops4j-base-store)
+ ("slf4j" ,java-slf4j-api)
+ ("libg" ,java-aqute-libg)
+ ("bndlib" ,java-aqute-bndlib)))
+ (native-inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)
+ ("log4j" ,java-log4j-api)
+ ("bndannotation" ,java-aqute-bnd-annotation)
+ ("framework" ,java-osgi-framework)))
+ (build-system ant-build-system)
+ (home-page "https://ops4j1.jira.com/wiki/spaces/ops4j/pages/12060312/Tinybundles")
+ (synopsis "Java APIs to create OSGi related artifacts")
+ (description "Tinybundles is all about creating OSGi related artifacts like
+Bundles, Fragments and Deployment Packages with Java Api. It is very convinient
+to create such artifacts on-the-fly inside Tests (like in Pax Exam). On the
+other hand, this library can be a foundation of real end user tools that need
+to create those artifacts.")
+ (license license:asl2.0)))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 12/23] gnu: Add java-ops4j-pax-exam-core.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (9 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 11/23] gnu: Add java-ops4j-pax-tinybundles julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 13/23] gnu: Add java-ops4j-pax-exam-core-spi julien
` (10 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-pax-exam-core): New variable.
---
gnu/packages/java.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 32d18ad54..0163172b9 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5519,3 +5519,36 @@ to create such artifacts on-the-fly inside Tests (like in Pax Exam). On the
other hand, this library can be a foundation of real end user tools that need
to create those artifacts.")
(license license:asl2.0)))
+
+(define-public java-ops4j-pax-exam-core
+ (package
+ (name "java-ops4j-pax-exam-core")
+ (version "4.11.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/ops4j/org.ops4j.pax.exam2/"
+ "archive/exam-reactor-" version ".tar.gz"))
+ (sha256
+ (base32
+ "08mzw8nkah3rj3vznlplnawspxhp61zgvb44ifqa1rni1cvbms2g"))))
+ (arguments
+ `(#:jar-name "java-ops4j-pax-exam-core.jar"
+ #:source-dir "core/pax-exam/src/main/java"
+ #:test-dir "core/pax-exam/src/test"))
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("lang" ,java-ops4j-base-lang)
+ ("io" ,java-ops4j-base-io)
+ ("util-property" ,java-ops4j-base-util-property)
+ ("util-store" ,java-ops4j-base-store)
+ ("java-osgi-core" ,java-osgi-core)))
+ (native-inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)))
+ (build-system ant-build-system)
+ (home-page "https://ops4j1.jira.com/wiki/spaces/PAXEXAM4/overview")
+ (synopsis "In-Container Testing for OSGi, Java EE and CDI")
+ (description "Pax Exam creates OSGi bundles for testing purposes. It lets
+the user take control of the OSGi framework, the test framework (e.g. JUnit) and
+the system under test at the same time.")
+ (license license:asl2.0)))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 13/23] gnu: Add java-ops4j-pax-exam-core-spi.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (10 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 12/23] gnu: Add java-ops4j-pax-exam-core julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 14/23] gnu: Add java-ops4j-pax-exam-core-junit julien
` (9 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-pax-exam-core-spi): New variable.
---
gnu/packages/java.scm | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 0163172b9..ddbf27a3d 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5552,3 +5552,59 @@ to create those artifacts.")
the user take control of the OSGi framework, the test framework (e.g. JUnit) and
the system under test at the same time.")
(license license:asl2.0)))
+
+(define-public java-ops4j-pax-exam-core-spi
+ (package
+ (inherit java-ops4j-pax-exam-core)
+ (name "java-ops4j-pax-exam-core-spi")
+ (arguments
+ `(#:jar-name "java-ops4j-pax-exam-spi.jar"
+ #:source-dir "src/main/java"
+ #:test-exclude
+ (list
+ ;; Abstract base class, not a test
+ "**/BaseStagedReactorTest.java"
+ ;; Depends on org.mortbay.jetty.testwars:test-war-dump
+ "**/WarBuilderTest.java")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ ;; Tests assume we are in this directory
+ (chdir "core/pax-exam-spi")))
+ (add-before 'check 'fix-tests
+ (lambda _
+ ;; One test checks that this file is present.
+ (mkdir-p "build/classes/META-INF/maven/org.ops4j.pax.exam/pax-exam-spi")
+ (with-output-to-file
+ "build/classes/META-INF/maven/org.ops4j.pax.exam/pax-exam-spi/pom.properties"
+ (lambda _
+ (display
+ (string-append "artifactId = pax-exam-spi\n"
+ "version = " ,(package-version java-ops4j-pax-exam-core-spi)))))
+ ;; Maven puts compilation results in the target directory, while we
+ ;; put them in the build directory.
+ (substitute* '("src/test/java/org/ops4j/pax/exam/spi/war/WarBuilderTest.java"
+ "src/test/java/org/ops4j/pax/exam/spi/war/WarTestProbeBuilderTest.java"
+ "src/test/java/org/ops4j/pax/exam/spi/war/ZipBuilderTest.java")
+ (("target") "build"))
+ ;; One test is expected to fail, but it doesn't throw the expected exception
+ (substitute* "src/test/java/org/ops4j/pax/exam/spi/reactors/BaseStagedReactorTest.java"
+ (("AssertionError") "IllegalArgumentException")))))))
+ (inputs
+ `(("java-ops4j-pax-exam-core" ,java-ops4j-pax-exam-core)
+ ("lang" ,java-ops4j-base-lang)
+ ("monitors" ,java-ops4j-base-monitors)
+ ("store" ,java-ops4j-base-store)
+ ("io" ,java-ops4j-base-io)
+ ("spi" ,java-ops4j-base-spi)
+ ("osgi" ,java-osgi-core)
+ ("slf4j" ,java-slf4j-api)
+ ("tinybundles" ,java-ops4j-pax-tinybundles)))
+ (native-inputs
+ `(("mockito" ,java-mockito-1)
+ ("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)
+ ("cglib" ,java-cglib)
+ ("objenesis" ,java-objenesis)
+ ("asm" ,java-asm)))))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 14/23] gnu: Add java-ops4j-pax-exam-core-junit.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (11 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 13/23] gnu: Add java-ops4j-pax-exam-core-spi julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 15/23] gnu: Add java-fasterxml-jackson-annotations julien
` (8 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-ops4j-pax-exam-core-junit): New variable.
---
gnu/packages/java.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index ddbf27a3d..df70f2637 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5608,3 +5608,18 @@ the system under test at the same time.")
("cglib" ,java-cglib)
("objenesis" ,java-objenesis)
("asm" ,java-asm)))))
+
+(define-public java-ops4j-pax-exam-core-junit
+ (package
+ (inherit java-ops4j-pax-exam-core)
+ (name "java-ops4j-pax-exam-core-junit")
+ (arguments
+ `(#:jar-name "ops4j-pax-exam-core-junit.jar"
+ #:source-dir "drivers/pax-exam-junit4/src/main/java"
+ #:tests? #f)); no tests
+ (inputs
+ `(("junit" ,java-junit)
+ ("slf4j" ,java-slf4j-api)
+ ("core" ,java-ops4j-pax-exam-core)
+ ("spi" ,java-ops4j-pax-exam-core-spi)))
+ (native-inputs '())))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 15/23] gnu: Add java-fasterxml-jackson-annotations.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (12 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 14/23] gnu: Add java-ops4j-pax-exam-core-junit julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 16/23] gnu: Add java-fasterxml-jackson-core julien
` (7 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-fasterxml-jackson-annotations): New
variable.
---
gnu/packages/java.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index df70f2637..4a92533ab 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5623,3 +5623,29 @@ the system under test at the same time.")
("core" ,java-ops4j-pax-exam-core)
("spi" ,java-ops4j-pax-exam-core-spi)))
(native-inputs '())))
+
+(define-public java-fasterxml-jackson-annotations
+ (package
+ (name "java-fasterxml-jackson-annotations")
+ (version "2.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/FasterXML/"
+ "jackson-annotations/archive/"
+ "jackson-annotations-" version ".tar.gz"))
+ (sha256
+ (base32
+ "005ksgqx2ds3zdmlvbcmmz82y28b1mx0i9bpvprim1jaddbba0bd"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "jackson-annotations.jar"
+ #:source-dir "src/main/java"
+ #:test-dir "src/test"))
+ (native-inputs
+ `(("junit" ,java-junit)))
+ (home-page "https://github.com/FasterXML/jackson-annotations")
+ (synopsis "General purpose annotations for the Jackson Data Processor")
+ (description "This package contains general purpose annotations for the
+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)))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 16/23] gnu: Add java-fasterxml-jackson-core.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (13 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 15/23] gnu: Add java-fasterxml-jackson-annotations julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 17/23] gnu: Add java-fasterxml-jackson-databind julien
` (6 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
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
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 17/23] gnu: Add java-fasterxml-jackson-databind.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (14 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 16/23] gnu: Add java-fasterxml-jackson-core julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 18/23] gnu: Add java-fasterxml-jackson-modules-base-jaxb julien
` (5 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-fasterxml-jackson-databind): New variable.
---
gnu/packages/java.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 7abbc08dd..7202db8af 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5706,3 +5706,46 @@ not included are ones that require dependency to the Databind package.")
(synopsis "")
(description "")
(license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
+
+(define-public java-fasterxml-jackson-databind
+ (package
+ (name "java-fasterxml-jackson-databind")
+ (version "2.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/FasterXML/"
+ "jackson-databind/archive/"
+ "jackson-databind-" version ".tar.gz"))
+ (sha256
+ (base32
+ "02xrbj6g7pzybq8q33xmpf7cxfapk6z6lgxvig7d38fijz400lji"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "jackson-databind.jar"
+ #:source-dir "src/main/java"
+ #:tests? #f; requires javax.measures for which I can't find a free implementation
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'generate-PackageVersion.java
+ (lambda _
+ (let* ((out "src/main/java/com/fasterxml/jackson/databind/cfg/PackageVersion.java")
+ (in (string-append out ".in")))
+ (copy-file in out)
+ (substitute* out
+ (("@package@") "com.fasterxml.jackson.databind.cfg")
+ (("@projectversion@") ,version)
+ (("@projectgroupid@") "com.fasterxml.jackson.databind")
+ (("@projectartifactid@") "jackson-databind")))))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively "src/main/resources" "build/classes"))))))
+ (inputs
+ `(("java-fasterxml-jackson-annotations" ,java-fasterxml-jackson-annotations)
+ ("java-fasterxml-jackson-core" ,java-fasterxml-jackson-core)))
+ (home-page "https://github.com/FasterXML/jackson-databind")
+ (synopsis "Data-binding functionality and tree-model for the Jackson Data Processor")
+ (description "This package contains the general-purpose data-binding
+functionality and tree-model for Jackson Data Processor. It builds on core
+streaming parser/generator package, and uses Jackson Annotations for
+configuration.")
+ (license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 18/23] gnu: Add java-fasterxml-jackson-modules-base-jaxb.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (15 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 17/23] gnu: Add java-fasterxml-jackson-databind julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 19/23] gnu: Add java-snakeyaml julien
` (4 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-fasterxml-jackson-modules-base-jaxb): New
variable.
---
gnu/packages/java.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 7202db8af..4336f6a47 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5749,3 +5749,50 @@ functionality and tree-model for Jackson Data Processor. It builds on core
streaming parser/generator package, and uses Jackson Annotations for
configuration.")
(license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
+
+(define-public java-fasterxml-jackson-modules-base-jaxb
+ (package
+ (name "java-fasterxml-jackson-modules-base-jaxb")
+ (version "2.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/FasterXML/"
+ "jackson-modules-base/archive/"
+ "jackson-modules-base-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0bj2pzvycnj3ysbcfa6xl38dmvnp01mnjfcb9jyhv503fch2iv44"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "jackson-modules-base-jaxb.jar"
+ #:source-dir "jaxb/src/main/java"
+ #:test-dir "jaxb/src/test"
+ #:test-exclude
+ ;; Base class for tests
+ (list "**/BaseJaxbTest.java")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'generate-PackageVersion.java
+ (lambda _
+ (let* ((out (string-append "jaxb/src/main/java/com/fasterxml/"
+ "jackson/module/jaxb/PackageVersion.java"))
+ (in (string-append out ".in")))
+ (copy-file in out)
+ (substitute* out
+ (("@package@") "com.fasterxml.jackson.module.jaxb")
+ (("@projectversion@") ,version)
+ (("@projectgroupid@") "com.fasterxml.jackson.module.jaxb")
+ (("@projectartifactid@") "jackson-module-jaxb")))))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively "jaxb/src/main/resources" "build/classes"))))))
+ (inputs
+ `(("java-fasterxml-jackson-annotations" ,java-fasterxml-jackson-annotations)
+ ("java-fasterxml-jackson-core" ,java-fasterxml-jackson-core)
+ ("java-fasterxml-jackson-databind" ,java-fasterxml-jackson-databind)))
+ (native-inputs
+ `(("java-junit" ,java-junit)))
+ (home-page "https://github.com/FasterXML/jackson-modules-base")
+ (synopsis "Jaxb annotations jackson module")
+ (description "This package is the jaxb annotations module for jackson.")
+ (license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 19/23] gnu: Add java-snakeyaml.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (16 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 18/23] gnu: Add java-fasterxml-jackson-modules-base-jaxb julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 20/23] gnu: Add java-fasterxml-jackson-dataformat-yaml julien
` (3 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-snakeyaml): New variable.
---
gnu/packages/java.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 4336f6a47..72e8fa236 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5796,3 +5796,26 @@ configuration.")
(synopsis "Jaxb annotations jackson module")
(description "This package is the jaxb annotations module for jackson.")
(license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
+
+(define-public java-snakeyaml
+ (package
+ (name "java-snakeyaml")
+ (version "1.18")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://bitbucket.org/asomov/snakeyaml/get/v"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0rf5ha6w0waz50jz2479jsrbgmd0dnx0gs337m126j5z7zlmg7mg"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-snakeyaml.jar"
+ #:source-dir "src/main/java"
+ ;; Tests require velocity, a cyclic dependency, and
+ ;; java-spring-framework-context which is not packaged.
+ #:tests? #f))
+ (home-page "https://bitbucket.org/asomov/snakeyaml")
+ (synopsis "YAML processor")
+ (description "SnakeYAML is a YAML processor for the Java Virtual Machine.")
+ (license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 20/23] gnu: Add java-fasterxml-jackson-dataformat-yaml.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (17 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 19/23] gnu: Add java-snakeyaml julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 21/23] gnu: Add java-stax2-api julien
` (2 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-fasterxml-jackson-dataformat-yaml): New
variable.
---
gnu/packages/java.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 72e8fa236..e10e699f1 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5819,3 +5819,51 @@ configuration.")
(synopsis "YAML processor")
(description "SnakeYAML is a YAML processor for the Java Virtual Machine.")
(license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
+
+(define-public java-fasterxml-jackson-dataformat-yaml
+ (package
+ (name "java-fasterxml-jackson-dataformat-yaml")
+ (version "2.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/FasterXML/"
+ "jackson-dataformats-text/archive/"
+ "jackson-dataformats-text-" version ".tar.gz"))
+ (sha256
+ (base32
+ "140fwcafv05zbh2ppa6z533dzmfcvzbdxf0dbpbyzqvd84v2vhl2"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "jackson-dataformat-yaml.jar"
+ #:source-dir "yaml/src/main/java"
+ #:test-dir "yaml/src/test"
+ #:test-exclude (list "**/failing/**.java")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'generate-PackageVersion.java
+ (lambda _
+ (let* ((out "yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/PackageVersion.java")
+ (in (string-append out ".in")))
+ (copy-file in out)
+ (substitute* out
+ (("@package@") "com.fasterxml.jackson.dataformat.yaml")
+ (("@projectversion@") ,version)
+ (("@projectgroupid@") "com.fasterxml.jackson.dataformat.yaml")
+ (("@projectartifactid@") "jackson-dataformat-yaml"))))))))
+ (inputs
+ `(("java-fasterxml-jackson-annotations" ,java-fasterxml-jackson-annotations)
+ ("java-fasterxml-jackson-core" ,java-fasterxml-jackson-core)
+ ("java-fasterxml-jackson-databind" ,java-fasterxml-jackson-databind)
+ ("java-snakeyaml" ,java-snakeyaml)))
+ (native-inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)
+ ("java-ops4j-pax-exam-core-spi" ,java-ops4j-pax-exam-core-spi)
+ ("java-ops4j-pax-exam-core-junit" ,java-ops4j-pax-exam-core-junit)
+ ("java-ops4j-pax-exam" ,java-ops4j-pax-exam-core)))
+ (home-page "https://github.com/FasterXML/jackson-dataformats-text")
+ (synopsis "Yaml backend for Jackson")
+ (description "Dataformat backends are used to support format alternatives
+to JSON, supported by default. This is done by sub-classing Jackson core
+abstractions.")
+ (license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 21/23] gnu: Add java-stax2-api.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (18 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 20/23] gnu: Add java-fasterxml-jackson-dataformat-yaml julien
@ 2017-10-04 20:37 ` 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
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-stax2-api): New variable.
---
gnu/packages/java.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index e10e699f1..f72dc7291 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5867,3 +5867,26 @@ configuration.")
to JSON, supported by default. This is done by sub-classing Jackson core
abstractions.")
(license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
+
+(define-public java-stax2-api
+ (package
+ (name "java-stax2-api")
+ (version "4.0.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/FasterXML/stax2-api/archive/"
+ "stax2-api-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1amc1si0l0hyyw2sawmnzy4hkna3z6fp195y4nm5m9wb9ld5awkq"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-stax2-api.jar"
+ #:source-dir "src/main/java"
+ #:tests? #f)); no tests
+ (home-page "https://github.com/FasterXML/stax2-api")
+ (synopsis "Stax2 API")
+ (description "Stax2 API is an extension to basic Stax 1.0 API that adds
+significant new functionalities, such as full-featured bi-direction validation
+interface and high-performance Typed Access API.")
+ (license license:bsd-2)))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 22/23] gnu: Add java-woodstox-core.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (19 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 21/23] gnu: Add java-stax2-api julien
@ 2017-10-04 20:37 ` julien
2017-10-04 20:37 ` [bug#28707] [PATCH 23/23] gnu: Add java-fasterxml-jackson-dataformat-xml julien
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-woodstox-core): New variable.
---
gnu/packages/java.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index f72dc7291..85dce5a6d 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5890,3 +5890,41 @@ abstractions.")
significant new functionalities, such as full-featured bi-direction validation
interface and high-performance Typed Access API.")
(license license:bsd-2)))
+
+(define-public java-woodstox-core
+ (package
+ (name "java-woodstox-core")
+ (version "5.0.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/FasterXML/woodstox/archive/"
+ "woodstox-core-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1i7pdgb8jbw6gdy5kmm0l6rz109n2ns92pqalpyp24vb8vlvdfd4"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "woodstox.jar"
+ #:test-exclude
+ (list "**/Base*.java" "failing/**")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'remove-msv-dep
+ (lambda _
+ ;; we don't need osgi, and it depends on msv
+ (delete-file-recursively "src/main/java/com/ctc/wstx/osgi")
+ ;; msv's latest release is from 2011 and we don't need it
+ (delete-file-recursively "src/main/java/com/ctc/wstx/msv")
+ (delete-file-recursively "src/test/java/wstxtest/osgi")
+ (delete-file-recursively "src/test/java/wstxtest/msv")))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively "src/main/resources" "build/classes"))))))
+ (inputs
+ `(("stax2" ,java-stax2-api)))
+ (native-inputs
+ `(("junit" ,java-junit)))
+ (home-page "https://github.com/FasterXML/woodstox")
+ (synopsis "Stax XML API implementation")
+ (description "Woodstox is a stax XML API implementation.")
+ (license license:asl2.0)))
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH 23/23] gnu: Add java-fasterxml-jackson-dataformat-xml.
2017-10-04 20:37 ` [bug#28707] [PATCH 01/23] gnu: Add java-ops4j-base-lang julien
` (20 preceding siblings ...)
2017-10-04 20:37 ` [bug#28707] [PATCH 22/23] gnu: Add java-woodstox-core julien
@ 2017-10-04 20:37 ` julien
21 siblings, 0 replies; 26+ messages in thread
From: julien @ 2017-10-04 20:37 UTC (permalink / raw)
To: 28707
From: Julien Lepiller <julien@lepiller.eu>
* gnu/packages/java.scm (java-fasterxml-jackson-dataformat-xml): 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 85dce5a6d..19512c267 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5928,3 +5928,60 @@ interface and high-performance Typed Access API.")
(synopsis "Stax XML API implementation")
(description "Woodstox is a stax XML API implementation.")
(license license:asl2.0)))
+
+(define-public java-fasterxml-jackson-dataformat-xml
+ (package
+ (name "java-fasterxml-jackson-dataformat-xml")
+ (version "2.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/FasterXML/"
+ "jackson-dataformat-xml/archive/"
+ "jackson-dataformat-xml-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0x3m9n4kwclcyvxhxjx654qpjza4crphml1q2392qpnbfydx6lnh"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "jackson-dataformat-xml.jar"
+ #:source-dir "src/main/java"
+ #:test-exclude
+ (list "**/failing/**")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'generate-PackageVersion.java
+ (lambda _
+ (let* ((out "src/main/java/com/fasterxml/jackson/dataformat/xml/PackageVersion.java")
+ (in (string-append out ".in")))
+ (copy-file in out)
+ (newline)
+ (substitute* out
+ (("@package@") "com.fasterxml.jackson.dataformat.xml")
+ (("@projectversion@") ,version)
+ (("@projectgroupid@") "com.fasterxml.jackson.dataformat.xml")
+ (("@projectartifactid@") "jackson-dataformat-xml")))))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively "src/main/resources" "build/classes"))))))
+ (inputs
+ `(("jackson-annotations" ,java-fasterxml-jackson-annotations)
+ ("jackson-core" ,java-fasterxml-jackson-core)
+ ("jackson-modules-base-jaxb" ,java-fasterxml-jackson-modules-base-jaxb)
+ ("jackson-databind" ,java-fasterxml-jackson-databind)
+ ("stax2-api" ,java-stax2-api)
+ ("woodstox" ,java-woodstox-core)))
+ (native-inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)))
+ (home-page "https://github.com/FasterXML/jackson-dataformat-xml")
+ (synopsis "Read and write XML")
+ (description "This package contains Jackson extension component for reading
+and writing XML encoded data.
+
+Further, the goal is to emulate how JAXB data-binding works with \"Code-first\"
+approach (that is, no support is added for \"Schema-first\" approach). Support
+for JAXB annotations is provided by JAXB annotation module; this module
+provides low-level abstractions (@code{JsonParser}, @code{JsonGenerator},
+@code{JsonFactory}) as well as small number of higher level overrides needed to
+make data-binding work.")
+ (license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
--
2.14.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [bug#28707] [PATCH] java packages
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-09 19:36 ` Leo Famulari
2017-10-10 20:08 ` bug#28707: " Julien Lepiller
1 sibling, 1 reply; 26+ messages in thread
From: Leo Famulari @ 2017-10-09 19:36 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 28707
[-- Attachment #1: Type: text/plain, Size: 168 bytes --]
On Wed, Oct 04, 2017 at 10:33:17PM +0200, Julien Lepiller wrote:
> Hi!
>
> Here are 23 new packages that get us a bit closer to maven.
They LGTM, thanks a lot!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#28707: [PATCH] java packages
2017-10-09 19:36 ` [bug#28707] [PATCH] java packages Leo Famulari
@ 2017-10-10 20:08 ` Julien Lepiller
0 siblings, 0 replies; 26+ messages in thread
From: Julien Lepiller @ 2017-10-10 20:08 UTC (permalink / raw)
To: 28707-done
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
Le Mon, 9 Oct 2017 15:36:07 -0400,
Leo Famulari <leo@famulari.name> a écrit :
> On Wed, Oct 04, 2017 at 10:33:17PM +0200, Julien Lepiller wrote:
> > Hi!
> >
> > Here are 23 new packages that get us a bit closer to maven.
>
> They LGTM, thanks a lot!
Pushed as 77a4f1ae31fb47ec08290fce72756422bad1dd0c -
262a4d335ac1fc1aa83cd4c611ed6d086d0193c5.
Thanks for the review!
[-- Attachment #2: Signature digitale OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
end of thread, other threads:[~2017-10-10 20:10 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [bug#28707] [PATCH 16/23] gnu: Add java-fasterxml-jackson-core julien
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
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).