Remove pushed java packages
more/packages/java.scm
37 | 37 | #:use-module (gnu packages xml) | |
38 | 38 | #:use-module (more packages python)) | |
39 | 39 | ||
40 | - | (define-public java-tomcat | |
41 | - | (package | |
42 | - | (name "java-tomcat") | |
43 | - | (version "8.5.23") | |
44 | - | (source (origin | |
45 | - | (method url-fetch) | |
46 | - | (uri (string-append "mirror://apache/tomcat/tomcat-8/v" | |
47 | - | version "/src/apache-tomcat-" version "-src.tar.gz")) | |
48 | - | (sha256 | |
49 | - | (base32 | |
50 | - | "1m6b1dikib46kbgz9gf0p6svi00nsw62b9kgjzn6sda151skbbza")))) | |
51 | - | (build-system ant-build-system) | |
52 | - | (inputs | |
53 | - | `(("java-eclipse-jdt-core" ,java-eclipse-jdt-core))) | |
54 | - | (native-inputs | |
55 | - | `(("java-junit" ,java-junit))) | |
56 | - | (arguments | |
57 | - | `(#:build-target "package" | |
58 | - | #:tests? #f; requires downloading some files. | |
59 | - | #:phases | |
60 | - | (modify-phases %standard-phases | |
61 | - | (add-after 'unpack 'properties | |
62 | - | (lambda _ | |
63 | - | (for-each delete-file (find-files "." ".*.jar$")) | |
64 | - | (mkdir "downloads") | |
65 | - | (substitute* "build.xml" | |
66 | - | (("download-compile,") "") | |
67 | - | (("depends=\"validate\"") "depends=\"build-prepare\"") | |
68 | - | ((",download-validate") "")) | |
69 | - | (with-output-to-file "build.properties" | |
70 | - | (lambda _ | |
71 | - | (display | |
72 | - | (string-append "base.path=" (getcwd) "/downloads\n")))))) | |
73 | - | (replace 'install | |
74 | - | (install-jars "output/build/lib"))))) | |
75 | - | (home-page "https://tomcat.apache.org") | |
76 | - | (synopsis "Java Servlet, JavaServer Pages, Java Expression Language and Java | |
77 | - | WebSocket") | |
78 | - | (description "Apache Tomcat is an open source implementation of the Java | |
79 | - | Servlet, JavaServer Pages, Java Expression Language and Java WebSocket | |
80 | - | technologies. The Java Servlet, JavaServer Pages, Java Expression Language and | |
81 | - | Java WebSocket specifications are developed under the Java Community Process.") | |
82 | - | (license license:asl2.0))) | |
83 | - | ||
84 | 40 | (define-public java-openjfx | |
85 | 41 | (package | |
86 | 42 | (name "java-openjfx") | |
… | |||
485 | 441 | outputting XML data from Java code.") | |
486 | 442 | (license license:bsd-4))) | |
487 | 443 | ||
488 | - | (define-public java-mvel2 | |
489 | - | (package | |
490 | - | (name "java-mvel2") | |
491 | - | (version "2.3.1") | |
492 | - | (source (origin | |
493 | - | (method url-fetch) | |
494 | - | (uri (string-append "https://github.com/mvel/mvel/archive/mvel2-" | |
495 | - | version ".Final.tar.gz")) | |
496 | - | (sha256 | |
497 | - | (base32 | |
498 | - | "01ph5s9gm16l2qz58lg21w6fna7xmmrj7f9bzqr1jim7h9557d3z")))) | |
499 | - | (build-system ant-build-system) | |
500 | - | (arguments | |
501 | - | `(#:jar-name "mvel2.jar" | |
502 | - | #:source-dir "src/main/java" | |
503 | - | #:test-exclude | |
504 | - | (list "**/Abstract*.java" | |
505 | - | ;; Base class with no tests | |
506 | - | "**/MVELThreadTest.java") | |
507 | - | #:phases | |
508 | - | (modify-phases %standard-phases | |
509 | - | (add-after 'install 'install-bin | |
510 | - | (lambda* (#:key outputs #:allow-other-keys) | |
511 | - | (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) | |
512 | - | (mkdir-p bin) | |
513 | - | (with-output-to-file (string-append bin "/mvel2") | |
514 | - | (lambda _ | |
515 | - | (display (string-append "java -Dout.dir=$2 -cp " | |
516 | - | (getenv "CLASSPATH") | |
517 | - | ":" (assoc-ref outputs "out") | |
518 | - | "/share/java/mvel2.jar" | |
519 | - | " org.mvel2.sh.Main $1")))) | |
520 | - | (chmod (string-append bin "/mvel2") #o755))))))) | |
521 | - | (native-inputs | |
522 | - | `(("junit" ,java-junit) | |
523 | - | ("hamcrest" ,java-hamcrest-core))) | |
524 | - | (home-page "https://github.com/mvel/mvel") | |
525 | - | (synopsis "MVFLEX Expression Language") | |
526 | - | (description "MVEL has largely been inspired by Java syntax, but has some | |
527 | - | fundamental differences aimed at making it more efficient as an expression | |
528 | - | language, such as operators that directly support collection, array and string | |
529 | - | matching, as well as regular expressions. MVEL is used to evaluate expressions | |
530 | - | written using Java syntax. | |
531 | - | ||
532 | - | In addition to the expression language, MVEL serves as a templating language for | |
533 | - | configuration and string construction.") | |
534 | - | (license license:asl2.0))) | |
535 | - | ||
536 | - | (define-public java-lz4 | |
537 | - | (package | |
538 | - | (name "java-lz4") | |
539 | - | (version "1.4.0") | |
540 | - | (source (origin | |
541 | - | (method url-fetch) | |
542 | - | (uri (string-append "https://github.com/lz4/lz4-java/archive/" | |
543 | - | version ".tar.gz")) | |
544 | - | (sha256 | |
545 | - | (base32 | |
546 | - | "096dm57p2lzqk28n0j2p52x2j3cvnsd2dfqn43n7vbwrkjsy7y54")))) | |
547 | - | (build-system ant-build-system) | |
548 | - | (arguments | |
549 | - | `(#:jar-name "lz4.jar" | |
550 | - | #:jdk ,icedtea-8 | |
551 | - | #:source-dir "src/java:src/java-unsafe" | |
552 | - | #:tests? #f; FIXME: needs deps | |
553 | - | #:phases | |
554 | - | (modify-phases %standard-phases | |
555 | - | (add-before 'configure 'generate-source | |
556 | - | (lambda _ | |
557 | - | (with-directory-excursion "src/build/source_templates" | |
558 | - | (zero? (system* "mvel2" "../gen_sources.mvel" "../../java")))))))) | |
559 | - | (native-inputs | |
560 | - | `(("mvel" ,java-mvel2))) | |
561 | - | (home-page "https://jpountz.github.io/lz4-java"); or http://blog.jpountz.net/ | |
562 | - | (synopsis "Compression algorithm") | |
563 | - | (description "LZ4 - Java is a Java port of the popular lz4 compression | |
564 | - | algorithms and xxHash hashing algorithm.") | |
565 | - | (license license:asl2.0))) | |
566 | - | ||
567 | - | (define-public java-bouncycastle-bcprov | |
568 | - | (package | |
569 | - | (name "java-bouncycastle-bcprov") | |
570 | - | (version "1.58") | |
571 | - | (source (origin | |
572 | - | (method url-fetch) | |
573 | - | (uri "https://bouncycastle.org/download/bcprov-jdk15on-158.tar.gz") | |
574 | - | (sha256 | |
575 | - | (base32 | |
576 | - | "1hgkg96llbvgs8i0krwz2n0j7wlg6jfnq8w8kg0cc899j0wfmf3n")))) | |
577 | - | (build-system ant-build-system) | |
578 | - | (arguments | |
579 | - | `(#:jar-name "bouncycastle-bcprov.jar" | |
580 | - | #:tests? #f; no tests | |
581 | - | #:source-dir "src" | |
582 | - | #:phases | |
583 | - | (modify-phases %standard-phases | |
584 | - | (add-before 'configure 'unzip-src | |
585 | - | (lambda _ | |
586 | - | (mkdir-p "src") | |
587 | - | (with-directory-excursion "src" | |
588 | - | (zero? (system* "unzip" "../src.zip")))))))) | |
589 | - | (native-inputs | |
590 | - | `(("unzip" ,unzip) | |
591 | - | ("junit" ,java-junit))) | |
592 | - | (home-page "https://www.bouncycastle.org") | |
593 | - | (synopsis "Cryptographic library") | |
594 | - | (description "") | |
595 | - | (license license:expat))) | |
596 | - | ||
597 | - | (define-public java-bouncycastle-bcpkix | |
598 | - | (package | |
599 | - | (name "java-bouncycastle-bcpkix") | |
600 | - | (version "1.58") | |
601 | - | (source (origin | |
602 | - | (method url-fetch) | |
603 | - | (uri "https://bouncycastle.org/download/bcpkix-jdk15on-158.tar.gz") | |
604 | - | (sha256 | |
605 | - | (base32 | |
606 | - | "0is7qay02803s9f7lhnfcjlz61ni3hq5d7apg0iil7nbqkbfbcq2")))) | |
607 | - | (build-system ant-build-system) | |
608 | - | (arguments | |
609 | - | `(#:jar-name "bouncycastle-bcpkix.jar" | |
610 | - | #:tests? #f; no tests | |
611 | - | #:source-dir "src" | |
612 | - | #:phases | |
613 | - | (modify-phases %standard-phases | |
614 | - | (add-before 'configure 'unzip-src | |
615 | - | (lambda _ | |
616 | - | (mkdir-p "src") | |
617 | - | (with-directory-excursion "src" | |
618 | - | (zero? (system* "unzip" "../src.zip")))))))) | |
619 | - | (native-inputs | |
620 | - | `(("unzip" ,unzip) | |
621 | - | ("junit" ,java-junit))) | |
622 | - | (inputs | |
623 | - | `(("bcprov" ,java-bouncycastle-bcprov))) | |
624 | - | (home-page "https://www.bouncycastle.org") | |
625 | - | (synopsis "Cryptographic library") | |
626 | - | (description "") | |
627 | - | (license license:expat))) | |
628 | - | ||
629 | 444 | (define-public java-bouncycastle-bctls | |
630 | 445 | (package | |
631 | 446 | (name "java-bouncycastle-bctls") | |
… | |||
651 | 466 | (description "") | |
652 | 467 | (license license:expat))) | |
653 | 468 | ||
654 | - | (define-public java-powermock-core | |
655 | - | (package | |
656 | - | (name "java-powermock-core") | |
657 | - | (version "1.7.1") | |
658 | - | (source (origin | |
659 | - | (method url-fetch) | |
660 | - | (uri (string-append "https://github.com/powermock/powermock/" | |
661 | - | "archive/powermock-" version ".tar.gz")) | |
662 | - | (sha256 | |
663 | - | (base32 | |
664 | - | "12f9jazi7ilk5r1fz0m1hy1rhn3w476xsh35r670larpxm6gbc26")) | |
665 | - | (patches | |
666 | - | (search-patches "java-powermock-fix-java-files.patch")))) | |
667 | - | (build-system ant-build-system) | |
668 | - | (arguments | |
669 | - | `(#:jar-name "java-powermock-core.jar" | |
670 | - | #:source-dir "powermock-core/src/main/java" | |
671 | - | #:test-dir "powermock-core/src/test" | |
672 | - | #:tests? #f; requires powermock-api | |
673 | - | #:jdk ,icedtea-8)) | |
674 | - | (inputs | |
675 | - | `(("reflect" ,java-powermock-reflect) | |
676 | - | ("javassist" ,java-jboss-javassist))) | |
677 | - | (native-inputs | |
678 | - | `(("junit" ,java-junit) | |
679 | - | ("assertj" ,java-assertj) | |
680 | - | ("mockito" ,java-mockito-1))) | |
681 | - | (home-page "https://github.com/powermock/powermock") | |
682 | - | (synopsis "Mock library extension framework") | |
683 | - | (description "PowerMock is a framework that extends other mock libraries | |
684 | - | such as EasyMock with more powerful capabilities. PowerMock uses a custom | |
685 | - | classloader and bytecode manipulation to enable mocking of static methods, | |
686 | - | constructors, final classes and methods, private methods, removal of static | |
687 | - | initializers and more. By using a custom classloader no changes need to be | |
688 | - | done to the IDE or continuous integration servers which simplifies adoption.") | |
689 | - | (license license:asl2.0))) | |
690 | - | ||
691 | - | (define-public java-powermock-reflect | |
692 | - | (package | |
693 | - | (inherit java-powermock-core) | |
694 | - | (name "java-powermock-reflect") | |
695 | - | (build-system ant-build-system) | |
696 | - | (arguments | |
697 | - | `(#:jar-name "java-powermock-reflect.jar" | |
698 | - | #:jdk ,icedtea-8 | |
699 | - | #:source-dir "powermock-reflect/src/main/java" | |
700 | - | #:test-dir "powermock-reflect/src/test")) | |
701 | - | (inputs | |
702 | - | `(("java-objenesis" ,java-objenesis))) | |
703 | - | (native-inputs | |
704 | - | `(("junit" ,java-junit) | |
705 | - | ("cglib" ,java-cglib) | |
706 | - | ("asm" ,java-asm) | |
707 | - | ("hamcrest" ,java-hamcrest-core) | |
708 | - | ("assertj" ,java-assertj))))) | |
709 | - | ||
710 | - | (define-public java-powermock-api-support | |
711 | - | (package | |
712 | - | (inherit java-powermock-core) | |
713 | - | (name "java-powermock-api-support") | |
714 | - | (build-system ant-build-system) | |
715 | - | (arguments | |
716 | - | `(#:jar-name "java-powermock-api-support.jar" | |
717 | - | #:jdk ,icedtea-8 | |
718 | - | #:source-dir "powermock-api/powermock-api-support/src/main/java" | |
719 | - | #:tests? #f)); no tests | |
720 | - | (inputs | |
721 | - | `(("core" ,java-powermock-core) | |
722 | - | ("reflect" ,java-powermock-reflect))))) | |
723 | - | ||
724 | - | (define-public java-powermock-api-easymock | |
725 | - | (package | |
726 | - | (inherit java-powermock-core) | |
727 | - | (name "java-powermock-api-easymock") | |
728 | - | (build-system ant-build-system) | |
729 | - | (arguments | |
730 | - | `(#:jar-name "java-powermock-api-easymock.jar" | |
731 | - | #:jdk ,icedtea-8 | |
732 | - | #:source-dir "powermock-api/powermock-api-easymock/src/main/java" | |
733 | - | #:tests? #f; no tests | |
734 | - | #:phases | |
735 | - | (modify-phases %standard-phases | |
736 | - | (add-before 'build 'fix-file | |
737 | - | (lambda _ | |
738 | - | ;; FIXME: This should not be necessary | |
739 | - | (substitute* "powermock-api/powermock-api-easymock/src/main/java/org/powermock/api/easymock/PowerMock.java" | |
740 | - | (("classLoader instanceof MockClassLoader") "false") | |
741 | - | (("\\(\\(MockClassLoader\\) classLoader\\).cache\\(mock.getClass\\(\\)\\);") ";"))))))) | |
742 | - | (inputs | |
743 | - | `(("core" ,java-powermock-core) | |
744 | - | ("easymock" ,java-easymock) | |
745 | - | ("reflect" ,java-powermock-reflect) | |
746 | - | ("support" ,java-powermock-api-support) | |
747 | - | ("cglib" ,java-cglib))))) | |
748 | - | ||
749 | - | (define-public java-powermock-modules-junit4-common | |
750 | - | (package | |
751 | - | (inherit java-powermock-core) | |
752 | - | (name "java-powermock-modules-junit4-common") | |
753 | - | (build-system ant-build-system) | |
754 | - | (arguments | |
755 | - | `(#:jar-name "java-powermock-modules-junit4-common.jar" | |
756 | - | #:jdk ,icedtea-8 | |
757 | - | #:source-dir "powermock-modules/powermock-module-junit4-common/src/main/java" | |
758 | - | #:test-dir "powermock-modules/powermock-module-junit4-common/src/test")) | |
759 | - | (inputs | |
760 | - | `(("core" ,java-powermock-core) | |
761 | - | ("easymock" ,java-easymock) | |
762 | - | ("reflect" ,java-powermock-reflect) | |
763 | - | ("hamcrest" ,java-hamcrest-core) | |
764 | - | ("cglib" ,java-cglib))))) | |
765 | - | ||
766 | - | (define-public java-powermock-modules-junit4 | |
767 | - | (package | |
768 | - | (inherit java-powermock-core) | |
769 | - | (name "java-powermock-modules-junit4") | |
770 | - | (build-system ant-build-system) | |
771 | - | (arguments | |
772 | - | `(#:jar-name "java-powermock-modules-junit4.jar" | |
773 | - | #:jdk ,icedtea-8 | |
774 | - | #:source-dir "powermock-modules/powermock-module-junit4/src/main/java" | |
775 | - | #:test-dir "powermock-modules/powermock-module-junit4/src/test")) | |
776 | - | (inputs | |
777 | - | `(("core" ,java-powermock-core) | |
778 | - | ("reflect" ,java-powermock-reflect) | |
779 | - | ("common" ,java-powermock-modules-junit4-common) | |
780 | - | ("cglib" ,java-cglib))) | |
781 | - | (native-inputs | |
782 | - | `(("easymock" ,java-easymock) | |
783 | - | ("hamcrest" ,java-hamcrest-core) | |
784 | - | ("objenesis" ,java-objenesis) | |
785 | - | ("asm" ,java-asm) | |
786 | - | ("junit" ,java-junit))))) | |
787 | - | ||
788 | - | (define-public java-xerial-core | |
789 | - | (package | |
790 | - | (name "java-xerial-core") | |
791 | - | (version "2.1") | |
792 | - | (source (origin | |
793 | - | (method url-fetch) | |
794 | - | (uri (string-append "https://github.com/xerial/xerial-java/archive/" | |
795 | - | version ".tar.gz")) | |
796 | - | (sha256 | |
797 | - | (base32 | |
798 | - | "0d3g863i41bgalpa4xr3vm1h140l091n8iwgq5qvby5yivns9y8d")))) | |
799 | - | (build-system ant-build-system) | |
800 | - | (arguments | |
801 | - | `(#:jar-name "xerial-core.jar" | |
802 | - | #:source-dir "xerial-core/src/main/java" | |
803 | - | #:test-dir "xerial-core/src/test" | |
804 | - | #:phases | |
805 | - | (modify-phases %standard-phases | |
806 | - | (add-before 'build 'copy-resources | |
807 | - | (lambda _ | |
808 | - | (let ((dir (string-append (getcwd) "/build/classes/"))) | |
809 | - | (with-directory-excursion "xerial-core/src/main/resources" | |
810 | - | (for-each (lambda (file) | |
811 | - | (mkdir-p (dirname (string-append dir file))) | |
812 | - | (copy-file file (string-append dir file))) | |
813 | - | (find-files "." ".*"))))))))) | |
814 | - | (native-inputs | |
815 | - | `(("junit" ,java-junit) | |
816 | - | ("hamcrest" ,java-hamcrest-core))) | |
817 | - | (home-page "https://github.com/xerial/xerial-java") | |
818 | - | (synopsis "") | |
819 | - | (description "") | |
820 | - | (license license:asl2.0))) | |
821 | - | ||
822 | - | (define-public java-plexus-classworlds | |
823 | - | (package | |
824 | - | (name "java-plexus-classworlds") | |
825 | - | (version "2.5.2") | |
826 | - | (source (origin | |
827 | - | (method url-fetch) | |
828 | - | (uri (string-append "https://github.com/codehaus-plexus/" | |
829 | - | "plexus-classworlds/archive/plexus-classworlds-" | |
830 | - | version ".tar.gz")) | |
831 | - | (sha256 | |
832 | - | (base32 | |
833 | - | "1qm4p0rl8d82lzhsiwnviw11jnq44s0gflg78zq152xyyr2xmh8g")))) | |
834 | - | (build-system ant-build-system) | |
835 | - | (arguments | |
836 | - | `(#:jar-name "plexus-classworlds.jar" | |
837 | - | #:source-dir "src/main" | |
838 | - | #:tests? #f));; FIXME: needs to study pom.xml for resource generation | |
839 | - | (native-inputs | |
840 | - | `(("java-junit" ,java-junit))) | |
841 | - | (home-page "http://codehaus-plexus.github.io/plexus-classworlds/") | |
842 | - | (synopsis "") | |
843 | - | (description "") | |
844 | - | (license license:asl2.0))) | |
845 | - | ||
846 | 469 | (define-public bitshuffle-for-snappy | |
847 | 470 | (package | |
848 | 471 | (inherit bitshuffle) | |
… | |||
1003 | 626 | (license (list license:cddl1.0; actually cddl1.1 | |
1004 | 627 | license:gpl2)))); with classpath exception | |
1005 | 628 | ||
1006 | - | (define-public java-bsh | |
629 | + | (define-public java-jboss-annotations-api-spec | |
1007 | 630 | (package | |
1008 | - | (name "java-bsh") | |
1009 | - | (version "2.0b6") | |
631 | + | (name "java-jboss-annotations-api-spec") | |
632 | + | (version "1.2") | |
1010 | 633 | (source (origin | |
1011 | 634 | (method url-fetch) | |
1012 | - | (uri (string-append "https://github.com/beanshell/beanshell/archive/" | |
1013 | - | version ".tar.gz")) | |
635 | + | (uri (string-append "https://github.com/jboss/jboss-annotations-api_spec/" | |
636 | + | "archive/jboss-annotations-api_" version | |
637 | + | "_spec-1.0.1.Final.tar.gz")) | |
1014 | 638 | (sha256 | |
1015 | 639 | (base32 | |
1016 | - | "1bawkxk6jyc75hxvzkpz689h73cn3f222m0ar3nvb0dal2b85kfv")))) | |
640 | + | "0zvglvscq177lahvp8n9nlm0vkdxlf6db0fs8jcy8zf82z6k4d2n")))) | |
1017 | 641 | (build-system ant-build-system) | |
1018 | 642 | (arguments | |
1019 | - | `(#:build-target "jarall" | |
1020 | - | #:test-target "junit-tests-all" | |
1021 | - | #:phases | |
1022 | - | (modify-phases %standard-phases | |
1023 | - | (replace 'install | |
1024 | - | (lambda* (#:key outputs #:allow-other-keys) | |
1025 | - | (let ((share (string-append (assoc-ref outputs "out") "/share/java"))) | |
1026 | - | (mkdir-p share) | |
1027 | - | (copy-file "dist/bsh-2.0b6.jar" (string-append share "/bsh-2.0b6.jar")))))))) | |
1028 | - | (home-page "http://beanshell.org/") | |
1029 | - | (synopsis "Lightweight Scripting for Java") | |
1030 | - | (description "BeanShell is a small, free, embeddable Java source | |
1031 | - | interpreter with object scripting language features, written in Java. | |
1032 | - | BeanShell dynamically executes standard Java syntax and extends it with common | |
1033 | - | scripting conveniences such as loose types, commands, and method closures like | |
1034 | - | those in Perl and JavaScript.") | |
1035 | - | (license license:asl2.0))) | |
643 | + | `(#:jar-name "java-jboss-annotations-api_spec.jar" | |
644 | + | #:jdk ,icedtea-8 | |
645 | + | #:source-dir "." | |
646 | + | #:tests? #f)); no tests | |
647 | + | (home-page "https://github.com/jboss/jboss-annotations-api_spec") | |
648 | + | (synopsis "") | |
649 | + | (description "") | |
650 | + | (license (list license:gpl2 license:cddl1.0)))); either gpl2 only or cddl. | |
1036 | 651 | ||
1037 | - | (define-public java-hdrhistogram | |
652 | + | (define-public java-jboss-interceptors-api-spec | |
1038 | 653 | (package | |
1039 | - | (name "java-hdrhistogram") | |
1040 | - | (version "2.1.9") | |
654 | + | (name "java-jboss-interceptors-api-spec") | |
655 | + | (version "1.2") | |
1041 | 656 | (source (origin | |
1042 | 657 | (method url-fetch) | |
1043 | - | (uri (string-append "https://github.com/HdrHistogram/HdrHistogram/" | |
1044 | - | "archive/HdrHistogram-" version ".tar.gz")) | |
658 | + | (uri (string-append "https://github.com/jboss/jboss-interceptors-api_spec/" | |
659 | + | "archive/jboss-interceptors-api_" version | |
660 | + | "_spec-1.0.0.Final.tar.gz")) | |
1045 | 661 | (sha256 | |
1046 | 662 | (base32 | |
1047 | - | "1sicbmc3sr42nw93qbkb26q9rn33ag33k6k77phjc3j5h5gjffqv")))) | |
663 | + | "0wv8x0jp9a5qxlrgkhb5jdk2gr6vi87b4j4kjb8ryxiy9gn8g51z")))) | |
1048 | 664 | (build-system ant-build-system) | |
1049 | 665 | (arguments | |
1050 | - | `(#:jar-name "java-hdrhistogram.jar" | |
1051 | - | #:source-dir "src/main/java" | |
1052 | - | #:phases | |
1053 | - | (modify-phases %standard-phases | |
1054 | - | (add-before 'configure 'set-version | |
1055 | - | (lambda _ | |
1056 | - | (let* ((version-java "src/main/java/org/HdrHistogram/Version.java") | |
1057 | - | (template (string-append version-java ".template"))) | |
1058 | - | (copy-file template version-java) | |
1059 | - | (substitute* version-java | |
1060 | - | (("\\$VERSION\\$") ,version) | |
1061 | - | (("\\$BUILD_TIME\\$") "0")))))))) | |
1062 | - | (native-inputs | |
1063 | - | `(("junit" ,java-junit) | |
1064 | - | ("hamcrest" ,java-hamcrest-core))) | |
1065 | - | (home-page "https://hdrhistogram.github.io/HdrHistogram") | |
666 | + | `(#:jar-name "java-jboss-interceptors-api_spec.jar" | |
667 | + | #:jdk ,icedtea-8 | |
668 | + | #:source-dir "." | |
669 | + | #:tests? #f)); no tests | |
670 | + | (home-page "https://github.com/jboss/jboss-interceptors-api_spec") | |
1066 | 671 | (synopsis "") | |
1067 | 672 | (description "") | |
1068 | - | (license license:bsd-2))) | |
673 | + | (license (list license:gpl2 license:cddl1.0)))); either gpl2 only or cddl. | |
1069 | 674 | ||
1070 | - | (define-public java-jmock | |
675 | + | (define-public java-jboss-el-api-spec | |
1071 | 676 | (package | |
1072 | - | (name "java-jmock") | |
1073 | - | (version "2.8.2") | |
677 | + | (name "java-jboss-el-api-spec") | |
678 | + | (version "3.0") | |
1074 | 679 | (source (origin | |
1075 | 680 | (method url-fetch) | |
1076 | - | (uri (string-append "https://github.com/jmock-developers/" | |
1077 | - | "jmock-library/archive/" version ".tar.gz")) | |
681 | + | (uri (string-append "https://github.com/jboss/jboss-el-api_spec/" | |
682 | + | "archive/jboss-el-api_" version | |
683 | + | "_spec-1.0.7.Final.tar.gz")) | |
1078 | 684 | (sha256 | |
1079 | 685 | (base32 | |
1080 | - | "18650a9g8xffcsdb6w91pbswa7f40fp2sh6s3nclkclz5dbzq8f0")))) | |
1081 | - | (build-system ant-build-system) | |
1082 | - | (inputs | |
1083 | - | `(("java-hamcrest-all" ,java-hamcrest-all) | |
1084 | - | ("java-asm" ,java-asm) | |
1085 | - | ("java-bsh" ,java-bsh) | |
1086 | - | ("java-jumit" ,java-junit))) | |
1087 | - | (arguments | |
1088 | - | `(#:jar-name "java-jmock.jar" | |
1089 | - | #:source-dir "jmock/src/main/java" | |
1090 | - | #:test-dir "jmock/src/test")) | |
1091 | - | (native-inputs | |
1092 | - | `(("cglib" ,java-cglib))) | |
1093 | - | (home-page "https://github.com/jmock-developers/jmock-library") | |
1094 | - | (synopsis "Mock object library") | |
1095 | - | (description "Jmock is an expressive Mock Object library for Test Driven | |
1096 | - | Development.") | |
1097 | - | (license license:bsd-3))) | |
1098 | - | ||
1099 | - | (define-public java-jmock-junit4 | |
1100 | - | (package | |
1101 | - | (inherit java-jmock) | |
1102 | - | (name "java-jmock-junit4") | |
1103 | - | (arguments | |
1104 | - | `(#:jar-name "java-jmock-junit4.jar" | |
1105 | - | #:source-dir "jmock-junit4/src/main/java" | |
1106 | - | #:test-dir "jmock-junit4/src/test")) | |
1107 | - | (inputs | |
1108 | - | `(("java-hamcrest-all" ,java-hamcrest-all) | |
1109 | - | ("java-asm" ,java-asm) | |
1110 | - | ("java-bsh" ,java-bsh) | |
1111 | - | ("java-jmock" ,java-jmock) | |
1112 | - | ("java-jumit" ,java-junit))))) | |
1113 | - | ||
1114 | - | (define-public java-jmock-legacy | |
1115 | - | (package | |
1116 | - | (inherit java-jmock) | |
1117 | - | (name "java-jmock-legacy") | |
1118 | - | (arguments | |
1119 | - | `(#:jar-name "java-jmock-legacy.jar" | |
1120 | - | #:source-dir "jmock-legacy/src/main/java" | |
1121 | - | #:test-dir "jmock-legacy/src/test" | |
1122 | - | #:phases | |
1123 | - | (modify-phases %standard-phases | |
1124 | - | (add-before 'check 'copy-tests | |
1125 | - | (lambda _ | |
1126 | - | ;; This file is a dependance of some tests | |
1127 | - | (copy-file "jmock/src/test/java/org/jmock/test/acceptance/PackageProtectedType.java" | |
1128 | - | "jmock-legacy/src/test/java/org/jmock/test/acceptance/PackageProtectedType.java")))))) | |
1129 | - | (inputs | |
1130 | - | `(("java-hamcrest-all" ,java-hamcrest-all) | |
1131 | - | ("java-objenesis" ,java-objenesis) | |
1132 | - | ("java-cglib" ,java-cglib) | |
1133 | - | ("java-jmock" ,java-jmock) | |
1134 | - | ("java-asm" ,java-asm) | |
1135 | - | ("java-bsh" ,java-bsh) | |
1136 | - | ("java-junit" ,java-junit))) | |
1137 | - | (native-inputs | |
1138 | - | `(("java-jmock-junit4" ,java-jmock-junit4))))) | |
1139 | - | ||
1140 | - | (define-public java-lmax-disruptor | |
1141 | - | (package | |
1142 | - | (name "java-lmax-disruptor") | |
1143 | - | (version "3.3.6") | |
1144 | - | (source (origin | |
1145 | - | (method url-fetch) | |
1146 | - | (uri (string-append "https://github.com/LMAX-Exchange/disruptor/" | |
1147 | - | "archive/" version ".tar.gz")) | |
1148 | - | (sha256 | |
1149 | - | (base32 | |
1150 | - | "19c7c5cf3lby4fy7vl3b6a9hds1g0j7xgfbskqbdlcai1x82hh8i")))) | |
1151 | - | (build-system ant-build-system) | |
1152 | - | (arguments | |
1153 | - | `(#:jar-name "java-lmax-disruptor.jar" | |
1154 | - | #:jdk ,icedtea-8 | |
1155 | - | #:tests? #f)); tests hang | |
1156 | - | (inputs | |
1157 | - | `(("junit" ,java-junit) | |
1158 | - | ("java-hdrhistogram" ,java-hdrhistogram) | |
1159 | - | ("java-jmock" ,java-jmock) | |
1160 | - | ("java-jmock-legacy" ,java-jmock-legacy) | |
1161 | - | ("java-jmock-junit4" ,java-jmock-junit4) | |
1162 | - | ("java-hamcrest-all" ,java-hamcrest-all))) | |
1163 | - | (native-inputs | |
1164 | - | `(("cglib" ,java-cglib) | |
1165 | - | ("objenesis" ,java-objenesis) | |
1166 | - | ("asm" ,java-asm))) | |
1167 | - | (home-page "https://www.lmax.com/disruptor") | |
1168 | - | (synopsis "") | |
1169 | - | (description "") | |
1170 | - | (license license:asl2.0))) | |
1171 | - | ||
1172 | - | (define-public java-datanucleus-javax-persistence | |
1173 | - | (package | |
1174 | - | (name "java-datanucleus-javax-persistence") | |
1175 | - | (version "2.2.0") | |
1176 | - | (source (origin | |
1177 | - | (method url-fetch) | |
1178 | - | (uri (string-append "https://github.com/datanucleus/" | |
1179 | - | "javax.persistence/archive/javax.persistence-" | |
1180 | - | version "-release.tar.gz")) | |
1181 | - | (sha256 | |
1182 | - | (base32 | |
1183 | - | "11jx0fjwgc2hhbqqgdd6m1pf2fplf9vslppygax0y1z5csnqjhpx")))) | |
1184 | - | (build-system ant-build-system) | |
1185 | - | (arguments | |
1186 | - | `(#:jar-name "java-datanucleus-javax-persistence.jar" | |
1187 | - | #:jdk ,icedtea-8 | |
1188 | - | #:source-dir "src/main/java" | |
1189 | - | #:tests? #f)); no tests | |
1190 | - | (home-page "https://github.com/datanucleus/javax.persistence") | |
1191 | - | (synopsis "") | |
1192 | - | (description "") | |
1193 | - | (license (list license:edl1.0 license:epl1.0)))) | |
1194 | - | ||
1195 | - | (define-public java-jboss-javassist | |
1196 | - | (package | |
1197 | - | (name "java-jboss-javassist") | |
1198 | - | (version "3.21.0") | |
1199 | - | (source (origin | |
1200 | - | (method url-fetch) | |
1201 | - | (uri (string-append "https://github.com/jboss-javassist/javassist/" | |
1202 | - | "archive/rel_" | |
1203 | - | (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version) | |
1204 | - | "_ga.tar.gz")) | |
1205 | - | (sha256 | |
1206 | - | (base32 | |
1207 | - | "10lpcr3sbf7y6fq6fc2h2ik7rqrivwcy4747bg0kxhwszil3cfmf")))) | |
1208 | - | (build-system ant-build-system) | |
1209 | - | (arguments | |
1210 | - | `(#:jar-name "java-jboss-javassist.jar" | |
1211 | - | #:jdk ,icedtea-8 | |
1212 | - | #:source-dir "src/main" | |
1213 | - | #:tests? #f; FIXME: requires junit-awtui and junit-swingui from junit3 | |
1214 | - | #:phases | |
1215 | - | (modify-phases %standard-phases | |
1216 | - | (add-before 'configure 'remove-binary | |
1217 | - | (lambda _ | |
1218 | - | (delete-file "javassist.jar")))))) | |
1219 | - | (native-inputs | |
1220 | - | `(("junit" ,java-junit))) | |
1221 | - | (home-page "https://github.com/jboss-javassist/javassist") | |
1222 | - | (synopsis "Java bytecode engineering toolkit") | |
1223 | - | (description "Javassist (JAVA programming ASSISTant) makes Java bytecode | |
1224 | - | manipulation simple. It is a class library for editing bytecodes in Java; it | |
1225 | - | enables Java programs to define a new class at runtime and to modify a class | |
1226 | - | file when the JVM loads it.") | |
1227 | - | (license (list license:gpl2 license:cddl1.0)))); either gpl2 only or cddl. | |
1228 | - | ||
1229 | - | (define-public java-jboss-annotations-api-spec | |
1230 | - | (package | |
1231 | - | (name "java-jboss-annotations-api-spec") | |
1232 | - | (version "1.2") | |
1233 | - | (source (origin | |
1234 | - | (method url-fetch) | |
1235 | - | (uri (string-append "https://github.com/jboss/jboss-annotations-api_spec/" | |
1236 | - | "archive/jboss-annotations-api_" version | |
1237 | - | "_spec-1.0.1.Final.tar.gz")) | |
1238 | - | (sha256 | |
1239 | - | (base32 | |
1240 | - | "0zvglvscq177lahvp8n9nlm0vkdxlf6db0fs8jcy8zf82z6k4d2n")))) | |
1241 | - | (build-system ant-build-system) | |
1242 | - | (arguments | |
1243 | - | `(#:jar-name "java-jboss-annotations-api_spec.jar" | |
1244 | - | #:jdk ,icedtea-8 | |
1245 | - | #:source-dir "." | |
1246 | - | #:tests? #f)); no tests | |
1247 | - | (home-page "https://github.com/jboss/jboss-annotations-api_spec") | |
1248 | - | (synopsis "") | |
1249 | - | (description "") | |
1250 | - | (license (list license:gpl2 license:cddl1.0)))); either gpl2 only or cddl. | |
1251 | - | ||
1252 | - | (define-public java-jboss-interceptors-api-spec | |
1253 | - | (package | |
1254 | - | (name "java-jboss-interceptors-api-spec") | |
1255 | - | (version "1.2") | |
1256 | - | (source (origin | |
1257 | - | (method url-fetch) | |
1258 | - | (uri (string-append "https://github.com/jboss/jboss-interceptors-api_spec/" | |
1259 | - | "archive/jboss-interceptors-api_" version | |
1260 | - | "_spec-1.0.0.Final.tar.gz")) | |
1261 | - | (sha256 | |
1262 | - | (base32 | |
1263 | - | "0wv8x0jp9a5qxlrgkhb5jdk2gr6vi87b4j4kjb8ryxiy9gn8g51z")))) | |
1264 | - | (build-system ant-build-system) | |
1265 | - | (arguments | |
1266 | - | `(#:jar-name "java-jboss-interceptors-api_spec.jar" | |
1267 | - | #:jdk ,icedtea-8 | |
1268 | - | #:source-dir "." | |
1269 | - | #:tests? #f)); no tests | |
1270 | - | (home-page "https://github.com/jboss/jboss-interceptors-api_spec") | |
1271 | - | (synopsis "") | |
1272 | - | (description "") | |
1273 | - | (license (list license:gpl2 license:cddl1.0)))); either gpl2 only or cddl. | |
1274 | - | ||
1275 | - | (define-public java-jboss-el-api-spec | |
1276 | - | (package | |
1277 | - | (name "java-jboss-el-api-spec") | |
1278 | - | (version "3.0") | |
1279 | - | (source (origin | |
1280 | - | (method url-fetch) | |
1281 | - | (uri (string-append "https://github.com/jboss/jboss-el-api_spec/" | |
1282 | - | "archive/jboss-el-api_" version | |
1283 | - | "_spec-1.0.7.Final.tar.gz")) | |
1284 | - | (sha256 | |
1285 | - | (base32 | |
1286 | - | "1j45ljxalwlibxl7g7iv952sjxkw275m8vyxxij8l6wdd5pf0pdh")))) | |
686 | + | "1j45ljxalwlibxl7g7iv952sjxkw275m8vyxxij8l6wdd5pf0pdh")))) | |
1287 | 687 | (build-system ant-build-system) | |
1288 | 688 | (arguments | |
1289 | 689 | `(#:jar-name "java-jboss-el-api_spec.jar" | |
… | |||
1835 | 1235 | (description "") | |
1836 | 1236 | (license license:asl2.0))) | |
1837 | 1237 | ||
1838 | - | (define-public java-javax-inject | |
1839 | - | (package | |
1840 | - | (name "java-javax-inject") | |
1841 | - | (version "tck-1") | |
1842 | - | (source (origin | |
1843 | - | (method url-fetch) | |
1844 | - | (uri (string-append "https://github.com/javax-inject/javax-inject/" | |
1845 | - | "archive/javax.inject-" version ".tar.gz")) | |
1846 | - | (sha256 | |
1847 | - | (base32 | |
1848 | - | "1ydrlvh2r7vr1g7lhjwy3w2dggpj9h6pix1lakkkgdywb365n6g0")))) | |
1849 | - | (build-system ant-build-system) | |
1850 | - | (arguments | |
1851 | - | `(#:jar-name "java-javax-inject.jar" | |
1852 | - | #:jdk ,icedtea-8 | |
1853 | - | #:tests? #f)); no tests | |
1854 | - | (home-page "http://github.org/javax-inject/javax-inject") | |
1855 | - | (synopsis "JSR-330: Dependency Injection for Java") | |
1856 | - | (description "This package specifies a means for obtaining objects in such | |
1857 | - | a way as to maximize reusability, testability and maintainability compared to | |
1858 | - | traditional approaches such as constructors, factories, and service locators | |
1859 | - | (e.g., JNDI). This process, known as dependency injection, is beneficial to | |
1860 | - | most nontrivial applications. | |
1861 | - | ||
1862 | - | Many types depend on other types. For example, a @var{Stopwatch} might depend | |
1863 | - | on a @var{TimeSource}. The types on which a type depends are known as its | |
1864 | - | dependencies. The process of finding an instance of a dependency to use at run | |
1865 | - | time is known as resolving the dependency. If no such instance can be found, | |
1866 | - | the dependency is said to be unsatisfied, and the application is broken.") | |
1867 | - | (license license:asl2.0))) | |
1868 | - | ||
1869 | - | (define-public java-aopalliance | |
1870 | - | (package | |
1871 | - | (name "java-aopalliance") | |
1872 | - | (version "1.0") | |
1873 | - | (source (origin | |
1874 | - | (method git-fetch) | |
1875 | - | ;; Note: this git repository is not official, but contains the | |
1876 | - | ;; source code that is in the CVS repository. Downloading the | |
1877 | - | ;; tarball from sourceforge is undeterministic, and the cvs download | |
1878 | - | ;; fails. | |
1879 | - | (uri (git-reference | |
1880 | - | (url "https://github.com/hoverruan/aopalliance") | |
1881 | - | (commit "0d7757ae204e5876f69431421fe9bc2a4f01e8a0"))) | |
1882 | - | (file-name (string-append name "-" version)) | |
1883 | - | (sha256 | |
1884 | - | (base32 | |
1885 | - | "0rsg2b0v3hxlq2yk1i3m2gw3xwq689j3cwx9wbxvqfpdcjbca0qr")))) | |
1886 | - | (build-system ant-build-system) | |
1887 | - | (arguments | |
1888 | - | `(#:jar-name "java-aopalliance.jar" | |
1889 | - | #:jdk ,icedtea-8 | |
1890 | - | #:tests? #f; no tests | |
1891 | - | #:source-dir "aopalliance/src/main")) | |
1892 | - | (home-page "http://aopalliance.sourceforge.net") | |
1893 | - | (synopsis "") | |
1894 | - | (description "") | |
1895 | - | (license license:asl2.0))) | |
1896 | - | ||
1897 | - | (define-public java-guice | |
1238 | + | (define-public java-jeromq | |
1898 | 1239 | (package | |
1899 | - | (name "java-guice") | |
1900 | - | (version "4.1") | |
1240 | + | (name "java-jeromq") | |
1241 | + | (version "0.4.2") | |
1901 | 1242 | (source (origin | |
1902 | 1243 | (method url-fetch) | |
1903 | - | (uri (string-append "https://github.com/google/guice/archive/" | |
1244 | + | (uri (string-append "https://github.com/zeromq/jeromq/archive/v" | |
1904 | 1245 | version ".tar.gz")) | |
1905 | 1246 | (sha256 | |
1906 | 1247 | (base32 | |
1907 | - | "0dwmqjzlavb144ywqqglj3h68hqszkff8ai0a42hyb5il0qh4rbp")))) | |
1248 | + | "17wx8dlyqmbw77xf6d6wxnhiyky6181zpf1a48jqzz9hidz0j841")))) | |
1908 | 1249 | (build-system ant-build-system) | |
1909 | 1250 | (arguments | |
1910 | - | `(#:jar-name "java-guice.jar" | |
1251 | + | `(#:jar-name "java-jeromq.jar" | |
1252 | + | #:source-dir "src/main/java" | |
1911 | 1253 | #:jdk ,icedtea-8 | |
1912 | - | #:tests? #f; FIXME: tests are not in a java sub directory | |
1913 | - | #:source-dir "core/src")) | |
1254 | + | #:test-exclude | |
1255 | + | (list | |
1256 | + | "**/Abstract*.java" | |
1257 | + | ;; Requires network | |
1258 | + | "**/ZBeaconTest.java" | |
1259 | + | ;; FIXME: investigate test failure | |
1260 | + | "**/CustomDecoderTest.java" | |
1261 | + | "**/CustomEncoderTest.java"))) | |
1914 | 1262 | (inputs | |
1915 | - | `(("guava" ,java-guava) | |
1916 | - | ("java-cglib" ,java-cglib) | |
1917 | - | ("java-aopalliance" ,java-aopalliance) | |
1918 | - | ("java-javax-inject" ,java-javax-inject) | |
1919 | - | ("java-asm" ,java-asm))) | |
1920 | - | (home-page "http://github.org/google/guice") | |
1921 | - | (synopsis "") | |
1922 | - | (description "") | |
1923 | - | (license license:asl2.0))) | |
1263 | + | `(("java-jnacl" ,java-jnacl))) | |
1264 | + | (native-inputs | |
1265 | + | `(("java-hamcrest-core" ,java-hamcrest-core) | |
1266 | + | ("junit" ,java-junit))) | |
1267 | + | (home-page "http://zeromq.org/bindings:java") | |
1268 | + | (synopsis "Java binding for ??MQ") | |
1269 | + | (description "Jeromq provides the java bindings for ??MQ.") | |
1270 | + | (license license:mpl2.0))) | |
1924 | 1271 | ||
1925 | - | (define-public java-guice-servlet | |
1272 | + | (define-public java-log4j-core | |
1926 | 1273 | (package | |
1927 | - | (inherit java-guice) | |
1928 | - | (name "java-guice-servlet") | |
1929 | - | (arguments | |
1930 | - | `(#:jar-name "guice-servlet.jar" | |
1931 | - | #:source-dir "extensions/servlet/src/" | |
1932 | - | #:jdk ,icedtea-8 | |
1933 | - | #:tests? #f; FIXME: not in a java subdir | |
1934 | - | )) | |
1274 | + | (inherit java-log4j-api) | |
1275 | + | (name "java-log4j-core") | |
1935 | 1276 | (inputs | |
1936 | - | `(("guice" ,java-guice) | |
1937 | - | ("servlet" ,java-tomcat) | |
1938 | - | ,@(package-inputs java-guice))))) | |
1939 | - | ||
1940 | - | (define-public java-jcommander | |
1941 | - | (package | |
1942 | - | (name "java-jcommander") | |
1943 | - | (version "1.71") | |
1944 | - | (source (origin | |
1945 | - | (method url-fetch) | |
1946 | - | (uri (string-append "https://github.com/cbeust/jcommander/archive/" | |
1947 | - | version ".tar.gz")) | |
1948 | - | (sha256 | |
1949 | - | (base32 | |
1950 | - | "1f5k2ckay6qjc3d3w3d7bc0p3cx3c7n6p6zxvw1kibqdr0q98wlx")))) | |
1951 | - | (build-system ant-build-system) | |
1952 | - | (arguments | |
1953 | - | `(#:jar-name "java-jcommander.jar" | |
1954 | - | #:jdk ,icedtea-8 | |
1955 | - | #:tests? #f; requires testng which depends on jcommander | |
1956 | - | #:source-dir "src/main/java")) | |
1957 | - | (home-page "http://jcommander.org") | |
1958 | - | (synopsis "Command line parameters parser") | |
1959 | - | (description "JCommander is a very small Java framework that makes it | |
1960 | - | trivial to parse command line parameters. Parameters are declared with | |
1961 | - | annotations.") | |
1962 | - | (license license:asl2.0))) | |
1963 | - | ||
1964 | - | (define-public java-assertj | |
1965 | - | (package | |
1966 | - | (name "java-assertj") | |
1967 | - | (version "3.8.0") | |
1968 | - | (source (origin | |
1969 | - | (method url-fetch) | |
1970 | - | (uri (string-append "https://github.com/joel-costigliola/assertj-core/archive/" | |
1971 | - | "assertj-core-" version ".tar.gz")) | |
1972 | - | (sha256 | |
1973 | - | (base32 | |
1974 | - | "1kf124fxskf548rklkg86294w2x6ajqrff94rrhyqns31danqkfz")))) | |
1975 | - | (build-system ant-build-system) | |
1277 | + | `(("java-osgi-core" ,java-osgi-core) | |
1278 | + | ("java-hamcrest-core" ,java-hamcrest-core) | |
1279 | + | ("java-log4j-api" ,java-log4j-api) | |
1280 | + | ("java-mail" ,java-mail) | |
1281 | + | ("java-jboss-jms-api-spec" ,java-jboss-jms-api-spec) | |
1282 | + | ("java-lmax-disruptor" ,java-lmax-disruptor) | |
1283 | + | ("java-kafka" ,java-kafka-clients) | |
1284 | + | ("java-datanucleus-javax-persistence" ,java-datanucleus-javax-persistence) | |
1285 | + | ("java-fasterxml-jackson-annotations" ,java-fasterxml-jackson-annotations) | |
1286 | + | ("java-fasterxml-jackson-core" ,java-fasterxml-jackson-core) | |
1287 | + | ("java-fasterxml-jackson-databind" ,java-fasterxml-jackson-databind) | |
1288 | + | ("java-fasterxml-jackson-dataformat-xml" ,java-fasterxml-jackson-dataformat-xml) | |
1289 | + | ("java-fasterxml-jackson-dataformat-yaml" ,java-fasterxml-jackson-dataformat-yaml) | |
1290 | + | ("java-commons-compress" ,java-commons-compress) | |
1291 | + | ("java-commons-csv" ,java-commons-csv) | |
1292 | + | ("java-jeromq" ,java-jeromq) | |
1293 | + | ("java-junit" ,java-junit))) | |
1294 | + | (native-inputs | |
1295 | + | `(("hamcrest" ,java-hamcrest-all) | |
1296 | + | ("java-commons-io" ,java-commons-io) | |
1297 | + | ("java-commons-lang3" ,java-commons-lang3) | |
1298 | + | ("slf4j" ,java-slf4j-api))) | |
1976 | 1299 | (arguments | |
1977 | - | `(#:jar-name "java-assertj.jar" | |
1978 | - | #:jdk ,icedtea-8 | |
1300 | + | `(#:tests? #f ; tests require unpackaged software | |
1301 | + | #:test-dir "src/test" | |
1979 | 1302 | #:source-dir "src/main/java" | |
1980 | - | #:tests? #f)); depends on tng-junit which depends on assertj | |
1981 | - | (inputs | |
1982 | - | `(("cglib" ,java-cglib) | |
1983 | - | ("junit" ,java-junit) | |
1984 | - | ("hamcrest" ,java-hamcrest-core))) | |
1985 | - | (native-inputs | |
1986 | - | `(("mockito" ,java-mockito-1))) | |
1987 | - | (home-page "https://joel-costigliola.github.io/assertj/index.html") | |
1988 | - | (synopsis "") | |
1989 | - | (description "") | |
1990 | - | (license license:asl2.0))) | |
1303 | + | #:jar-name "log4j-core.jar" | |
1304 | + | #:jdk ,icedtea-8 | |
1305 | + | #:make-flags | |
1306 | + | (list (string-append "-Ddist.dir=" (assoc-ref %outputs "out") | |
1307 | + | "/share/java")) | |
1308 | + | #:phases | |
1309 | + | (modify-phases %standard-phases | |
1310 | + | (add-after 'unpack 'enter-dir | |
1311 | + | (lambda _ (chdir "log4j-core") #t))))) | |
1312 | + | (synopsis "Core component of the Log4j framework") | |
1313 | + | (description "This package provides the core component of the Log4j | |
1314 | + | logging framework for Java."))) | |
1991 | 1315 | ||
1992 | - | (define-public java-testng | |
1316 | + | (define-public java-apache-felix-utils | |
1993 | 1317 | (package | |
1994 | - | (name "java-testng") | |
1995 | - | (version "6.12") | |
1318 | + | (name "java-apache-felix-utils") | |
1319 | + | (version "1.10.2") | |
1996 | 1320 | (source (origin | |
1997 | 1321 | (method url-fetch) | |
1998 | - | (uri (string-append "https://github.com/cbeust/testng/archive/" | |
1999 | - | version ".tar.gz")) | |
1322 | + | (uri (string-append "http://apache.mindstudios.com/felix/" | |
1323 | + | "org.apache.felix.utils-" version | |
1324 | + | "-source-release.tar.gz")) | |
2000 | 1325 | (sha256 | |
2001 | 1326 | (base32 | |
2002 | - | "01j2x47wkj7n5w6gpcjfbwgc88ai5654b23lb87w7nsrj63m3by6")))) | |
1327 | + | "0b2cvw7pfkslvlg0hfgqp3kl0qbzj5hq62mmx1m4iqwbi2h8103s")))) | |
2003 | 1328 | (build-system ant-build-system) | |
2004 | 1329 | (arguments | |
2005 | - | `(#:jdk ,icedtea-8; java.util.function | |
2006 | - | #:jar-name "java-testng.jar" | |
2007 | - | #:source-dir "src/main/java" | |
2008 | - | #:phases | |
2009 | - | (modify-phases %standard-phases | |
2010 | - | (add-before 'build 'copy-resources | |
2011 | - | (lambda _ | |
2012 | - | (let ((dir (string-append (getcwd) "/build/classes/"))) | |
2013 | - | (with-directory-excursion "src/main/resources" | |
2014 | - | (for-each (lambda (file) | |
2015 | - | (mkdir-p (dirname (string-append dir file))) | |
2016 | - | (copy-file file (string-append dir file))) | |
2017 | - | (find-files "." ".*")))))) | |
2018 | - | (add-before 'check 'copy-test-resources | |
2019 | - | (lambda _ | |
2020 | - | (let ((dir (string-append (getcwd) "/build/test-classes/"))) | |
2021 | - | (with-directory-excursion "src/test/resources" | |
2022 | - | (for-each (lambda (file) | |
2023 | - | (mkdir-p (dirname (string-append dir file))) | |
2024 | - | (copy-file file (string-append dir file))) | |
2025 | - | (find-files "." ".*")))))) | |
2026 | - | (replace 'check | |
2027 | - | (lambda _ | |
2028 | - | (system* "ant" "compile-tests") | |
2029 | - | ;; we don't have groovy | |
2030 | - | (substitute* "src/test/resources/testng.xml" | |
2031 | - | (("<class name=\"test.groovy.GroovyTest\" />") "")) | |
2032 | - | (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
2033 | - | ":build/classes" | |
2034 | - | ":build/test-classes") | |
2035 | - | "-Dtest.resources.dir=src/test/resources" | |
2036 | - | "org.testng.TestNG" "src/test/resources/testng.xml"))))))) | |
2037 | - | (propagated-inputs | |
2038 | - | `(("junit" ,java-junit) | |
2039 | - | ("java-jsr305" ,java-jsr305) | |
2040 | - | ("java-bsh" ,java-bsh) | |
2041 | - | ("java-jcommander" ,java-jcommander) | |
2042 | - | ("java-guice" ,java-guice) | |
2043 | - | ("snakeyaml" ,java-snakeyaml))) | |
2044 | - | (native-inputs | |
2045 | - | `(("guava" ,java-guava) | |
2046 | - | ("java-javax-inject" ,java-javax-inject) | |
2047 | - | ("java-hamcrest" ,java-hamcrest-all) | |
2048 | - | ("java-assertj" ,java-assertj) | |
2049 | - | ("cglib" ,java-cglib) | |
2050 | - | ("asm" ,java-asm) | |
2051 | - | ("aopalliance" ,java-aopalliance))) | |
2052 | - | (home-page "http://testng.org") | |
2053 | - | (synopsis "Testing framework") | |
2054 | - | (description "TestNG is a testing framework inspired from JUnit and NUnit | |
2055 | - | but introducing some new functionalities that make it more powerful and easier | |
2056 | - | to use.") | |
2057 | - | (license license:asl2.0))) | |
2058 | - | ||
2059 | - | (define-public java-fest-util | |
2060 | - | (package | |
2061 | - | (name "java-fest-util") | |
2062 | - | (version "1.2.5") | |
2063 | - | (source (origin | |
2064 | - | (method url-fetch) | |
2065 | - | (uri (string-append "https://github.com/alexruiz/fest-util/" | |
2066 | - | "archive/fest-util-" version ".tar.gz")) | |
2067 | - | (sha256 | |
2068 | - | (base32 | |
2069 | - | "05g6hljz5mdaakk8d7g32klbhz9bdwp3qlj6rdaggdidxs3x1sb8")))) | |
2070 | - | (build-system ant-build-system) | |
2071 | - | (arguments | |
2072 | - | `(#:jar-name "java-fest-util.jar" | |
2073 | - | #:source-dir "src/main/java")) | |
2074 | - | (native-inputs | |
2075 | - | `(("junit" ,java-junit) | |
2076 | - | ("hamcrest" ,java-hamcrest-core))) | |
2077 | - | (home-page "https://github.com/alexruiz/fest-util") | |
2078 | - | (synopsis "FEST common utilities") | |
2079 | - | (description "Common utilities used in all FEST module.") | |
2080 | - | (license license:asl2.0))) | |
2081 | - | ||
2082 | - | ;; required by java-jnacl | |
2083 | - | ;(define java-fest-util-1.3 | |
2084 | - | ; (package | |
2085 | - | ; (inherit java-fest-util) | |
2086 | - | ; (name "java-fest-util") | |
2087 | - | ; (version "1.3.0-SNAPSHOT") | |
2088 | - | ; (source (origin | |
2089 | - | ; (method git-fetch) | |
2090 | - | ; (uri (git-reference | |
2091 | - | ; (url "https://github.com/alexruiz/fest-util") | |
2092 | - | ; (commit "6bca64f2673fbc255bab6c289dc65333f28734f6"))) | |
2093 | - | ; (file-name (string-append name "-" version)) | |
2094 | - | ; (sha256 | |
2095 | - | ; (base32 | |
2096 | - | ; "1gfvy0s47xvg7rf1dx174pcq9mmsrcg172sprn7s9859hcy9r8y8")))) | |
2097 | - | ; (inputs | |
2098 | - | ; `(("java-error-prone-annotations" ,java-error-prone-annotations))))) | |
2099 | - | ||
2100 | - | (define-public java-fest-test | |
2101 | - | (package | |
2102 | - | (name "java-fest-test") | |
2103 | - | (version "2.1.0") | |
2104 | - | (source (origin | |
2105 | - | (method url-fetch) | |
2106 | - | (uri (string-append "https://github.com/alexruiz/fest-test/" | |
2107 | - | "archive/fest-test-" version ".tar.gz")) | |
2108 | - | (sha256 | |
2109 | - | (base32 | |
2110 | - | "1rxfbw6l9vc65iy1x3fb617qc6y4w2k430pgf1mfbxfdlxbm0f7g")))) | |
2111 | - | (build-system ant-build-system) | |
2112 | - | (arguments | |
2113 | - | `(#:jar-name "java-fest-test.jar" | |
2114 | - | #:source-dir "src/main/java" | |
2115 | - | #:tests? #f)); no tests | |
2116 | - | (inputs | |
2117 | - | `(("junit" ,java-junit))) | |
2118 | - | (home-page "https://github.com/alexruiz/fest-test") | |
2119 | - | (synopsis "Common FEST testing infrastructure") | |
2120 | - | (description "Fest-test contains the common FEST testing infrastructure.") | |
2121 | - | (license license:asl2.0))) | |
2122 | - | ||
2123 | - | ;(define-public java-fest-assert-1 | |
2124 | - | ; (package | |
2125 | - | ; (name "java-fest-assert") | |
2126 | - | ; (version "1.4") | |
2127 | - | ; (source (origin | |
2128 | - | ; (method url-fetch) | |
2129 | - | ; (uri (string-append "https://github.com/alexruiz/fest-assert-1.x/" | |
2130 | - | ; "archive/" version ".tar.gz")) | |
2131 | - | ; (sha256 | |
2132 | - | ; (base32 | |
2133 | - | ; "0q4jvjydrd0pl10cp9vl18kph2wg429qallicfrqhh7mdr8dpvw5")))) | |
2134 | - | ; (inputs | |
2135 | - | ; `(("java-fest-util" ,java-fest-util-1.3))) | |
2136 | - | ; (build-system ant-build-system) | |
2137 | - | ; (arguments | |
2138 | - | ; `(#:jar-name "java-fest-assert.jar" | |
2139 | - | ; #:source-dir "src/main/java")) | |
2140 | - | ; (home-page "https://github.com/alexruiz/fest-assert-2.x") | |
2141 | - | ; (synopsis "") | |
2142 | - | ; (description "") | |
2143 | - | ; (license license:asl2.0))) | |
2144 | - | ||
2145 | - | (define-public java-fest-assert | |
2146 | - | (package | |
2147 | - | (name "java-fest-assert") | |
2148 | - | (version "2.0M10") | |
2149 | - | (source (origin | |
2150 | - | (method url-fetch) | |
2151 | - | (uri (string-append "https://github.com/alexruiz/fest-assert-2.x/" | |
2152 | - | "archive/fest-assert-core-" version ".tar.gz")) | |
2153 | - | (sha256 | |
2154 | - | (base32 | |
2155 | - | "1bi0iqavikzww6rxvz5jyg7y6bflv95s6ibryxx0xfcxrrw6i5lw")))) | |
2156 | - | (build-system ant-build-system) | |
2157 | - | (arguments | |
2158 | - | `(#:jar-name "java-fest-assert.jar" | |
2159 | - | #:source-dir "src/main/java" | |
2160 | - | #:test-exclude | |
2161 | - | (list | |
2162 | - | "**/Abstract*.java" | |
2163 | - | "**/*BaseTest.java" | |
2164 | - | ;; Unable to set MockitoNamingPolicy on cglib generator which creates FastClasses | |
2165 | - | "**/MessageFormatter_format_Test.java" | |
2166 | - | "**/internal/*/*_assert*_Test.java"))) | |
2167 | - | (inputs | |
2168 | - | `(("java-fest-util" ,java-fest-util))) | |
2169 | - | (native-inputs | |
2170 | - | `(("java-junit" ,java-junit) | |
2171 | - | ("java-fest-test" ,java-fest-test) | |
2172 | - | ("java-hamcrest-core" ,java-hamcrest-core) | |
2173 | - | ("java-mockito" ,java-mockito-1) | |
2174 | - | ("java-cglib" ,java-cglib) | |
2175 | - | ("java-objenesis" ,java-objenesis) | |
2176 | - | ("java-asm" ,java-asm))) | |
2177 | - | (home-page "https://github.com/alexruiz/fest-assert-2.x") | |
2178 | - | (synopsis "FEST fluent assertions") | |
2179 | - | (description "FEST-Assert provides a fluent interface for assertions.") | |
2180 | - | (license license:asl2.0))) | |
2181 | - | ||
2182 | - | (define-public java-jnacl | |
2183 | - | (package | |
2184 | - | (name "java-jnacl") | |
2185 | - | (version "0.1.0") | |
2186 | - | (source (origin | |
2187 | - | (method git-fetch) | |
2188 | - | (uri (git-reference | |
2189 | - | (url "https://github.com/neilalexander/jnacl") | |
2190 | - | (commit "40c322e0a42637ab17cdf941138eeaf2494055f8"))) | |
2191 | - | (sha256 | |
2192 | - | (base32 | |
2193 | - | "1pspnmp44q61a2q4bpslpxw86rfn8s5l0xgvyrikqgdvg7ypx597")))) | |
2194 | - | (build-system ant-build-system) | |
2195 | - | (arguments | |
2196 | - | `(#:jar-name "java-jnacl.jar" | |
2197 | - | #:source-dir "src/main/java" | |
2198 | - | #:jdk ,icedtea-8 | |
2199 | - | #:phases | |
2200 | - | (modify-phases %standard-phases | |
2201 | - | (add-before 'check 'fix-tests | |
2202 | - | (lambda _ | |
2203 | - | (substitute* "src/test/java/com/neilalexander/jnacl/NaClTest.java" | |
2204 | - | (("assertions.Assertions") "assertions.api.Assertions")) | |
2205 | - | (substitute* "src/test/java/com/neilalexander/jnacl/NaclSecretBoxTest.java" | |
2206 | - | (("assertions.Assertions") "assertions.api.Assertions")))) | |
2207 | - | (replace 'check | |
2208 | - | (lambda _ | |
2209 | - | (system* "ant" "compile-tests") | |
2210 | - | (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
2211 | - | ":build/classes" | |
2212 | - | ":build/test-classes") | |
2213 | - | "org.testng.TestNG" "-testclass" | |
2214 | - | "build/test-classes/com/neilalexander/jnacl/NaclSecretBoxTest.class")) | |
2215 | - | (zero? (system* "java" "-cp" (string-append (getenv "CLASSPATH") | |
2216 | - | ":build/classes" | |
2217 | - | ":build/test-classes") | |
2218 | - | "org.testng.TestNG" "-testclass" | |
2219 | - | "build/test-classes/com/neilalexander/jnacl/NaClTest.class"))))))) | |
2220 | - | (native-inputs | |
2221 | - | `(("java-testng" ,java-testng) | |
2222 | - | ("java-fest-util" ,java-fest-util) | |
2223 | - | ("java-fest-assert" ,java-fest-assert))) | |
2224 | - | (home-page "https://github.com/neilalexander/jnacl") | |
2225 | - | (synopsis "Java implementation of NaCl") | |
2226 | - | (description "Pure Java implementation of the NaCl: Networking and | |
2227 | - | Cryptography library.") | |
2228 | - | (license license:mpl2.0))) | |
2229 | - | ||
2230 | - | (define-public java-jeromq | |
2231 | - | (package | |
2232 | - | (name "java-jeromq") | |
2233 | - | (version "0.4.2") | |
2234 | - | (source (origin | |
2235 | - | (method url-fetch) | |
2236 | - | (uri (string-append "https://github.com/zeromq/jeromq/archive/v" | |
2237 | - | version ".tar.gz")) | |
2238 | - | (sha256 | |
2239 | - | (base32 | |
2240 | - | "17wx8dlyqmbw77xf6d6wxnhiyky6181zpf1a48jqzz9hidz0j841")))) | |
2241 | - | (build-system ant-build-system) | |
2242 | - | (arguments | |
2243 | - | `(#:jar-name "java-jeromq.jar" | |
2244 | - | #:source-dir "src/main/java" | |
2245 | - | #:jdk ,icedtea-8 | |
2246 | - | #:test-exclude | |
2247 | - | (list | |
2248 | - | "**/Abstract*.java" | |
2249 | - | ;; Requires network | |
2250 | - | "**/ZBeaconTest.java" | |
2251 | - | ;; FIXME: investigate test failure | |
2252 | - | "**/CustomDecoderTest.java" | |
2253 | - | "**/CustomEncoderTest.java"))) | |
2254 | - | (inputs | |
2255 | - | `(("java-jnacl" ,java-jnacl))) | |
2256 | - | (native-inputs | |
2257 | - | `(("java-hamcrest-core" ,java-hamcrest-core) | |
2258 | - | ("junit" ,java-junit))) | |
2259 | - | (home-page "http://zeromq.org/bindings:java") | |
2260 | - | (synopsis "Java binding for ??MQ") | |
2261 | - | (description "Jeromq provides the java bindings for ??MQ.") | |
2262 | - | (license license:mpl2.0))) | |
2263 | - | ||
2264 | - | (define-public java-log4j-core | |
2265 | - | (package | |
2266 | - | (inherit java-log4j-api) | |
2267 | - | (name "java-log4j-core") | |
2268 | - | (inputs | |
2269 | - | `(("java-osgi-core" ,java-osgi-core) | |
2270 | - | ("java-hamcrest-core" ,java-hamcrest-core) | |
2271 | - | ("java-log4j-api" ,java-log4j-api) | |
2272 | - | ("java-mail" ,java-mail) | |
2273 | - | ("java-jboss-jms-api-spec" ,java-jboss-jms-api-spec) | |
2274 | - | ("java-lmax-disruptor" ,java-lmax-disruptor) | |
2275 | - | ("java-kafka" ,java-kafka-clients) | |
2276 | - | ("java-datanucleus-javax-persistence" ,java-datanucleus-javax-persistence) | |
2277 | - | ("java-fasterxml-jackson-annotations" ,java-fasterxml-jackson-annotations) | |
2278 | - | ("java-fasterxml-jackson-core" ,java-fasterxml-jackson-core) | |
2279 | - | ("java-fasterxml-jackson-databind" ,java-fasterxml-jackson-databind) | |
2280 | - | ("java-fasterxml-jackson-dataformat-xml" ,java-fasterxml-jackson-dataformat-xml) | |
2281 | - | ("java-fasterxml-jackson-dataformat-yaml" ,java-fasterxml-jackson-dataformat-yaml) | |
2282 | - | ("java-commons-compress" ,java-commons-compress) | |
2283 | - | ("java-commons-csv" ,java-commons-csv) | |
2284 | - | ("java-jeromq" ,java-jeromq) | |
2285 | - | ("java-junit" ,java-junit))) | |
2286 | - | (native-inputs | |
2287 | - | `(("hamcrest" ,java-hamcrest-all) | |
2288 | - | ("java-commons-io" ,java-commons-io) | |
2289 | - | ("java-commons-lang3" ,java-commons-lang3) | |
2290 | - | ("slf4j" ,java-slf4j-api))) | |
2291 | - | (arguments | |
2292 | - | `(#:tests? #f ; tests require unpackaged software | |
2293 | - | #:test-dir "src/test" | |
2294 | - | #:source-dir "src/main/java" | |
2295 | - | #:jar-name "log4j-core.jar" | |
2296 | - | #:jdk ,icedtea-8 | |
2297 | - | #:make-flags | |
2298 | - | (list (string-append "-Ddist.dir=" (assoc-ref %outputs "out") | |
2299 | - | "/share/java")) | |
2300 | - | #:phases | |
2301 | - | (modify-phases %standard-phases | |
2302 | - | (add-after 'unpack 'enter-dir | |
2303 | - | (lambda _ (chdir "log4j-core") #t))))) | |
2304 | - | (synopsis "Core component of the Log4j framework") | |
2305 | - | (description "This package provides the core component of the Log4j | |
2306 | - | logging framework for Java."))) | |
2307 | - | ||
2308 | - | (define-public java-apache-felix-utils | |
2309 | - | (package | |
2310 | - | (name "java-apache-felix-utils") | |
2311 | - | (version "1.10.2") | |
2312 | - | (source (origin | |
2313 | - | (method url-fetch) | |
2314 | - | (uri (string-append "http://apache.mindstudios.com/felix/" | |
2315 | - | "org.apache.felix.utils-" version | |
2316 | - | "-source-release.tar.gz")) | |
2317 | - | (sha256 | |
2318 | - | (base32 | |
2319 | - | "0b2cvw7pfkslvlg0hfgqp3kl0qbzj5hq62mmx1m4iqwbi2h8103s")))) | |
2320 | - | (build-system ant-build-system) | |
2321 | - | (arguments | |
2322 | - | `(#:jar-name "felix-utils.jar" | |
1330 | + | `(#:jar-name "felix-utils.jar" | |
2323 | 1331 | #:source-dir "src/main/java" | |
2324 | 1332 | #:phases | |
2325 | 1333 | (modify-phases %standard-phases | |
… | |||
6185 | 5193 | (description "") | |
6186 | 5194 | (license license:epl1.0))) | |
6187 | 5195 | ||
6188 | - | (define-public java-eclipse-jetty-test-helper | |
6189 | - | (package | |
6190 | - | (name "java-eclipse-jetty-test-helper") | |
6191 | - | (version "4.2") | |
6192 | - | (source (origin | |
6193 | - | (method url-fetch) | |
6194 | - | (uri (string-append "https://github.com/eclipse/jetty.toolchain/" | |
6195 | - | "archive/jetty-test-helper-" version ".tar.gz")) | |
6196 | - | (sha256 | |
6197 | - | (base32 | |
6198 | - | "1jd6r9wc26fa11si4rn2gvy8ml8q4zw1nr6v04mjp8wvwpgvzwx5")))) | |
6199 | - | (build-system ant-build-system) | |
6200 | - | (arguments | |
6201 | - | `(#:jar-name "eclipse-jetty-test-helper.jar" | |
6202 | - | #:source-dir "src/main/java" | |
6203 | - | #:test-dir "src/test" | |
6204 | - | #:jdk ,icedtea-8 | |
6205 | - | #:phases | |
6206 | - | (modify-phases %standard-phases | |
6207 | - | (add-before 'configure 'chdir | |
6208 | - | (lambda _ | |
6209 | - | (chdir "jetty-test-helper"))) | |
6210 | - | (add-before 'build 'fix-build-path | |
6211 | - | (lambda _ | |
6212 | - | ;; FIXME: | |
6213 | - | ;; This file assumes that the build directory is named "target" | |
6214 | - | ;; but it is not the case with our ant-build-system. Once we have | |
6215 | - | ;; maven though, we will have to rebuild this package because this | |
6216 | - | ;; assumption is correct with maven-build-system. | |
6217 | - | (substitute* "src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java" | |
6218 | - | (("\"target\"") "\"build\"") | |
6219 | - | (("\"tests\"") "\"test-classes\"")))) | |
6220 | - | (add-before 'check 'fix-paths | |
6221 | - | (lambda _ | |
6222 | - | (with-directory-excursion "src/test/java/org/eclipse/jetty/toolchain/test" | |
6223 | - | (substitute* '("FSTest.java" "OSTest.java" "TestingDirTest.java" | |
6224 | - | "MavenTestingUtilsTest.java") | |
6225 | - | (("target/tests") "build/test-classes") | |
6226 | - | (("\"target") "\"build")))))))) | |
6227 | - | (inputs | |
6228 | - | `(("junit" ,java-junit) | |
6229 | - | ("hamcrest" ,java-hamcrest-all))) | |
6230 | - | (home-page "https://www.eclipse.org/jetty") | |
6231 | - | (synopsis "") | |
6232 | - | (description "") | |
6233 | - | (license (list license:epl1.0 license:asl2.0)))) | |
6234 | - | ||
6235 | - | ;(define-public java-eclipse-jetty-test-helper-4.1 | |
6236 | - | ; (package | |
6237 | - | ; (inherit java-eclipse-jetty-test-helper) | |
6238 | - | ; (version "3.1") | |
6239 | - | ; (source (origin | |
6240 | - | ; (method url-fetch) | |
6241 | - | ; (uri (string-append "https://github.com/eclipse/jetty.toolchain/" | |
6242 | - | ; "archive/jetty-test-helper-" version ".tar.gz")) | |
6243 | - | ; (sha256 | |
6244 | - | ; (base32 | |
6245 | - | ; "10qrsii9vzbwjfw5q8gfhzcawsq7i9251phpfr6hx7hz8qmhkdwp")))))) | |
6246 | - | ||
6247 | - | (define-public java-eclipse-jetty-perf-helper | |
6248 | - | (package | |
6249 | - | (inherit java-eclipse-jetty-test-helper) | |
6250 | - | (name "java-eclipse-jetty-perf-helper") | |
6251 | - | (arguments | |
6252 | - | `(#:jar-name "eclipse-jetty-perf-helper.jar" | |
6253 | - | #:source-dir "src/main/java" | |
6254 | - | #:tests? #f; no tests | |
6255 | - | #:jdk ,icedtea-8 | |
6256 | - | #:phases | |
6257 | - | (modify-phases %standard-phases | |
6258 | - | (add-before 'configure 'chdir | |
6259 | - | (lambda _ | |
6260 | - | (chdir "jetty-perf-helper")))))) | |
6261 | - | (inputs | |
6262 | - | `(("hdrhistogram" ,java-hdrhistogram))))) | |
6263 | - | ||
6264 | - | ;(define-public java-eclipse-jetty-perf-helper-3 | |
6265 | - | ; (package | |
6266 | - | ; (inherit java-eclipse-jetty-perf-helper) | |
6267 | - | ; (version (package-version java-eclipse-jetty-test-helper-3)) | |
6268 | - | ; (source (package-source java-eclipse-jetty-test-helper-3)))) | |
6269 | - | ||
6270 | - | (define-public java-eclipse-jetty-util | |
6271 | - | (package | |
6272 | - | (name "java-eclipse-jetty-util") | |
6273 | - | (version "9.4.6") | |
6274 | - | (source (origin | |
6275 | - | (method url-fetch) | |
6276 | - | (uri (string-append "https://github.com/eclipse/jetty.project/" | |
6277 | - | "archive/jetty-" version ".v20170531.tar.gz")) | |
6278 | - | (sha256 | |
6279 | - | (base32 | |
6280 | - | "0wy2iarfs952hczznkxsh7kp2s9gw4wsaahrc7ym2gnp727ldpn9")))) | |
6281 | - | (build-system ant-build-system) | |
6282 | - | (arguments | |
6283 | - | `(#:jar-name "eclipse-jetty-util.jar" | |
6284 | - | #:source-dir "src/main/java" | |
6285 | - | #:test-exclude (list "**/Abstract*.java" | |
6286 | - | ;; requires network | |
6287 | - | "**/InetAddressSetTest.java" | |
6288 | - | ;; Assumes we are using maven | |
6289 | - | "**/TypeUtilTest.java" | |
6290 | - | ;; Error on the style of log | |
6291 | - | "**/StdErrLogTest.java") | |
6292 | - | #:jdk ,icedtea-8 | |
6293 | - | #:phases | |
6294 | - | (modify-phases %standard-phases | |
6295 | - | (add-before 'configure 'chdir | |
6296 | - | (lambda _ | |
6297 | - | (chdir "jetty-util")))))) | |
6298 | - | (inputs | |
6299 | - | `(("slf4j" ,java-slf4j-api) | |
6300 | - | ("servlet" ,java-tomcat))) | |
6301 | - | (native-inputs | |
6302 | - | `(("junit" ,java-junit) | |
6303 | - | ("hamcrest" ,java-hamcrest-all) | |
6304 | - | ("perf-helper" ,java-eclipse-jetty-perf-helper) | |
6305 | - | ("test-helper" ,java-eclipse-jetty-test-helper))) | |
6306 | - | (home-page "https://www.eclipse.org/jetty") | |
6307 | - | (synopsis "") | |
6308 | - | (description "") | |
6309 | - | (license (list license:epl1.0 license:asl2.0)))) | |
6310 | - | ||
6311 | - | ;; This version is required by maven-wagon | |
6312 | - | (define-public java-eclipse-jetty-util-9.2 | |
6313 | - | (package | |
6314 | - | (inherit java-eclipse-jetty-util) | |
6315 | - | (version "9.2.22") | |
6316 | - | (source (origin | |
6317 | - | (method url-fetch) | |
6318 | - | (uri (string-append "https://github.com/eclipse/jetty.project/" | |
6319 | - | "archive/jetty-" version ".v20170606.tar.gz")) | |
6320 | - | (sha256 | |
6321 | - | (base32 | |
6322 | - | "1i51qlsd7h06d35kx5rqpzbfadbcszycx1iwr6vz7qc9gf9f29la")))) | |
6323 | - | (arguments | |
6324 | - | `(#:jar-name "eclipse-jetty-util.jar" | |
6325 | - | #:source-dir "src/main/java" | |
6326 | - | #:jdk ,icedtea-8 | |
6327 | - | #:test-exclude (list "**/Abstract*.java" | |
6328 | - | ;; requires network | |
6329 | - | "**/InetAddressSetTest.java" | |
6330 | - | ;; Assumes we are using maven | |
6331 | - | "**/TypeUtilTest.java" | |
6332 | - | ;; We don't have an implementation for slf4j | |
6333 | - | "**/LogTest.java" | |
6334 | - | ;; Error on the style of log | |
6335 | - | "**/StdErrLogTest.java") | |
6336 | - | #:phases | |
6337 | - | (modify-phases %standard-phases | |
6338 | - | (add-before 'configure 'chdir | |
6339 | - | (lambda _ | |
6340 | - | (chdir "jetty-util"))) | |
6341 | - | (add-before 'check 'fix-sources | |
6342 | - | (lambda _ | |
6343 | - | (substitute* "src/test/java/org/eclipse/jetty/util/resource/AbstractFSResourceTest.java" | |
6344 | - | (("testdir.getDir\\(\\)") "testdir.getPath().toFile()") | |
6345 | - | (("testdir.getFile\\(\"foo\"\\)") | |
6346 | - | "testdir.getPathFile(\"foo\").toFile()") | |
6347 | - | (("testdir.getFile\\(name\\)") | |
6348 | - | "testdir.getPathFile(name).toFile()"))))))))) | |
6349 | - | ||
6350 | - | (define-public java-eclipse-jetty-io | |
6351 | - | (package | |
6352 | - | (inherit java-eclipse-jetty-util) | |
6353 | - | (name "java-eclipse-jetty-io") | |
6354 | - | (arguments | |
6355 | - | `(#:jar-name "eclipse-jetty-io.jar" | |
6356 | - | #:source-dir "src/main/java" | |
6357 | - | #:jdk ,icedtea-8 | |
6358 | - | #:test-exclude (list "**/Abstract*.java" | |
6359 | - | ;; Abstract class | |
6360 | - | "**/EndPointTest.java") | |
6361 | - | #:phases | |
6362 | - | (modify-phases %standard-phases | |
6363 | - | (add-before 'configure 'chdir | |
6364 | - | (lambda _ | |
6365 | - | (chdir "jetty-io")))))) | |
6366 | - | (inputs | |
6367 | - | `(("slf4j" ,java-slf4j-api) | |
6368 | - | ("servlet" ,java-tomcat) | |
6369 | - | ("util" ,java-eclipse-jetty-util))))) | |
6370 | - | ||
6371 | - | (define-public java-eclipse-jetty-io-9.2 | |
6372 | - | (package | |
6373 | - | (inherit java-eclipse-jetty-io) | |
6374 | - | (version (package-version java-eclipse-jetty-util-9.2)) | |
6375 | - | (source (package-source java-eclipse-jetty-util-9.2)) | |
6376 | - | (inputs | |
6377 | - | `(("util" ,java-eclipse-jetty-util-9.2) | |
6378 | - | ,@(package-inputs java-eclipse-jetty-util-9.2))) | |
6379 | - | (native-inputs | |
6380 | - | `(("mockito" ,java-mockito-1) | |
6381 | - | ("cglib" ,java-cglib) | |
6382 | - | ("objenesis" ,java-objenesis) | |
6383 | - | ("asm" ,java-asm) | |
6384 | - | ,@(package-native-inputs java-eclipse-jetty-util-9.2))))) | |
6385 | - | ||
6386 | - | (define-public java-eclipse-jetty-http | |
6387 | - | (package | |
6388 | - | (inherit java-eclipse-jetty-util) | |
6389 | - | (name "java-eclipse-jetty-http") | |
6390 | - | (arguments | |
6391 | - | `(#:jar-name "eclipse-jetty-http.jar" | |
6392 | - | #:source-dir "src/main/java" | |
6393 | - | #:jdk ,icedtea-8 | |
6394 | - | #:phases | |
6395 | - | (modify-phases %standard-phases | |
6396 | - | (add-before 'configure 'chdir | |
6397 | - | (lambda _ | |
6398 | - | (chdir "jetty-http"))) | |
6399 | - | (add-before 'build 'copy-resources | |
6400 | - | (lambda _ | |
6401 | - | (mkdir-p "build/classes") | |
6402 | - | (copy-recursively "src/main/resources/" "build/classes/")))))) | |
6403 | - | (inputs | |
6404 | - | `(("slf4j" ,java-slf4j-api) | |
6405 | - | ("servlet" ,java-tomcat) | |
6406 | - | ("io" ,java-eclipse-jetty-io) | |
6407 | - | ("util" ,java-eclipse-jetty-util))))) | |
6408 | - | ||
6409 | - | (define-public java-eclipse-jetty-http-9.2 | |
6410 | - | (package | |
6411 | - | (inherit java-eclipse-jetty-http) | |
6412 | - | (version (package-version java-eclipse-jetty-util-9.2)) | |
6413 | - | (source (package-source java-eclipse-jetty-util-9.2)) | |
6414 | - | (inputs | |
6415 | - | `(("util" ,java-eclipse-jetty-util-9.2) | |
6416 | - | ("io" ,java-eclipse-jetty-io-9.2) | |
6417 | - | ,@(package-inputs java-eclipse-jetty-util-9.2))))) | |
6418 | - | ||
6419 | - | (define java-eclipse-jetty-http-test-classes | |
6420 | - | (package | |
6421 | - | (inherit java-eclipse-jetty-util) | |
6422 | - | (name "java-eclipse-jetty-http-test-classes") | |
6423 | - | (arguments | |
6424 | - | `(#:jar-name "eclipse-jetty-http.jar" | |
6425 | - | #:source-dir "src/test" | |
6426 | - | #:tests? #f | |
6427 | - | #:jdk ,icedtea-8 | |
6428 | - | #:phases | |
6429 | - | (modify-phases %standard-phases | |
6430 | - | (add-before 'configure 'chdir | |
6431 | - | (lambda _ | |
6432 | - | (chdir "jetty-http")))))) | |
6433 | - | (inputs | |
6434 | - | `(("slf4j" ,java-slf4j-api) | |
6435 | - | ("servlet" ,java-tomcat) | |
6436 | - | ("http" ,java-eclipse-jetty-http) | |
6437 | - | ("io" ,java-eclipse-jetty-io) | |
6438 | - | ("util" ,java-eclipse-jetty-util))))) | |
6439 | - | ||
6440 | - | (define java-eclipse-jetty-http-test-classes-9.2 | |
6441 | - | (package | |
6442 | - | (inherit java-eclipse-jetty-http-test-classes) | |
6443 | - | (version (package-version java-eclipse-jetty-util-9.2)) | |
6444 | - | (source (package-source java-eclipse-jetty-util-9.2)) | |
6445 | - | (inputs | |
6446 | - | `(("http" ,java-eclipse-jetty-http-9.2) | |
6447 | - | ,@(package-inputs java-eclipse-jetty-http-9.2))))) | |
6448 | - | ||
6449 | - | (define-public java-eclipse-jetty-jmx | |
6450 | - | (package | |
6451 | - | (inherit java-eclipse-jetty-util) | |
6452 | - | (name "java-eclipse-jetty-jmx") | |
6453 | - | (arguments | |
6454 | - | `(#:jar-name "eclipse-jetty-jmx.jar" | |
6455 | - | #:source-dir "src/main/java" | |
6456 | - | #:jdk ,icedtea-8 | |
6457 | - | #:tests? #f; FIXME: requires com.openpojo.validation | |
6458 | - | #:phases | |
6459 | - | (modify-phases %standard-phases | |
6460 | - | (add-before 'configure 'chdir | |
6461 | - | (lambda _ | |
6462 | - | (chdir "jetty-jmx")))))) | |
6463 | - | (inputs | |
6464 | - | `(("slf4j" ,java-slf4j-api) | |
6465 | - | ("servlet" ,java-tomcat) | |
6466 | - | ("util" ,java-eclipse-jetty-util))))) | |
6467 | - | ||
6468 | - | (define-public java-eclipse-jetty-jmx-9.2 | |
6469 | - | (package | |
6470 | - | (inherit java-eclipse-jetty-jmx) | |
6471 | - | (version (package-version java-eclipse-jetty-util-9.2)) | |
6472 | - | (source (package-source java-eclipse-jetty-util-9.2)) | |
6473 | - | (inputs | |
6474 | - | `(("util" ,java-eclipse-jetty-util-9.2) | |
6475 | - | ,@(package-inputs java-eclipse-jetty-util-9.2))))) | |
6476 | - | ||
6477 | - | (define-public java-eclipse-jetty-server | |
6478 | - | (package | |
6479 | - | (inherit java-eclipse-jetty-util) | |
6480 | - | (name "java-eclipse-jetty-server") | |
6481 | - | (arguments | |
6482 | - | `(#:jar-name "eclipse-jetty-server.jar" | |
6483 | - | #:source-dir "src/main/java" | |
6484 | - | #:jdk ,icedtea-8 | |
6485 | - | #:tests? #f; requires a mockito version we don't have | |
6486 | - | #:phases | |
6487 | - | (modify-phases %standard-phases | |
6488 | - | (add-before 'configure 'chdir | |
6489 | - | (lambda _ | |
6490 | - | (chdir "jetty-server"))) | |
6491 | - | (add-before 'build 'fix-source | |
6492 | - | (lambda _ | |
6493 | - | (substitute* "src/main/java/org/eclipse/jetty/server/Request.java" | |
6494 | - | (("append\\(LazyList") | |
6495 | - | "append((CharSequence)LazyList")) | |
6496 | - | (substitute* "src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java" | |
6497 | - | (("Class<\\? extends EventListener> clazz = _classLoader==null\\?Loader.loadClass\\(ContextHandler.class,className\\):_classLoader.loadClass\\(className\\);") | |
6498 | - | "Class<? extends EventListener> clazz = (Class<? extends EventListener>) (_classLoader==null?Loader.loadClass(ContextHandler.class,className):_classLoader.loadClass(className));"))))))) | |
6499 | - | (inputs | |
6500 | - | `(("slf4j" ,java-slf4j-api) | |
6501 | - | ("servlet" ,java-tomcat) | |
6502 | - | ("http" ,java-eclipse-jetty-http) | |
6503 | - | ("io" ,java-eclipse-jetty-io) | |
6504 | - | ("jmx" ,java-eclipse-jetty-jmx) | |
6505 | - | ("util" ,java-eclipse-jetty-util))) | |
6506 | - | (native-inputs | |
6507 | - | `(("test-classes" ,java-eclipse-jetty-http-test-classes) | |
6508 | - | ,@(package-native-inputs java-eclipse-jetty-util))))) | |
6509 | - | ||
6510 | - | ;(define-public java-eclipse-jetty-continuation-8 | |
6511 | - | ; (package | |
6512 | - | ; (inherit java-eclipse-jetty-util-9.2) | |
6513 | - | ; (name "java-eclipse-jetty-continuation") | |
6514 | - | ; (arguments | |
6515 | - | ; `(#:jar-name "eclipse-jetty-continuation.jar" | |
6516 | - | ; #:source-dir "src/main/java" | |
6517 | - | ; #:tests? #f; no tests | |
6518 | - | ; #:jdk ,icedtea-8 | |
6519 | - | ; #:phases | |
6520 | - | ; (modify-phases %standard-phases | |
6521 | - | ; (add-before 'configure 'chdir | |
6522 | - | ; (lambda _ | |
6523 | - | ; (chdir "jetty-continuation") | |
6524 | - | ; (delete-file "src/main/java/org/eclipse/jetty/continuation/Jetty6Continuation.java")))))))) | |
6525 | - | ||
6526 | - | (define-public java-eclipse-jetty-server-9.2 | |
6527 | - | (package | |
6528 | - | (inherit java-eclipse-jetty-server) | |
6529 | - | (version (package-version java-eclipse-jetty-util-9.2)) | |
6530 | - | (source (package-source java-eclipse-jetty-util-9.2)) | |
6531 | - | (inputs | |
6532 | - | `(("util" ,java-eclipse-jetty-util-9.2) | |
6533 | - | ("jmx" ,java-eclipse-jetty-jmx-9.2) | |
6534 | - | ;("continuation" ,java-eclipse-jetty-continuation-8) | |
6535 | - | ("io" ,java-eclipse-jetty-io-9.2) | |
6536 | - | ("http" ,java-eclipse-jetty-http-9.2) | |
6537 | - | ,@(package-inputs java-eclipse-jetty-util-9.2))) | |
6538 | - | (native-inputs | |
6539 | - | `(("test-classes" ,java-eclipse-jetty-http-test-classes-9.2) | |
6540 | - | ,@(package-native-inputs java-eclipse-jetty-util-9.2))))) | |
6541 | - | ||
6542 | - | (define-public java-eclipse-jetty-servlet | |
6543 | - | (package | |
6544 | - | (inherit java-eclipse-jetty-util) | |
6545 | - | (name "java-eclipse-jetty-servlet") | |
6546 | - | (arguments | |
6547 | - | `(#:jar-name "eclipse-jetty-servlet.jar" | |
6548 | - | #:source-dir "src/main/java" | |
6549 | - | #:jdk ,icedtea-8 | |
6550 | - | #:phases | |
6551 | - | (modify-phases %standard-phases | |
6552 | - | (add-before 'configure 'chdir | |
6553 | - | (lambda _ | |
6554 | - | (chdir "jetty-servlet")))))) | |
6555 | - | (inputs | |
6556 | - | `(("slf4j" ,java-slf4j-api) | |
6557 | - | ("servlet" ,java-tomcat) | |
6558 | - | ("http" ,java-eclipse-jetty-http) | |
6559 | - | ("http-test" ,java-eclipse-jetty-http-test-classes) | |
6560 | - | ("io" ,java-eclipse-jetty-io) | |
6561 | - | ("jmx" ,java-eclipse-jetty-jmx) | |
6562 | - | ("security" ,java-eclipse-jetty-security) | |
6563 | - | ("server" ,java-eclipse-jetty-server) | |
6564 | - | ("util" ,java-eclipse-jetty-util))))) | |
6565 | - | ||
6566 | - | (define-public java-eclipse-jetty-servlet-9.2 | |
6567 | - | (package | |
6568 | - | (inherit java-eclipse-jetty-servlet) | |
6569 | - | (version (package-version java-eclipse-jetty-util-9.2)) | |
6570 | - | (source (package-source java-eclipse-jetty-util-9.2)) | |
6571 | - | (arguments | |
6572 | - | `(#:jar-name "eclipse-jetty-servlet.jar" | |
6573 | - | #:source-dir "src/main/java" | |
6574 | - | #:jdk ,icedtea-8 | |
6575 | - | #:tests? #f; doesn't work | |
6576 | - | #:phases | |
6577 | - | (modify-phases %standard-phases | |
6578 | - | (add-before 'configure 'chdir | |
6579 | - | (lambda _ | |
6580 | - | (chdir "jetty-servlet")))))) | |
6581 | - | (inputs | |
6582 | - | `(("util" ,java-eclipse-jetty-util-9.2) | |
6583 | - | ("jmx" ,java-eclipse-jetty-jmx-9.2) | |
6584 | - | ("io" ,java-eclipse-jetty-io-9.2) | |
6585 | - | ("http" ,java-eclipse-jetty-http-9.2) | |
6586 | - | ("security" ,java-eclipse-jetty-security-9.2) | |
6587 | - | ("http-test" ,java-eclipse-jetty-http-test-classes-9.2) | |
6588 | - | ("server" ,java-eclipse-jetty-server-9.2) | |
6589 | - | ,@(package-inputs java-eclipse-jetty-util-9.2))))) | |
6590 | - | ||
6591 | - | (define-public java-eclipse-jetty-security | |
6592 | - | (package | |
6593 | - | (inherit java-eclipse-jetty-util) | |
6594 | - | (name "java-eclipse-jetty-security") | |
6595 | - | (arguments | |
6596 | - | `(#:jar-name "eclipse-jetty-security.jar" | |
6597 | - | #:source-dir "src/main/java" | |
6598 | - | #:jdk ,icedtea-8 | |
6599 | - | #:phases | |
6600 | - | (modify-phases %standard-phases | |
6601 | - | (add-before 'configure 'chdir | |
6602 | - | (lambda _ | |
6603 | - | (chdir "jetty-security")))))) | |
6604 | - | (inputs | |
6605 | - | `(("slf4j" ,java-slf4j-api) | |
6606 | - | ("servlet" ,java-tomcat) | |
6607 | - | ("http" ,java-eclipse-jetty-http) | |
6608 | - | ("server" ,java-eclipse-jetty-server) | |
6609 | - | ("util" ,java-eclipse-jetty-util))) | |
6610 | - | (native-inputs | |
6611 | - | `(("io" ,java-eclipse-jetty-io) | |
6612 | - | ,@(package-native-inputs java-eclipse-jetty-util))))) | |
6613 | - | ||
6614 | - | (define-public java-eclipse-jetty-security-9.2 | |
6615 | - | (package | |
6616 | - | (inherit java-eclipse-jetty-security) | |
6617 | - | (version (package-version java-eclipse-jetty-util-9.2)) | |
6618 | - | (source (package-source java-eclipse-jetty-util-9.2)) | |
6619 | - | (arguments | |
6620 | - | `(#:jar-name "eclipse-jetty-security.jar" | |
6621 | - | #:source-dir "src/main/java" | |
6622 | - | #:jdk ,icedtea-8 | |
6623 | - | #:phases | |
6624 | - | (modify-phases %standard-phases | |
6625 | - | (add-before 'configure 'chdir | |
6626 | - | (lambda _ | |
6627 | - | (chdir "jetty-security")))))) | |
6628 | - | (inputs | |
6629 | - | `(("util" ,java-eclipse-jetty-util-9.2) | |
6630 | - | ("http" ,java-eclipse-jetty-http-9.2) | |
6631 | - | ("server" ,java-eclipse-jetty-server-9.2) | |
6632 | - | ,@(package-inputs java-eclipse-jetty-util-9.2))) | |
6633 | - | (native-inputs | |
6634 | - | `(("io" ,java-eclipse-jetty-io-9.2) | |
6635 | - | ,@(package-native-inputs java-eclipse-jetty-util-9.2))))) | |
6636 | - | ||
6637 | 5196 | (define-public java-eclipse-jetty-xml | |
6638 | 5197 | (package | |
6639 | 5198 | (inherit java-eclipse-jetty-util) |