update gradle, add dependencies and fix gradle-launcher
gradle-match-files-without-version-number.patch unknown status 1
1 | + | From df92ed786feeff0f54681d2f559ea25c9bbcef49 Mon Sep 17 00:00:00 2001 | |
2 | + | From: Julien Lepiller <julien@lepiller.eu> | |
3 | + | Date: Thu, 14 Dec 2017 19:26:57 +0100 | |
4 | + | Subject: [PATCH] Also match files without version number. | |
5 | + | ||
6 | + | Guix usually build java libraries without embedding their version number | |
7 | + | in the file name. This patch allows gradle to match these files too. | |
8 | + | --- | |
9 | + | .../org/gradle/api/internal/classpath/DefaultModuleRegistry.java | 9 ++++++--- | |
10 | + | 1 file changed, 6 insertions(+), 3 deletions(-) | |
11 | + | ||
12 | + | diff --git a/subprojects/core/src/main/java/org/gradle/api/internal/classpath/DefaultModuleRegistry.java b/subprojects/core/src/main/java/org/gradle/api/internal/classpath/DefaultModuleRegistry.java | |
13 | + | index bcd55e3..b0ffd2b 100644 | |
14 | + | --- a/subprojects/core/src/main/java/org/gradle/api/internal/classpath/DefaultModuleRegistry.java | |
15 | + | +++ b/subprojects/core/src/main/java/org/gradle/api/internal/classpath/DefaultModuleRegistry.java | |
16 | + | @@ -227,18 +227,21 @@ public class DefaultModuleRegistry implements ModuleRegistry { | |
17 | + | } | |
18 | + | ||
19 | + | private File findJar(String name) { | |
20 | + | - Pattern pattern = Pattern.compile(Pattern.quote(name) + "-\\d.+\\.jar"); | |
21 | + | + Pattern pattern = Pattern.compile(Pattern.quote(name) + "\\.jar"); | |
22 | + | + Pattern pattern2 = Pattern.compile(Pattern.quote(name) + "-\\d.+\\.jar"); | |
23 | + | if (gradleInstallation != null) { | |
24 | + | for (File libDir : gradleInstallation.getLibDirs()) { | |
25 | + | for (File file : libDir.listFiles()) { | |
26 | + | - if (pattern.matcher(file.getName()).matches()) { | |
27 | + | + if (pattern.matcher(file.getName()).matches() || | |
28 | + | + pattern2.matcher(file.getName()).matches()) { | |
29 | + | return file; | |
30 | + | } | |
31 | + | } | |
32 | + | } | |
33 | + | } | |
34 | + | for (File file : classpath) { | |
35 | + | - if (pattern.matcher(file.getName()).matches()) { | |
36 | + | + if (pattern.matcher(file.getName()).matches() || | |
37 | + | + pattern2.matcher(file.getName()).matches()) { | |
38 | + | return file; | |
39 | + | } | |
40 | + | } | |
41 | + | -- | |
42 | + | 2.15.1 | |
43 | + |
gradle-match-files-witouht-version-number.patch unknown status 2
1 | - | From df92ed786feeff0f54681d2f559ea25c9bbcef49 Mon Sep 17 00:00:00 2001 | |
2 | - | From: Julien Lepiller <julien@lepiller.eu> | |
3 | - | Date: Thu, 14 Dec 2017 19:26:57 +0100 | |
4 | - | Subject: [PATCH] Also match files without version number. | |
5 | - | ||
6 | - | Guix usually build java libraries without embedding their version number | |
7 | - | in the file name. This patch allows gradle to match these files too. | |
8 | - | --- | |
9 | - | .../org/gradle/api/internal/classpath/DefaultModuleRegistry.java | 9 ++++++--- | |
10 | - | 1 file changed, 6 insertions(+), 3 deletions(-) | |
11 | - | ||
12 | - | diff --git a/subprojects/core/src/main/java/org/gradle/api/internal/classpath/DefaultModuleRegistry.java b/subprojects/core/src/main/java/org/gradle/api/internal/classpath/DefaultModuleRegistry.java | |
13 | - | index bcd55e3..b0ffd2b 100644 | |
14 | - | --- a/subprojects/core/src/main/java/org/gradle/api/internal/classpath/DefaultModuleRegistry.java | |
15 | - | +++ b/subprojects/core/src/main/java/org/gradle/api/internal/classpath/DefaultModuleRegistry.java | |
16 | - | @@ -227,18 +227,21 @@ public class DefaultModuleRegistry implements ModuleRegistry { | |
17 | - | } | |
18 | - | ||
19 | - | private File findJar(String name) { | |
20 | - | - Pattern pattern = Pattern.compile(Pattern.quote(name) + "-\\d.+\\.jar"); | |
21 | - | + Pattern pattern = Pattern.compile(Pattern.quote(name) + "\\.jar"); | |
22 | - | + Pattern pattern2 = Pattern.compile(Pattern.quote(name) + "-\\d.+\\.jar"); | |
23 | - | if (gradleInstallation != null) { | |
24 | - | for (File libDir : gradleInstallation.getLibDirs()) { | |
25 | - | for (File file : libDir.listFiles()) { | |
26 | - | - if (pattern.matcher(file.getName()).matches()) { | |
27 | - | + if (pattern.matcher(file.getName()).matches() || | |
28 | - | + pattern2.matcher(file.getName()).matches()) { | |
29 | - | return file; | |
30 | - | } | |
31 | - | } | |
32 | - | } | |
33 | - | } | |
34 | - | for (File file : classpath) { | |
35 | - | - if (pattern.matcher(file.getName()).matches()) { | |
36 | - | + if (pattern.matcher(file.getName()).matches() || | |
37 | - | + pattern2.matcher(file.getName()).matches()) { | |
38 | - | return file; | |
39 | - | } | |
40 | - | } | |
41 | - | -- | |
42 | - | 2.15.1 | |
43 | - |
more/packages/gradle.scm
29 | 29 | #:use-module (gnu packages java) | |
30 | 30 | #:use-module (gnu packages maven) | |
31 | 31 | #:use-module (gnu packages web) | |
32 | + | #:use-module (gnu packages version-control) | |
32 | 33 | #:use-module (gnu packages xml) | |
33 | 34 | #:use-module (more packages java)) | |
34 | 35 | ||
… | |||
61 | 62 | @code{projects} and @code{runtime} parameters." | |
62 | 63 | (package | |
63 | 64 | (name (string-append "gradle-" subproject)) | |
64 | - | (version "4.4.0") | |
65 | + | (version "4.8.0") | |
65 | 66 | (source (origin | |
66 | 67 | (method url-fetch) | |
67 | 68 | (uri (string-append "https://github.com/gradle/gradle/archive/v" | |
… | |||
69 | 70 | (file-name (string-append "gradle-" version ".tar.gz")) | |
70 | 71 | (sha256 | |
71 | 72 | (base32 | |
72 | - | "026232dy578nl8gzj1nfc9r25p8alcwdbwb9b8s3bw4krxmy6saz")) | |
73 | + | "1jbw9044g0czn8pm46i6j4y0gx6l3b3iwamh9d7ja14i2wrx5shf")) | |
73 | 74 | (patches | |
74 | 75 | (search-patches | |
75 | - | "gradle-match-files-witouht-version-number.patch")))) | |
76 | + | "gradle-match-files-without-version-number.patch")))) | |
76 | 77 | (build-system ant-build-system) | |
77 | 78 | (arguments | |
78 | 79 | ;; The jar-name must be this exactly: gradle will not find its jar files | |
79 | 80 | ;; if they are named differently. | |
80 | - | `(#:jar-name (string-append "gradle-" ,subproject "-4.4.jar") | |
81 | + | `(#:jar-name (string-append "gradle-" ,subproject "-4.8.jar") | |
81 | 82 | #:source-dir (string-append "subprojects/" ,subproject "/src/main/java") | |
82 | 83 | #:jdk ,icedtea-8 | |
83 | 84 | #:tests? #f;; Ignore tests for now | |
… | |||
92 | 93 | (("message=\"") | |
93 | 94 | (string-append "message=\"Implementation-Title: Gradle" | |
94 | 95 | "${line.separator}" | |
95 | - | "Implementation-Version: 4.4" | |
96 | + | "Implementation-Version: 4.8" | |
96 | 97 | "${line.separator}"))) | |
97 | 98 | #t)) | |
98 | 99 | (add-before 'build 'add-properties | |
… | |||
129 | 130 | (let ((resources (string-append "subprojects/" ,subproject | |
130 | 131 | "/src/main/resources"))) | |
131 | 132 | (if (file-exists? resources) | |
132 | - | (copy-recursively resources "build/classes")))))))) | |
133 | + | (copy-recursively resources "build/classes"))) | |
134 | + | #t))))) | |
133 | 135 | (inputs '()) | |
134 | - | (native-inputs '()) | |
136 | + | (native-inputs | |
137 | + | `(("java-junit" ,java-junit))) | |
135 | 138 | (home-page "") | |
136 | 139 | (synopsis "Build system") | |
137 | 140 | (description "Build system") | |
… | |||
167 | 170 | ;; FIXME: Can't we use groovy-ant for that? | |
168 | 171 | (("<project basedir=\".\">") | |
169 | 172 | "<project basedir=\".\"><taskdef name=\"groovyc\" | |
170 | - | classname=\"org.codehaus.groovy.ant.Groovyc\" />")))))))) | |
173 | + | classname=\"org.codehaus.groovy.ant.Groovyc\" />") | |
174 | + | ;; Tests are in test.home/groovy, not /java | |
175 | + | (("\\}/java") "}/groovy")))))))) | |
171 | 176 | (native-inputs | |
172 | 177 | `(("groovy" ,groovy) | |
173 | 178 | ,@(package-inputs groovy)))))) | |
… | |||
241 | 246 | (lambda _ | |
242 | 247 | (substitute* '("buildSrc/src/main/groovy/org/gradle/build/docs/dsl/source/SourceMetaDataVisitor.java" | |
243 | 248 | "buildSrc/src/main/groovy/org/gradle/build/docs/dsl/source/ExtractDslMetaDataTask.groovy") | |
244 | - | (("groovyjarjarantlr") "antlr")))) | |
249 | + | (("groovyjarjarantlr") "antlr")) | |
250 | + | #t)) | |
245 | 251 | (add-before 'build 'fixes | |
246 | 252 | (lambda _ | |
247 | 253 | (substitute* "buildSrc/src/main/groovy/org/gradle/binarycompatibility/rules/SinceAnnotationMissingRule.java" | |
… | |||
339 | 345 | (mkdir-p "build/classes/org/gradle") | |
340 | 346 | (with-output-to-file "build/classes/org/gradle/build-receipt.properties" | |
341 | 347 | (lambda _ | |
342 | - | (format #t "baseVersion=4.4 | |
348 | + | (format #t "baseVersion=4.8 | |
343 | 349 | commitId=cf7821a6f79f8e2a598df21780e3ff7ce8db2b82 | |
344 | 350 | buildTimestamp=19710101000000+0000 | |
345 | 351 | buildTimestampIso=1971-01-01 00\\:00\\:00 UTC | |
346 | - | versionNumber=4.4 | |
352 | + | versionNumber=4.8 | |
347 | 353 | isSnapshot=false"))) | |
348 | 354 | #t)))))) | |
349 | 355 | (inputs | |
… | |||
377 | 383 | ("java-jsr305" ,java-jsr305))))) | |
378 | 384 | ||
379 | 385 | (define-public gradle-cli | |
380 | - | (package | |
381 | - | (inherit (gradle-subproject "cli" '() '())))) | |
386 | + | (gradle-subproject "cli" '() '())) | |
382 | 387 | ||
383 | 388 | (define-public gradle-native | |
384 | 389 | (package | |
… | |||
417 | 422 | ("gradle-base-services-groovy" ,gradle-base-services-groovy) | |
418 | 423 | ("java-asm-6" ,java-asm-6) | |
419 | 424 | ("java-commons-lang" ,java-commons-lang) | |
425 | + | ("java-fastutil" ,java-fastutil) | |
420 | 426 | ("java-guava-for-gradle" ,java-guava-for-gradle) | |
421 | 427 | ("java-jsr305" ,java-jsr305) | |
422 | 428 | ("java-kryo" ,java-kryo) | |
… | |||
589 | 595 | `(("gradle-base-services" ,gradle-base-services) | |
590 | 596 | ("gradle-process-services" ,gradle-process-services))))) | |
591 | 597 | ||
598 | + | (define-public gradle-plugin-use | |
599 | + | (let ((base (gradle-subproject | |
600 | + | "plugin-use" | |
601 | + | '("gradle-resources-http" "gradle-core" "gradle-dependency-management") | |
602 | + | '()))) | |
603 | + | (package | |
604 | + | (inherit base) | |
605 | + | (inputs | |
606 | + | `(("gradle-base-services" ,gradle-base-services) | |
607 | + | ("gradle-base-services-groovy" ,gradle-base-services-groovy) | |
608 | + | ("gradle-core" ,gradle-core) | |
609 | + | ("gradle-core-api" ,gradle-core-api) | |
610 | + | ("gradle-dependency-management" ,gradle-dependency-management) | |
611 | + | ("gradle-logging" ,gradle-logging) | |
612 | + | ("gradle-messaging" ,gradle-messaging) | |
613 | + | ("groovy" ,groovy) | |
614 | + | ("java-guava-for-gradle" ,java-guava-for-gradle) | |
615 | + | ("java-jsr305" ,java-jsr305)))))) | |
616 | + | ||
592 | 617 | (define-public gradle-core | |
593 | 618 | (let ((base (gradle-subproject | |
594 | 619 | "core" | |
… | |||
698 | 723 | (define-public gradle-launcher | |
699 | 724 | (let ((base (gradle-subproject | |
700 | 725 | "launcher" | |
701 | - | '("gradle-base-services" "gradle-core-api" "gradle-core") | |
726 | + | '("gradle-base-services" "gradle-core-api" "gradle-core" "gradle-tooling-api") | |
702 | 727 | '("java-asm-6" "java-commons-io" "java-slf4j-api")))) | |
703 | 728 | (package | |
704 | 729 | (inherit base) | |
… | |||
732 | 757 | (substitute* "build.xml" | |
733 | 758 | (("message=\"") | |
734 | 759 | (string-append "message=\"Class-Path: " | |
735 | - | "gradle-base-services-4.4.jar " | |
736 | - | "gradle-core-api-4.4.jar " | |
737 | - | "gradle-core-4.4.jar" | |
760 | + | "gradle-base-services-4.8.jar " | |
761 | + | "gradle-core-api-4.8.jar " | |
762 | + | "gradle-core-4.8.jar" | |
738 | 763 | "${line.separator}"))) | |
739 | - | #t)))))))))) | |
764 | + | #t)) | |
765 | + | ;; This phase fails, because the jar files are not actually | |
766 | + | ;; present in the output directory. This is because gradle | |
767 | + | ;; uses class loading: we need to put all its dependencies | |
768 | + | ;; in the same package, which is done later. Then the | |
769 | + | ;; classpath becomes correct. | |
770 | + | (delete 'generate-jar-indices))))))))) | |
740 | 771 | ||
741 | 772 | (define-public gradle-installation-beacon | |
742 | 773 | (package | |
… | |||
776 | 807 | ("java-commons-lang" ,java-commons-lang) | |
777 | 808 | ("java-guava-for-gradle" ,java-guava-for-gradle) | |
778 | 809 | ("java-jatl" ,java-jatl) | |
779 | - | ("java-javax-inject" ,java-javax-inject))))) | |
810 | + | ("java-javax-inject" ,java-javax-inject) | |
811 | + | ("java-jsr305" ,java-jsr305))))) | |
780 | 812 | ||
781 | 813 | (define-public gradle-resources-http | |
782 | 814 | (package | |
… | |||
784 | 816 | "resources-http" | |
785 | 817 | '("gradle-resources" "gradle-base-services" "gradle-core") | |
786 | 818 | ;; TODO: jcl-over-slf4j | |
787 | - | '("java-httpcomponents-client" "java-httpcomponents-core" | |
819 | + | '("java-httpcomponents-httpclient" "java-httpcomponents-httpcore" | |
788 | 820 | "java-commons-codec" "java-jcifs" "java-slf4j-api" | |
789 | 821 | "java-guava-for-gradle" "java-commons-lang" "java-commons-io" | |
790 | 822 | "java-nekohtml" "java-xerces" "java-jaxp"))) | |
… | |||
798 | 830 | ("java-commons-io" ,java-commons-io) | |
799 | 831 | ("java-commons-lang" ,java-commons-lang) | |
800 | 832 | ("java-guava-for-gradle" ,java-guava-for-gradle) | |
801 | - | ("java-httpcomponents-client" ,java-httpcomponents-client) | |
802 | - | ("java-httpcomponents-core" ,java-httpcomponents-core) | |
833 | + | ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient) | |
834 | + | ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore) | |
803 | 835 | ("java-jaxp" ,java-jaxp) | |
804 | 836 | ("java-jcifs" ,java-jcifs) | |
805 | 837 | ("java-jsr305" ,java-jsr305) | |
… | |||
807 | 839 | ("java-slf4j-api" ,java-slf4j-api) | |
808 | 840 | ("java-xerces" ,java-xerces))))) | |
809 | 841 | ||
842 | + | (define-public gradle-version-control | |
843 | + | (let ((base (gradle-subproject | |
844 | + | "version-control" | |
845 | + | '("gradle-core" "gradle-core-api") | |
846 | + | ;TODO: jcl-over-slf4j-1.7.16.jar | |
847 | + | '("java-httpcomponents-httpclient" "java-httpcomponents-httpcore" | |
848 | + | "java-commons-codec" "java-jgit" "java-jsch" | |
849 | + | "java-slf4j-api")))) | |
850 | + | (package | |
851 | + | (inherit base) | |
852 | + | (inputs | |
853 | + | `(("gradle-base-services" ,gradle-base-services) | |
854 | + | ("gradle-core" ,gradle-core) | |
855 | + | ("gradle-core-api" ,gradle-core-api) | |
856 | + | ("gradle-logging" ,gradle-logging) | |
857 | + | ("gradle-persistent-cache" ,gradle-persistent-cache) | |
858 | + | ("java-commons-codec" ,java-commons-codec) | |
859 | + | ("java-guava-for-gradle" ,java-guava-for-gradle) | |
860 | + | ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient) | |
861 | + | ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore) | |
862 | + | ("java-jgit" ,java-jgit) | |
863 | + | ("java-jsch" ,java-jsch) | |
864 | + | ("java-jsr305" ,java-jsr305) | |
865 | + | ("java-slf4j-api" ,java-slf4j-api)))))) | |
866 | + | ||
810 | 867 | (define-public gradle-dependency-management | |
811 | 868 | (let ((base (gradle-subproject | |
812 | 869 | "dependency-management" | |
… | |||
823 | 880 | ;; maven-settings maven-settings-builder xbean-reflect | |
824 | 881 | '("java-asm-6" "java-commons-lang" "java-commons-io" | |
825 | 882 | "java-apache-ivy" "java-slf4j-api" "java-gson" | |
826 | - | "java-jcip-annotations" "java-bouncycastle-bcprov" | |
883 | + | "java-jcip-annotations" "java-bouncycastle" | |
827 | 884 | "java-jsch")))) | |
828 | 885 | (package | |
829 | 886 | (inherit base) | |
… | |||
852 | 909 | ("gradle-persistent-cache" ,gradle-persistent-cache) | |
853 | 910 | ("gradle-resources" ,gradle-resources) | |
854 | 911 | ("gradle-resources-http" ,gradle-resources-http) | |
912 | + | ("gradle-version-control" ,gradle-version-control) | |
855 | 913 | ("groovy" ,groovy) | |
856 | 914 | ("java-apache-ivy" ,java-apache-ivy) | |
857 | 915 | ("java-asm-6" ,java-asm-6) | |
… | |||
1117 | 1175 | ("groovy" ,groovy) | |
1118 | 1176 | ("java-asm-6" ,java-asm-6) | |
1119 | 1177 | ("java-commons-lang" ,java-commons-lang) | |
1178 | + | ("java-fastutil" ,java-fastutil) | |
1120 | 1179 | ("java-guava-for-gradle" ,java-guava-for-gradle) | |
1121 | 1180 | ("java-javax-inject" ,java-javax-inject) | |
1122 | 1181 | ("java-jsr305" ,java-jsr305) | |
… | |||
1471 | 1530 | org/objenesis | |
1472 | 1531 | ")))) | |
1473 | 1532 | (mkdir-p "build/jar") | |
1474 | - | (zero? (system* "jar" "cf" "build/jar/gradle-gradle-runtime-api-info-4.4.jar" | |
1475 | - | "-C" "build/classes" "."))))))))))) | |
1533 | + | (invoke "jar" "cf" "build/jar/gradle-runtime-api-info-4.8.jar" | |
1534 | + | "-C" "build/classes" ".") | |
1535 | + | #t))))))))) | |
1476 | 1536 | ||
1477 | 1537 | ;; This package doesn't work. I need to understand how api-mapping.txt and | |
1478 | 1538 | ;; default-imports.txt are generated. Currently they are generated by a custom | |
… | |||
2671 | 2731 | WorkerExecutionException:org.gradle.workers.WorkerExecutionException; | |
2672 | 2732 | WorkerExecutor:org.gradle.workers.WorkerExecutor; | |
2673 | 2733 | "))) | |
2674 | - | (zero? (system* "ant" "jar"))))))))))) | |
2734 | + | (invoke "ant" "jar") | |
2735 | + | #t))))))))) | |
2675 | 2736 | ||
2676 | 2737 | ;; Gradle doesn't provide a gradle binary or script, so we provide it instead. | |
2677 | 2738 | ;; Gradle expects that all its modules and dependency jars are located in the | |
… | |||
2702 | 2763 | (filename (string-append bindir "/gradle")) | |
2703 | 2764 | (plugins | |
2704 | 2765 | '("gradle-workers" | |
2766 | + | "gradle-version-control" | |
2705 | 2767 | "gradle-testing-jvm" | |
2706 | 2768 | "gradle-testing-base" | |
2707 | 2769 | "gradle-resources-http" | |
… | |||
2710 | 2772 | "gradle-platform-native" | |
2711 | 2773 | "gradle-platform-jvm" | |
2712 | 2774 | "gradle-platform-base" | |
2775 | + | "gradle-plugin-use" | |
2713 | 2776 | "gradle-language-jvm" | |
2714 | 2777 | "gradle-language-java" | |
2715 | 2778 | "gradle-language-groovy" | |
2716 | 2779 | "gradle-diagnostics" | |
2717 | - | "gradle-dependency-management")) | |
2780 | + | "gradle-dependency-management" | |
2781 | + | "java-apache-ivy" | |
2782 | + | "java-bouncycastle" | |
2783 | + | "java-bsh" | |
2784 | + | "java-commons-codec" | |
2785 | + | "java-gson" | |
2786 | + | "java-hamcrest-all" | |
2787 | + | "java-httpcomponents-httpclient" | |
2788 | + | "java-httpcomponents-httpcore" | |
2789 | + | "java-jatl" | |
2790 | + | "java-jcifs" | |
2791 | + | "java-jcommander" | |
2792 | + | "java-jgit" | |
2793 | + | "java-jsch" | |
2794 | + | "java-snakeyaml" | |
2795 | + | "java-testng" | |
2796 | + | "java-junit" | |
2797 | + | "java-nekohtml" | |
2798 | + | "java-xerces")) | |
2799 | + | ;; java-asm-6 and java-jansi are already present in groovy. | |
2718 | 2800 | (dependencies | |
2719 | 2801 | '("gradle-wrapper" | |
2720 | 2802 | "gradle-tooling-api" | |
… | |||
2739 | 2821 | "gradle-base-services-groovy" | |
2740 | 2822 | "gradle-base-services" | |
2741 | 2823 | "groovy" | |
2742 | - | "java-asm-6" | |
2743 | 2824 | "java-commons-compress" | |
2744 | 2825 | "java-commons-collections" | |
2745 | 2826 | "java-commons-io" | |
2746 | 2827 | "java-commons-lang" | |
2747 | 2828 | "java-guava-for-gradle" | |
2748 | - | "java-jansi" | |
2749 | 2829 | "java-jansi-native" | |
2750 | 2830 | "java-javax-inject" | |
2751 | 2831 | "java-jaxp" | |
… | |||
2771 | 2851 | output | |
2772 | 2852 | (string-append (assoc-ref %build-inputs "icedtea-8") | |
2773 | 2853 | "/bin/java") | |
2774 | - | (string-append libdir "/gradle-launcher-4.4.jar")))) | |
2854 | + | (string-append libdir "/gradle-launcher-4.8.jar")))) | |
2775 | 2855 | (chmod filename #o755) | |
2776 | 2856 | ;; Create a symlink for every dependency listed above. | |
2777 | 2857 | (for-each | |
… | |||
2793 | 2873 | ".*.jar")) | |
2794 | 2874 | plugins))) | |
2795 | 2875 | ;; Using a symlink for gradle-launcher doesn't seem to work. | |
2796 | - | (delete-file (string-append libdir "/gradle-launcher-4.4.jar")) | |
2876 | + | (delete-file (string-append libdir "/gradle-launcher-4.8.jar")) | |
2797 | 2877 | (copy-file (string-append (assoc-ref %build-inputs "gradle-launcher") | |
2798 | - | "/share/java/gradle-launcher-4.4.jar") | |
2878 | + | "/share/java/gradle-launcher-4.8.jar") | |
2799 | 2879 | (string-append libdir | |
2800 | - | "/gradle-launcher-4.4.jar")))))) | |
2880 | + | "/gradle-launcher-4.8.jar")))))) | |
2801 | 2881 | (inputs | |
2802 | 2882 | `(("gradle-wrapper" ,gradle-wrapper) | |
2803 | 2883 | ("gradle-workers" ,gradle-workers) | |
2884 | + | ("gradle-version-control" ,gradle-version-control) | |
2804 | 2885 | ("gradle-tooling-api" ,gradle-tooling-api) | |
2805 | 2886 | ("gradle-testing-jvm" ,gradle-testing-jvm) | |
2806 | 2887 | ("gradle-testing-base" ,gradle-testing-base) | |
… | |||
2809 | 2890 | ("gradle-resources" ,gradle-resources) | |
2810 | 2891 | ("gradle-reporting" ,gradle-reporting) | |
2811 | 2892 | ("gradle-process-services" ,gradle-process-services) | |
2893 | + | ("gradle-plugin-use" ,gradle-plugin-use) | |
2812 | 2894 | ("gradle-plugins" ,gradle-plugins) | |
2813 | 2895 | ("gradle-platform-native" ,gradle-platform-native) | |
2814 | 2896 | ("gradle-platform-jvm" ,gradle-platform-jvm) | |
… | |||
2839 | 2921 | ("groovy" ,groovy) | |
2840 | 2922 | ("icedtea-8" ,icedtea-8) | |
2841 | 2923 | ("java-asm-6" ,java-asm-6) | |
2924 | + | ("java-apache-ivy" ,java-apache-ivy) | |
2925 | + | ("java-bouncycastle" ,java-bouncycastle) | |
2926 | + | ("java-bsh" ,java-bsh) | |
2927 | + | ("java-commons-codec" ,java-commons-codec) | |
2842 | 2928 | ("java-commons-compress" ,java-commons-compress) | |
2843 | 2929 | ("java-commons-collections" ,java-commons-collections) | |
2844 | 2930 | ("java-commons-io" ,java-commons-io) | |
2845 | 2931 | ("java-commons-lang" ,java-commons-lang) | |
2932 | + | ("java-gson" ,java-gson) | |
2846 | 2933 | ("java-guava-for-gradle" ,java-guava-for-gradle) | |
2934 | + | ("java-hamcrest-all" ,java-hamcrest-all) | |
2935 | + | ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient) | |
2936 | + | ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore) | |
2847 | 2937 | ("java-jansi" ,java-jansi) | |
2848 | 2938 | ("java-jansi-native" ,java-jansi-native) | |
2939 | + | ("java-jatl" ,java-jatl) | |
2849 | 2940 | ("java-javax-inject" ,java-javax-inject) | |
2850 | 2941 | ("java-jaxp" ,java-jaxp) | |
2942 | + | ("java-jcifs" ,java-jcifs) | |
2851 | 2943 | ("java-jcip-annotations" ,java-jcip-annotations) | |
2944 | + | ("java-jcommander" ,java-jcommander) | |
2945 | + | ("java-jgit" ,java-jgit) | |
2946 | + | ("java-jsch" ,java-jsch) | |
2852 | 2947 | ("java-jsr305" ,java-jsr305) | |
2853 | 2948 | ("java-jul-to-slf4j" ,java-jul-to-slf4j) | |
2949 | + | ("java-junit" ,java-junit) | |
2854 | 2950 | ("java-kryo" ,java-kryo) | |
2855 | 2951 | ("java-minlog" ,java-minlog) | |
2856 | 2952 | ("java-native-platform" ,java-native-platform) | |
2953 | + | ("java-nekohtml" ,java-nekohtml) | |
2857 | 2954 | ("java-objenesis" ,java-objenesis) | |
2858 | 2955 | ("java-reflectasm" ,java-reflectasm) | |
2859 | 2956 | ("java-slf4j-api" ,java-slf4j-api) | |
2957 | + | ("java-snakeyaml" ,java-snakeyaml) | |
2958 | + | ("java-testng" ,java-testng) | |
2959 | + | ("java-xerces" ,java-xerces) | |
2860 | 2960 | ("ant" ,ant) | |
2861 | 2961 | ("bash" ,bash))) | |
2862 | 2962 | (native-inputs '()))) |
more/packages/java.scm
48 | 48 | #:use-module (gnu packages xorg) | |
49 | 49 | #:use-module (more packages python)) | |
50 | 50 | ||
51 | + | (define-public java-fastutil | |
52 | + | (package | |
53 | + | (name "java-fastutil") | |
54 | + | (version "8.2.1") | |
55 | + | (source (origin | |
56 | + | (method url-fetch) | |
57 | + | (uri (string-append "http://fastutil.di.unimi.it/fastutil-" | |
58 | + | version "-src.tar.gz")) | |
59 | + | (sha256 | |
60 | + | (base32 | |
61 | + | "039gh3b9a72dvc9jmijfhshd2i7bnj18p2yi67200qfrnw17wbkj")))) | |
62 | + | (build-system ant-build-system) | |
63 | + | (arguments | |
64 | + | `(#:jdk ,icedtea-8 | |
65 | + | #:tests? #f; no tests | |
66 | + | #:phases | |
67 | + | (modify-phases %standard-phases | |
68 | + | (add-before 'build 'generate-sources | |
69 | + | (lambda _ | |
70 | + | (invoke "make" "CC=gcc" "sources") | |
71 | + | #t)) | |
72 | + | (add-after 'build 'generate-javadoc | |
73 | + | (lambda _ | |
74 | + | (invoke "ant" "javadoc") | |
75 | + | #t)) | |
76 | + | (replace 'install | |
77 | + | (install-jars "."))))) | |
78 | + | (home-page "http://fastutil.di.unimi.it/") | |
79 | + | (synopsis "") | |
80 | + | (description "") | |
81 | + | (license license:asl2.0))) | |
82 | + | ||
51 | 83 | ;; Maintained version of http-builder (groovyx.net.http) | |
52 | 84 | (define-public java-http-builder-ng | |
53 | 85 | (package | |
… | |||
267 | 299 | (define-public java-jcifs | |
268 | 300 | (package | |
269 | 301 | (name "java-jcifs") | |
270 | - | (version "1.3.18") | |
302 | + | (version "1.3.19") | |
271 | 303 | (source (origin | |
272 | 304 | (method url-fetch) | |
273 | 305 | (uri (string-append "https://jcifs.samba.org/src/jcifs-" | |
274 | 306 | version ".tgz")) | |
275 | 307 | (sha256 | |
276 | 308 | (base32 | |
277 | - | "04li1j2y9ndvp77g67dzp8yra1899wx21mg5gkbldpy4f190vq0m")) | |
309 | + | "19kzac3c19j0fyssibcj47868k8079wlj9azgsd7i6yqmdgqyk3y")) | |
278 | 310 | (modules '((guix build utils))) | |
279 | 311 | (snippet | |
280 | 312 | `(delete-file (string-append "jcifs-" ,version ".jar"))))) |