gradle.scm 171 KB
Newer Older
1
;;; GNU Guix --- Functional package management for GNU
Julien Lepiller's avatar
Julien Lepiller committed
2
;;; Copyright © 2017-2019 Julien Lepiller <julien@lepiller.eu>
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (more packages gradle)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix utils)
  #:use-module (guix build-system ant)
26
27
  #:use-module (guix build-system trivial)
  #:use-module (gnu packages bash)
28
  #:use-module (gnu packages groovy)
29
  #:use-module (gnu packages java)
30
  #:use-module (gnu packages maven)
Julien Lepiller's avatar
Julien Lepiller committed
31
  #:use-module (gnu packages web)
32
  #:use-module (gnu packages version-control)
Julien Lepiller's avatar
Julien Lepiller committed
33
  #:use-module (gnu packages xml)
Julien Lepiller's avatar
Julien Lepiller committed
34
  #:use-module (more packages java)
35
36
  #:use-module (more packages maven)
  #:use-module (more packages scala))
37

Julien Lepiller's avatar
Julien Lepiller committed
38
39
;; Gradle requires guava@17.
;; TODO: patch gradle to support at least guava@20 and send it upstream.
Julien Lepiller's avatar
Julien Lepiller committed
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
(define-public java-guava-for-gradle java-guava-25)
;  (package
;    (inherit java-guava)
;    (version "17.0")
;    (source (origin
;              (method url-fetch)
;              (uri (string-append "https://github.com/google/guava/"
;                                  "archive/v" version ".tar.gz"))
;              (sha256
;               (base32
;                "0kg2n0dfdncbm3kgf8fa6kig8djfhar24vf0yf287x27w5sqzhnb"))))
;    (arguments
;     `(#:jar-name "guava.jar"
;       #:jdk ,icedtea-7
;       #:source-dir "guava/src/"
;       #:tests? #f)))); Not in a "java" subdirectory
56
57

(define (gradle-subproject subproject projects runtime)
Julien Lepiller's avatar
Julien Lepiller committed
58
59
60
61
62
63
64
  "Gradle is made of a lot of subprojects. Each subproject can be compiled in
a certain order and in the same way.

This procedure builds the java source of @code{subproject}.

Each subproject contains at least a text file, gradle-*-classpath.properties
that contain dependency information. This file is created using the
Julien Lepiller's avatar
Julien Lepiller committed
65
66
67
68
69
70
71
72
@code{projects} and @code{runtime} parameters.

@code{projects} is a list of gradle projects.  The right list is present in
the @file{build.gradle} file of the subproject,

@code{runtime} is a list of dependencies on non-gradle libraries.  The exact
list to pass is present in the @file{build.gradle} file of the subproject: in
the dependencies section, look for @code{compile libraries.*.coordinates}."
Julien Lepiller's avatar
Julien Lepiller committed
73
74
  (package
    (name (string-append "gradle-" subproject))
Julien Lepiller's avatar
Julien Lepiller committed
75
76
    ;(version "4.9.0")
    (version "5.1.1")
77
78
    (source (origin
              (method url-fetch)
Julien Lepiller's avatar
Julien Lepiller committed
79
              (uri (string-append "https://github.com/gradle/gradle/archive/v"
80
81
82
83
                                  version ".tar.gz"))
              (file-name (string-append "gradle-" version ".tar.gz"))
              (sha256
               (base32
Julien Lepiller's avatar
Julien Lepiller committed
84
85
                ;"19x1sksin2nh277pvd1f7h6kphbbqv4fb6sax696kvn1ci5h2fvp"))
                "0brjlj3gzgqfh0j132xrakl0jd4gpkm2q889yr688mglbmp5phw3"))
86
87
              (patches
                (search-patches
88
                  "gradle-match-files-without-version-number.patch"))))
89
90
    (build-system ant-build-system)
    (arguments
Julien Lepiller's avatar
Julien Lepiller committed
91
92
     ;; The jar-name must be this exactly: gradle will not find its jar files
     ;; if they are named differently.
93
     `(#:jar-name (string-append "gradle-" ,subproject "-" ,version ".jar")
94
       #:source-dir (string-append "subprojects/" ,subproject "/src/main/java")
Julien Lepiller's avatar
Julien Lepiller committed
95
       #:jdk ,openjdk9
96
       #:tests? #f;; Ignore tests for now
97
98
99
100
101
       #:test-dir (string-append "subprojects/" ,subproject "/src/test")
       #:phases
       (modify-phases %standard-phases
         (add-before 'build 'add-implementation-info
           (lambda _
Julien Lepiller's avatar
Julien Lepiller committed
102
103
             ;; Add implementation information to the MANIFEST.MF file.  We can
             ;; substitute this in the manifest phase.
104
             (substitute* "build.xml"
Julien Lepiller's avatar
Julien Lepiller committed
105
106
107
108
109
               (("</manifest>")
                (string-append "<attribute name=\"Implementation-Title\" "
                               "value=\"Gradle\" />"
                               "<attribute name=\"Implementation-Version\" "
                               "value=\"" ,version "\" /></manifest>")))
110
111
112
113
             #t))
         (add-before 'build 'add-properties
           (lambda* (#:key inputs #:allow-other-keys)
             (mkdir-p "build/classes")
Julien Lepiller's avatar
Julien Lepiller committed
114
115
116
117
118
119
120
121
122
123
             ;; This file contains dependency information.
             ;; The projects list is a list of gradle-subprojects that this
             ;; subproject depends directly on at runtime. This information
             ;; can be found in the *.gradle file in the subproject's directory.
             ;;
             ;; The runtime list is a list of external projects this subproject
             ;; depends on. This list must be a list of jar files, so we transform
             ;; the project name into a list of jar files the package contains.
             ;; This information can also be found in the *.gradle file of the
             ;; subproject.
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
             (with-output-to-file (string-append "build/classes/gradle-"
                                                 ,subproject
                                                 "-classpath.properties")
               (lambda _
                 (format #t "projects=~a\nruntime=~a\n"
                         (string-join ',projects ",")
                         (string-join
                           (map basename
                             (apply append
                               (map (lambda (lib) (find-files (assoc-ref inputs lib)
                                                              ".*.jar"))
                                 ',runtime)))
                           ","))))
             #t))
         (add-before 'build 'copy-resources
           (lambda _
Julien Lepiller's avatar
Julien Lepiller committed
140
141
             ;; If the subproject has a resources directory, copy it to the jar
             ;; file.
142
143
             (let ((resources (string-append "subprojects/" ,subproject
                                             "/src/main/resources")))
Julien Lepiller's avatar
Julien Lepiller committed
144
               (if (file-exists? resources)
145
146
                 (copy-recursively resources "build/classes")))
             #t)))))
147
    (inputs '())
148
149
    (native-inputs
      `(("java-junit" ,java-junit)))
150
151
152
153
154
    (home-page "")
    (synopsis "Build system")
    (description "Build system")
    (license license:asl2.0)))

155
(define (gradle-groovy-subproject subproject projects runtime)
Julien Lepiller's avatar
Julien Lepiller committed
156
157
  "This procedure is similar to @code{gradle-groovy-subproject}, but it
builds a module containing groovy source code."
158
  (let ((base (gradle-subproject subproject projects runtime)))
159
160
    (package
      (inherit base)
Julien Lepiller's avatar
Julien Lepiller committed
161
      (version (package-version base))
162
      (arguments
163
164
165
166
167
       (substitute-keyword-arguments (package-arguments base)
         ((#:source-dir source-dir)
          `(string-append "subprojects/" ,subproject "/src/main/groovy"))
         ((#:phases phases)
          `(modify-phases ,phases
Julien Lepiller's avatar
Julien Lepiller committed
168
             (replace 'build
169
               (lambda _
Julien Lepiller's avatar
Julien Lepiller committed
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
                 (mkdir-p "build/classes")
                 (mkdir-p "build/jar")
                 (invoke "ant" "manifest")
                 (apply invoke "java" "-cp" (getenv "CLASSPATH")
                               "org.codehaus.groovy.tools.FileSystemCompiler"
                               "--classpath" (getenv "CLASSPATH")
                               "-d" "build/classes" "-j"
                               (find-files (string-append "subprojects/" ,subproject
                                                          "/src/main/groovy")
                                           ".*\\.(groovy|java)$"))
                 (invoke "jar" "cmf" "build/manifest/MANIFEST.MF"
                         (string-append "build/jar/gradle-" ,subproject
                                        "-" ,version ".jar")
                         "-C" "build/classes" ".")
                 #t))))))
185
      (native-inputs
Julien Lepiller's avatar
Julien Lepiller committed
186
       `(("groovy" ,groovy))))))
187

Julien Lepiller's avatar
Julien Lepiller committed
188
;; This gradle plugin is not a subproject, but it is required by buildsrc.
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
(define-public gradle-japicmp-plugin
  (package
    (name "gradle-japicmp-plugin")
    (version "0.2.6")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://github.com/melix/japicmp-gradle-plugin/"
                                  "archive/RELEASE_"
                                  (string-map (lambda (x) (if (eq? x #\.) #\_ x))
                                              version)
                                  ".tar.gz"))
              (sha256
               (base32
                "09frla9a1f33s31di5wcirm50ddhgww8wanlygc8068xnb5ch357"))))
    (build-system ant-build-system)
    (arguments
     `(#:jar-name "gradle-japicmp-plugin.jar"
       #:source-dir "src/main/java"
       #:tests? #f; FIXME: can't compile
       #:jdk ,icedtea-8))
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-base-services-groovy" ,gradle-base-services-groovy)
       ("gradle-core" ,gradle-core)
       ("gradle-core-api" ,gradle-core-api)
       ("gradle-logging" ,gradle-logging)
       ("gradle-workers" ,gradle-workers)
Julien Lepiller's avatar
Julien Lepiller committed
216
       ("groovy" ,groovy)
217
218
219
220
221
222
223
224
225
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-japicmp" ,java-japicmp)
       ("java-javax-inject" ,java-javax-inject)
       ("java-jboss-javassist" ,java-jboss-javassist)))
    (home-page "")
    (synopsis "")
    (description "")
    (license license:asl2.0)))

Julien Lepiller's avatar
Julien Lepiller committed
226
227
228
229
;; This package is not meant to be available at runtime: it a build dependency
;; only. It contains task definitions used to build submodules. Unfortunately,
;; it depends on many subprojects at runtime, and cannot be used without a
;; complete gradle.
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
(define-public gradle-buildsrc
  (package
    (inherit (gradle-subproject "buildsrc" '() '()))
    (name "gradle-buildsrc")
    (arguments
     `(#:jar-name "gradle-buildsrc.jar"
       #:source-dir "buildSrc/src/main/groovy:buildSrc/src/main/java"
       #:test-dir "buildSrc/src/test"
       #:jdk ,icedtea-8
       #:tests? #f;; Ignore tests for now
       #:phases
       (modify-phases %standard-phases
         (add-before 'build 'copy-resources
           (lambda _
             (copy-recursively "buildSrc/src/main/resources" "build/classes")
             #t))
         (add-before 'build 'remove-deps
           (lambda _
             ;; Requires asciidoctor, which is implemented with jruby :/
             (delete-file "buildSrc/src/main/groovy/org/gradle/build/docs/CacheableAsciidoctorTask.groovy")
             ;; Requires http-builder, but it requires old software
             (delete-file "buildSrc/src/main/groovy/org/gradle/testing/DistributedPerformanceTest.groovy")
             #t))
         (add-before 'build 'remove-jarjar
           (lambda _
             (substitute* '("buildSrc/src/main/groovy/org/gradle/build/docs/dsl/source/SourceMetaDataVisitor.java"
                            "buildSrc/src/main/groovy/org/gradle/build/docs/dsl/source/ExtractDslMetaDataTask.groovy")
257
258
               (("groovyjarjarantlr") "antlr"))
             #t))
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
         (add-before 'build 'fixes
           (lambda _
             (substitute* "buildSrc/src/main/groovy/org/gradle/binarycompatibility/rules/SinceAnnotationMissingRule.java"
               ;; Fix for java8 (cannot convert to String)
               (("Declaration.getName\\(\\)") "Declaration.getName().toString()")
               ;; Fix for guava
               (("getComment\\(\\).getContent\\(\\)") "getComment().get().toString()")
               ;; javaparser is more recent than expected
               (("getVariables\\(\\).get\\(0\\).getId\\(\\).getName\\(\\)")
                "getVariables().get(0).getName().toString()"))
             (substitute* "buildSrc/src/main/groovy/org/gradle/binarycompatibility/rules/AbstractGradleViolationRule.groovy"
               (("it.name.name") "it.name.asString()"))
             #t))
         (add-before 'build 'use-groovy
           (lambda _
             (substitute* "build.xml"
               (("javac") "groovyc")
               (("includeantruntime=\"false\"")
                "includeantruntime=\"false\" fork=\"yes\"")
               (("classpath=\"@refidclasspath\"")
                "classpathref=\"classpath\"")
               ;; To enable joint compilation
               (("classpathref=\"classpath\" />")
                "classpathref=\"classpath\"><javac source=\"7\" target=\"7\" /></groovyc>")
               (("<project basedir=\".\">")
                "<project basedir=\".\"><taskdef name=\"groovyc\"
classname=\"org.codehaus.groovy.ant.Groovyc\" />"))
             #t)))))
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-base-services-groovy" ,gradle-base-services-groovy)
       ("gradle-core" ,gradle-core)
       ("gradle-core-api" ,gradle-core-api)
       ("gradle-japicmp-plugin" ,gradle-japicmp-plugin)
       ("gradle-logging" ,gradle-logging)
       ("gradle-messaging" ,gradle-messaging)
       ("gradle-model-core" ,gradle-model-core)
       ("gradle-native" ,gradle-native)
       ("gradle-platform-base" ,gradle-platform-base)
       ("gradle-platform-jvm" ,gradle-platform-jvm)
       ("gradle-platform-native" ,gradle-platform-native)
       ("gradle-plugins" ,gradle-plugins)
       ("gradle-process-services" ,gradle-process-services)
       ("gradle-reporting" ,gradle-reporting)
       ("gradle-testing-base" ,gradle-testing-base)
       ("gradle-testing-jvm" ,gradle-testing-jvm)
Julien Lepiller's avatar
Julien Lepiller committed
305
       ("groovy" ,groovy)
306
307
308
       ("java-commons-lang" ,java-commons-lang)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-japicmp" ,java-japicmp)
309
       ("java-javaparser" ,java-javaparser-3.9)
310
311
312
313
314
315
316
317
318
319
       ("java-javax-inject" ,java-javax-inject)
       ("java-jboss-javassist" ,java-jboss-javassist)
       ("java-jsoup" ,java-jsoup)
       ("java-parboiled" ,java-parboiled)
       ("java-pegdown" ,java-pegdown)
       ("java-slf4j-api" ,java-slf4j-api)))
    (native-inputs
     `(("groovy" ,groovy)
       ,@(package-inputs groovy)))))

320
321
(define-public gradle-internal-testing
  (package
322
    (inherit (gradle-groovy-subproject "internal-testing" '() '()))
323
    (inputs
Julien Lepiller's avatar
Julien Lepiller committed
324
325
     `(("gradle-native" ,gradle-native)
       ("gradle-base-services" ,gradle-base-services)
Julien Lepiller's avatar
Julien Lepiller committed
326
       ("groovy" ,groovy)
Julien Lepiller's avatar
Julien Lepiller committed
327
328
       ("java-commons-io" ,java-commons-io)
       ("java-commons-lang" ,java-commons-lang)
329
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
330
331
332
333
334
335
       ("java-hamcrest-all" ,java-hamcrest-all)
       ("java-jmock" ,java-jmock)
       ("java-jmock-junit4" ,java-jmock-junit4)
       ("java-jmock-legacy" ,java-jmock-legacy)
       ("java-jsoup" ,java-jsoup)
       ("java-junit" ,java-junit)
336
       ("java-slf4j-api" ,java-slf4j-api)
Julien Lepiller's avatar
Julien Lepiller committed
337
       ("java-spockframework-core" ,java-spockframework-core)))))
338
339
340

;; Cycle with internal-testing
(define-public gradle-base-services
341
342
343
344
  (let ((base (gradle-subproject
                "base-services" '()
                '("java-guava-for-gradle" "java-slf4j-api" "java-commons-lang"
                  "java-commons-io" "java-jsr305" "java-jcip-annotations"))))
345
346
    (package
      (inherit base)
347
348
349
350
351
352
353
354
355
      (arguments
       (substitute-keyword-arguments (package-arguments base)
         ((#:phases phases)
          `(modify-phases ,phases
             (add-before 'build 'create-build-receipt
               (lambda _
                 (mkdir-p "build/classes/org/gradle")
                 (with-output-to-file "build/classes/org/gradle/build-receipt.properties"
                   (lambda _
356
                     (format #t "baseVersion=~a
357
358
359
commitId=cf7821a6f79f8e2a598df21780e3ff7ce8db2b82
buildTimestamp=19710101000000+0000
buildTimestampIso=1971-01-01 00\\:00\\:00 UTC
360
361
versionNumber=~a
isSnapshot=false" ,(package-version base) ,(package-version base))))
362
                 #t))))))
363
      (inputs
Julien Lepiller's avatar
Julien Lepiller committed
364
365
       `(("java-asm-7" ,java-asm-7)
         ("java-guava-for-gradle" ,java-guava-for-gradle)
366
367
368
369
370
         ("java-slf4j-api" ,java-slf4j-api)
         ("java-commons-lang" ,java-commons-lang)
         ("java-commons-io" ,java-commons-io)
         ("java-jsr305" ,java-jsr305)
         ("java-jcip-annotations" ,java-jcip-annotations)))
371
372
373
      (native-inputs
       `(("java-junit" ,java-junit)
         ("java-hamcrest-core" ,java-hamcrest-core))))))
374
375
376

(define-public gradle-base-services-groovy
  (package
377
    (inherit (gradle-subproject "base-services-groovy" '("gradle-base-services")
Julien Lepiller's avatar
Julien Lepiller committed
378
                                '("groovy")))
379
380
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
Julien Lepiller's avatar
Julien Lepiller committed
381
       ("groovy" ,groovy)
Julien Lepiller's avatar
Julien Lepiller committed
382
       ("java-asm-7" ,java-asm-7)
383
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
384
385
386
387
       ("java-jsr305" ,java-jsr305)))))

(define-public gradle-build-option
  (package
388
    (inherit (gradle-subproject "build-option" '("gradle-cli") '()))
Julien Lepiller's avatar
Julien Lepiller committed
389
390
391
392
    (inputs
     `(("gradle-cli" ,gradle-cli)
       ("java-commons-lang" ,java-commons-lang)
       ("java-jsr305" ,java-jsr305)))))
393
394

(define-public gradle-cli
395
  (gradle-subproject "cli" '() '()))
396
397
398

(define-public gradle-native
  (package
399
400
401
402
    (inherit (gradle-subproject "native" '("gradle-base-services")
                                '("java-native-platform" "java-commons-io"
                                  "java-slf4j-api" "java-jansi"
                                  "java-guava-for-gradle")))
403
404
405
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("java-commons-io" ,java-commons-io)
406
       ("java-guava-for-gradle" ,java-guava-for-gradle)
407
408
409
410
411
412
       ("java-jansi" ,java-jansi)
       ("java-jsr305" ,java-jsr305)
       ("java-native-platform" ,java-native-platform)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-messaging
413
414
  (let ((base  (gradle-subproject "messaging" '("gradle-base-services")
                                  '("java-slf4j-api" "java-kryo" "java-objenesis"
Julien Lepiller's avatar
Julien Lepiller committed
415
                                    "java-minlog" "java-reflectasm" "java-asm-7"))))
416
417
418
    (package
      (inherit base)
      (arguments
419
420
421
422
423
424
        (substitute-keyword-arguments (package-arguments base)
          ((#:phases phases)
           `(modify-phases ,phases
              (add-before 'build 'fix-kryo
                (lambda _
                  ;; gradle depends on kryo-2.20 from 2013, we packaged version 4.
425
426
427
428
429
                  (with-directory-excursion "subprojects/messaging/src/main/java"
                    (substitute* '("org/gradle/internal/serialize/kryo/KryoBackedEncoder.java"
                                   "org/gradle/internal/serialize/kryo/StringDeduplicatingKryoBackedEncoder.java")
                      (("public int getWritePosition")
                       "public long getWritePosition")))
430
                  #t))))))
431
432
      (inputs
       `(("gradle-base-services" ,gradle-base-services)
Julien Lepiller's avatar
Julien Lepiller committed
433
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
Julien Lepiller's avatar
Julien Lepiller committed
434
         ("java-asm-7" ,java-asm-7)
Julien Lepiller's avatar
Julien Lepiller committed
435
         ("java-commons-lang" ,java-commons-lang)
436
         ("java-fastutil" ,java-fastutil)
437
         ("java-guava-for-gradle" ,java-guava-for-gradle)
438
439
         ("java-jsr305" ,java-jsr305)
         ("java-kryo" ,java-kryo)
440
441
442
         ("java-minlog" ,java-minlog)
         ("java-objenesis" ,java-objenesis)
         ("java-reflectasm" ,java-reflectasm)
443
444
         ("java-slf4j-api" ,java-slf4j-api))))))

Julien Lepiller's avatar
Julien Lepiller committed
445
446
(define-public gradle-persistent-cache
  (package
447
448
449
450
451
    (inherit (gradle-subproject
               "persistent-cache"
               '("gradle-base-services" "gradle-messaging" "gradle-native")
               '("java-jcip-annotations" "java-commons-collections"
                 "java-commons-io" "java-commons-lang")))
Julien Lepiller's avatar
Julien Lepiller committed
452
453
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
Julien Lepiller's avatar
Julien Lepiller committed
454
       ("gradle-logging" ,gradle-logging)
Julien Lepiller's avatar
Julien Lepiller committed
455
456
       ("gradle-messaging" ,gradle-messaging)
       ("gradle-native" ,gradle-native)
Julien Lepiller's avatar
Julien Lepiller committed
457
       ("gradle-resources" ,gradle-resources)
Julien Lepiller's avatar
Julien Lepiller committed
458
459
460
       ("java-commons-collections" ,java-commons-collections)
       ("java-commons-io" ,java-commons-io)
       ("java-commons-lang" ,java-commons-lang)
461
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
462
463
464
465
466
       ("java-jcip-annotations" ,java-jcip-annotations)
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-logging
467
  (package
468
469
470
471
472
473
    (inherit (gradle-subproject
               "logging"
               '("gradle-native" "gradle-base-services" "gradle-messaging"
                 "gradle-cli" "gradle-build-option")
               ;; Maybe log4j-over-slf4j and jcl-over-slf4j
               '("java-slf4j-api" "java-jul-to-slf4j" "ant" "java-commons-lang"
Julien Lepiller's avatar
Julien Lepiller committed
474
                 "java-commons-logging-minimal"
475
476
                 "java-guava-for-gradle" "java-jansi" "java-jansi-native"
                 "java-jcip-annotations")))
477
478
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
Julien Lepiller's avatar
Julien Lepiller committed
479
       ("gradle-build-option" ,gradle-build-option)
480
481
482
       ("gradle-cli" ,gradle-cli)
       ("gradle-messaging" ,gradle-messaging)
       ("gradle-native" ,gradle-native)
Julien Lepiller's avatar
Julien Lepiller committed
483
       ("java-commons-lang" ,java-commons-lang)
Julien Lepiller's avatar
Julien Lepiller committed
484
       ("java-commons-logging-minimal" ,java-commons-logging-minimal)
485
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
486
487
488
489
490
491
492
       ("java-jansi" ,java-jansi)
       ("java-jansi-native" ,java-jansi-native)
       ("java-jcip-annotations" ,java-jcip-annotations)
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)
       ("java-jul-to-slf4j" ,java-jul-to-slf4j)))))

493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
(define-public gradle-language-scala
  (let ((base (gradle-subproject
                "language-scala"
                '("gradle-core" "gradle-platform-jvm" "gradle-language-java"
                  "gradle-language-jvm")
                '())))
    (package
      (inherit base)
      (inputs
       `(("gradle-base-services" ,gradle-base-services)
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
         ("gradle-core" ,gradle-core)
         ("gradle-core-api" ,gradle-core-api)
         ("gradle-language-java" ,gradle-language-java)
         ("gradle-language-jvm" ,gradle-language-jvm)
         ("gradle-logging" ,gradle-logging)
         ("gradle-model-core" ,gradle-model-core)
         ("gradle-native" ,gradle-native)
         ("gradle-persis tent-cache" ,gradle-persistent-cache)
         ("gradle-platform-base" ,gradle-platform-base)
         ("gradle-platform-jvm" ,gradle-platform-jvm)
         ("gradle-process-services" ,gradle-process-services)
         ("gradle-workers" ,gradle-workers)
         ("groovy" ,groovy)
         ("java-guava-for-gradle" ,java-guava-for-gradle)
         ("java-javax-inject" ,java-javax-inject)
         ("java-jsr305" ,java-jsr305)
Julien Lepiller's avatar
Julien Lepiller committed
520
         ("scala" ,scala))))))
521

Julien Lepiller's avatar
Julien Lepiller committed
522
523
524
525
526
527
528
529
530
531
(define-public gradle-scala
  (let ((base (gradle-subproject
                "scala"
                '("gradle-core" "gradle-language-jvm"
                  "gradle-language-scala" "gradle-plugins")
                '("groovy"))))
    (package
      (inherit base)
      (inputs
       `(("gradle-base-services" ,gradle-base-services)
532
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
Julien Lepiller's avatar
Julien Lepiller committed
533
534
535
536
         ("gradle-core" ,gradle-core)
         ("gradle-core-api" ,gradle-core-api)
         ("gradle-model-core" ,gradle-model-core)
         ("gradle-platform-base" ,gradle-platform-base)
537
         ("gradle-platform-jvm" ,gradle-platform-jvm)
Julien Lepiller's avatar
Julien Lepiller committed
538
539
540
541
542
         ("gradle-plugins" ,gradle-plugins)
         ("gradle-reporting" ,gradle-reporting)
         ("groovy" ,groovy)
         ("java-guava-for-gradle" ,java-guava-for-gradle)
         ("java-javax-inject" ,java-javax-inject)
543
         ("java-jsr305" ,java-jsr305)
Julien Lepiller's avatar
Julien Lepiller committed
544
         ("scala" ,scala))))))
Julien Lepiller's avatar
Julien Lepiller committed
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578

(define-public gradle-ide
  (let ((base (gradle-subproject
                "ide"
                '("gradle-scala" "gradle-core" "gradle-plugins" "gradle-ear"
                  "gradle-tooling-api")
                '("java-slf4j-api" "java-javax-inject" "groovy"))))
    (package
      (inherit base)
      (inputs
       `(("gradle-base-services" ,gradle-base-services)
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
         ("gradle-composite-builds" ,gradle-composite-builds)
         ("gradle-core" ,gradle-core)
         ("gradle-core-api" ,gradle-core-api)
         ("gradle-dependency-management" ,gradle-dependency-management)
         ("gradle-docs" ,gradle-docs)
         ("gradle-ear" ,gradle-ear)
         ("gradle-language-java" ,gradle-language-java)
         ("gradle-logging" ,gradle-logging)
         ("gradle-platform-base" ,gradle-platform-base)
         ("gradle-platform-jvm" ,gradle-platform-jvm)
         ("gradle-plugins" ,gradle-plugins)
         ("gradle-process-services" ,gradle-process-services)
         ("gradle-scala" ,gradle-scala)
         ("gradle-tooling-api" ,gradle-tooling-api)
         ("groovy" ,groovy)
         ("java-commons-lang" ,java-commons-lang)
         ("java-commons-io" ,java-commons-io)
         ("java-guava-for-gradle" ,java-guava-for-gradle)
         ("java-javax-inject" ,java-javax-inject)
         ("java-jsr305" ,java-jsr305)
         ("java-slf4j-api" ,java-slf4j-api))))))

Julien Lepiller's avatar
Julien Lepiller committed
579
580
(define-public gradle-model-core
  (package
581
582
583
    (inherit (gradle-subproject
               "model-core"
               '("gradle-base-services-groovy" "gradle-base-services")
Julien Lepiller's avatar
Julien Lepiller committed
584
               '("groovy" "java-slf4j-api" "java-guava-for-gradle"
Julien Lepiller's avatar
Julien Lepiller committed
585
                 "java-jcip-annotations" "java-commons-lang" "java-asm-7")))
Julien Lepiller's avatar
Julien Lepiller committed
586
587
588
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-base-services-groovy" ,gradle-base-services-groovy)
Julien Lepiller's avatar
Julien Lepiller committed
589
590
       ("gradle-core-api" ,gradle-core-api)
       ("gradle-logging" ,gradle-logging)
Julien Lepiller's avatar
Julien Lepiller committed
591
       ("groovy" ,groovy)
Julien Lepiller's avatar
Julien Lepiller committed
592
       ("java-asm-7" ,java-asm-7)
Julien Lepiller's avatar
Julien Lepiller committed
593
       ("java-commons-lang" ,java-commons-lang)
594
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
595
596
597
598
599
600
       ("java-jcip-annotations" ,java-jcip-annotations)
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-resources
  (package
601
602
603
604
605
    (inherit (gradle-subproject
               "resources"
               '("gradle-base-services" "gradle-messaging" "gradle-native"
                 "gradle-model-core")
               '("java-guava-for-gradle" "java-commons-io")))
Julien Lepiller's avatar
Julien Lepiller committed
606
607
608
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-native" ,gradle-native)
609
       ("java-commons-io" ,java-commons-io)
610
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
611
612
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))
Julien Lepiller's avatar
Julien Lepiller committed
613
614
615

(define-public gradle-build-cache
  (package
616
617
618
619
620
    (inherit (gradle-subproject
               "build-cache"
               '("gradle-messaging" "gradle-native" "gradle-persistent-cache"
                 "gradle-resources" "gradle-logging" "gradle-base-services")
               '("java-javax-inject" "java-commons-io")))
Julien Lepiller's avatar
Julien Lepiller committed
621
622
623
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-logging" ,gradle-logging)
Julien Lepiller's avatar
Julien Lepiller committed
624
       ("gradle-messaging" ,gradle-messaging)
Julien Lepiller's avatar
Julien Lepiller committed
625
626
627
       ("gradle-persistent-cache" ,gradle-persistent-cache)
       ("gradle-resources" ,gradle-resources)
       ("java-commons-io" ,java-commons-io)
628
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
629
630
631
632
633
634
       ("java-javax-inject" ,java-javax-inject)
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-process-services
  (package
635
636
637
638
    (inherit (gradle-subproject
               "process-services"
               '("gradle-messaging" "gradle-native" "gradle-base-services")
               '("java-guava-for-gradle" "java-slf4j-api")))
Julien Lepiller's avatar
Julien Lepiller committed
639
640
641
642
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-messaging" ,gradle-messaging)
       ("gradle-native" ,gradle-native)
643
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
644
645
646
647
648
649
       ("java-jsr305" ,java-jsr305)
       ("java-native-platform" ,java-native-platform)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-core-api
  (package
650
651
652
653
654
655
656
657
    (inherit (gradle-subproject
               "core-api"
               '("gradle-base-services" "gradle-base-services-groovy"
                 "gradle-build-cache" "gradle-logging" "gradle-model-core"
                 "gradle-persistent-cache" "gradle-process-services"
                 "gradle-resources")
               '("ant" "java-commons-io" "java-commons-lang"
                 "java-jcip-annotations")))
Julien Lepiller's avatar
Julien Lepiller committed
658
659
660
661
662
663
664
665
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-base-services-groovy" ,gradle-base-services-groovy)
       ("gradle-build-cache" ,gradle-build-cache)
       ("gradle-logging" ,gradle-logging)
       ("gradle-persistent-cache" ,gradle-persistent-cache)
       ("gradle-process-services" ,gradle-process-services)
       ("gradle-resources" ,gradle-resources)
Julien Lepiller's avatar
Julien Lepiller committed
666
       ("groovy" ,groovy)
667
       ("java-commons-io" ,java-commons-io)
668
       ("java-commons-lang" ,java-commons-lang)
669
670
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-jcip-annotations" ,java-jcip-annotations)
Julien Lepiller's avatar
Julien Lepiller committed
671
672
673
674
675
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-model-groovy
  (package
676
677
678
679
    (inherit (gradle-subproject
               "model-groovy"
               '("gradle-base-services-groovy" "gradle-base-services"
                 "gradle-model-core")
Julien Lepiller's avatar
Julien Lepiller committed
680
               '("groovy" "java-jcip-annotations" "java-guava-for-gradle")))
Julien Lepiller's avatar
Julien Lepiller committed
681
682
683
684
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-base-services-groovy" ,gradle-base-services-groovy)
       ("gradle-model-core" ,gradle-model-core)
Julien Lepiller's avatar
Julien Lepiller committed
685
       ("groovy" ,groovy)
Julien Lepiller's avatar
Julien Lepiller committed
686
       ("java-asm-7" ,java-asm-7)
687
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
688
689
690
691
692
       ("java-jcip-annotations" ,java-jcip-annotations)
       ("java-jsr305" ,java-jsr305)))))

(define-public gradle-jvm-services
  (package
693
694
695
696
    (inherit (gradle-subproject
               "jvm-services"
               '("gradle-base-services" "gradle-process-services")
               '()))
Julien Lepiller's avatar
Julien Lepiller committed
697
698
699
700
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-process-services" ,gradle-process-services)))))

701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
(define-public gradle-plugin-use
  (let ((base (gradle-subproject
                "plugin-use"
                '("gradle-resources-http" "gradle-core" "gradle-dependency-management")
                '())))
    (package
      (inherit base)
      (inputs
       `(("gradle-base-services" ,gradle-base-services)
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
         ("gradle-core" ,gradle-core)
         ("gradle-core-api" ,gradle-core-api)
         ("gradle-dependency-management" ,gradle-dependency-management)
         ("gradle-logging" ,gradle-logging)
         ("gradle-messaging" ,gradle-messaging)
         ("groovy" ,groovy)
         ("java-guava-for-gradle" ,java-guava-for-gradle)
         ("java-jsr305" ,java-jsr305))))))

720
721
722
723
724
725
726
727
728
(define-public gradle-core
  (let ((base (gradle-subproject
                "core"
                '("gradle-docs" "gradle-model-groovy" "gradle-base-services"
                  "gradle-base-services-groovy" "gradle-messaging"
                  "gradle-logging" "gradle-resources" "gradle-cli"
                  "gradle-build-option" "gradle-native" "gradle-persistent-cache"
                  "gradle-build-cache" "gradle-core-api" "gradle-process-services"
                  "gradle-jvm-services" "gradle-model-core")
Julien Lepiller's avatar
Julien Lepiller committed
729
                '("groovy" "ant" "java-guava-for-gradle"
Julien Lepiller's avatar
Julien Lepiller committed
730
                  "java-javax-inject" "java-asm-7" "java-slf4j-api"
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
                  "java-commons-collections" "java-commons-io"
                  "java-commons-lang" "java-jcip-annotations" "java-jaxp"
                  "java-native-platform" "java-commons-compress"))))
    (package
      (inherit base)
      (arguments
       (substitute-keyword-arguments (package-arguments base)
        ((#:phases phases)
         `(modify-phases ,phases
            (add-before 'build 'create-properties
              (lambda _
                (mkdir-p "build/classes")
                (with-directory-excursion "build/classes"
                  (with-output-to-file "gradle-implementation-plugins.properties"
                    (lambda _
                      (format #t "plugins=gradle-tooling-api-builders")))
                  (with-output-to-file "gradle-plugins.properties"
                    (lambda _
                      (format #t (string-append
                                   "plugins=gradle-announce,gradle-antlr,"
                                   "gradle-build-cache-http,gradle-build-comparison,"
                                   "gradle-build-init,gradle-code-quality,"
                                   "gradle-composite-builds,gradle-diagnostics,"
                                   "gradle-ear,gradle-ide,gradle-ide-native,"
                                   "gradle-ide-play,gradle-ivy,gradle-jacoco,"
                                   "gradle-javascript,gradle-language-groovy,"
                                   "gradle-language-java,gradle-language-jvm,"
                                   "gradle-language-native,gradle-language-scala,"
                                   "gradle-maven,gradle-osgi,gradle-platform-base,"
                                   "gradle-platform-jvm,gradle-platform-native,"
                                   "gradle-platform-play,gradle-plugin-development,"
                                   "gradle-plugin-use,gradle-plugins,gradle-publish,"
                                   "gradle-reporting,gradle-resources-gcs,"
                                   "gradle-resources-http,gradle-resources-s3,"
                                   "gradle-resources-sftp,gradle-scala,"
                                   "gradle-signing,gradle-testing-base,"
                                   "gradle-testing-jvm,gradle-testing-native,"
                                   "gradle-wrapper"))))
                #t)))))))
      (inputs
       `(("gradle-base-services" ,gradle-base-services)
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
         ("gradle-build-cache" ,gradle-build-cache)
         ("gradle-build-option" ,gradle-build-option)
         ("gradle-cli" ,gradle-cli)
         ("gradle-core-api" ,gradle-core-api)
         ("gradle-jvm-services" ,gradle-jvm-services)
         ("gradle-logging" ,gradle-logging)
         ("gradle-messaging" ,gradle-messaging)
         ("gradle-model-core" ,gradle-model-core)
         ("gradle-model-groovy" ,gradle-model-groovy)
         ("gradle-native" ,gradle-native)
         ("gradle-persistent-cache" ,gradle-persistent-cache)
         ("gradle-process-services" ,gradle-process-services)
         ("gradle-resources" ,gradle-resources)
Julien Lepiller's avatar
Julien Lepiller committed
786
         ("groovy" ,groovy)
Julien Lepiller's avatar
Julien Lepiller committed
787
         ("java-asm-7" ,java-asm-7)
788
789
790
791
792
793
794
795
796
797
798
799
800
         ("java-commons-collections" ,java-commons-collections)
         ("java-commons-compress" ,java-commons-compress)
         ("java-commons-io" ,java-commons-io)
         ("java-commons-lang" ,java-commons-lang)
         ("java-guava-for-gradle" ,java-guava-for-gradle)
         ("java-javax-inject" ,java-javax-inject)
         ("java-jaxp" ,java-jaxp)
         ("java-jcip-annotations" ,java-jcip-annotations)
         ("java-jsr305" ,java-jsr305)
         ("java-native-platform" ,java-native-platform)
         ("java-slf4j-api" ,java-slf4j-api))))))

(define-public gradle-wrapper
Julien Lepiller's avatar
Julien Lepiller committed
801
  (package
802
803
804
805
    (inherit (gradle-subproject "wrapper" '("gradle-cli") '()))
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-cli" ,gradle-cli)))))
Julien Lepiller's avatar
Julien Lepiller committed
806

807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
(define-public gradle-tooling-api
  (package
    (inherit (gradle-subproject
               "tooling-api"
               '("gradle-core" "gradle-messaging" "gradle-wrapper"
                 "gradle-base-services")
               '()))
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-core" ,gradle-core)
       ("gradle-core-api" ,gradle-core-api)
       ("gradle-logging" ,gradle-logging)
       ("gradle-messaging" ,gradle-messaging)
       ("gradle-wrapper" ,gradle-wrapper)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-jcip-annotations" ,java-jcip-annotations)
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-launcher
  (let ((base (gradle-subproject
                "launcher"
829
                '("gradle-base-services" "gradle-core-api" "gradle-core" "gradle-tooling-api")
Julien Lepiller's avatar
Julien Lepiller committed
830
                '("java-asm-7" "java-commons-io" "java-commons-lang" "java-slf4j-api"))))
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
    (package
      (inherit base)
      (inputs
       `(("gradle-base-services" ,gradle-base-services)
         ("gradle-build-option" ,gradle-build-option)
         ("gradle-cli" ,gradle-cli)
         ("gradle-core" ,gradle-core)
         ("gradle-core-api" ,gradle-core-api)
         ("gradle-jvm-services" ,gradle-jvm-services)
         ("gradle-logging" ,gradle-logging)
         ("gradle-messaging" ,gradle-messaging)
         ("gradle-native" ,gradle-native)
         ("gradle-persistent-cache" ,gradle-persistent-cache)
         ("gradle-process-services" ,gradle-process-services)
         ("gradle-tooling-api" ,gradle-tooling-api)
Julien Lepiller's avatar
Julien Lepiller committed
846
         ("groovy" ,groovy)
Julien Lepiller's avatar
Julien Lepiller committed
847
         ("java-asm-7" ,java-asm-7)
848
         ("java-commons-io" ,java-commons-io)
Julien Lepiller's avatar
Julien Lepiller committed
849
         ("java-commons-lang" ,java-commons-lang)
850
851
852
853
854
855
856
857
858
859
860
         ("java-guava-for-gradle" ,java-guava-for-gradle)
         ("java-jcip-annotations" ,java-jcip-annotations)
         ("java-jsr305" ,java-jsr305)
         ("java-slf4j-api" ,java-slf4j-api)))
      (arguments
       `(#:main-class "org.gradle.launcher.GradleMain"
         ,@(substitute-keyword-arguments (package-arguments base)
            ((#:phases phases)
             `(modify-phases ,phases
                (add-before 'build 'add-classpath
                  (lambda _
861
862
863
864
865
866
867
868
                   (let ((version ,(package-version base)))
                     (substitute* "build.xml"
                       (("message=\"")
                        (string-append "message=\"Class-Path: "
                                       "gradle-base-services-" version ".jar "
                                       "gradle-core-api-" version ".jar "
                                       "gradle-core-" version ".jar"
                                       "${line.separator}"))))
869
870
871
872
873
874
875
                   #t))
                ;; This phase fails, because the jar files are not actually
                ;; present in the output directory.  This is because gradle
                ;; uses class loading: we need to put all its dependencies
                ;; in the same package, which is done later.  Then the
                ;; classpath becomes correct.
                (delete 'generate-jar-indices)))))))))
876
877
878
879
880
881

(define-public gradle-installation-beacon
  (package
    (inherit (gradle-subproject "installation-beacon" '() '()))))

(define-public gradle-workers
Julien Lepiller's avatar
Julien Lepiller committed
882
  (package
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
    (inherit (gradle-subproject "workers" '("gradle-core") '("java-jcip-annotations")))
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-core" ,gradle-core)
       ("gradle-core-api" ,gradle-core-api)
       ("gradle-logging" ,gradle-logging)
       ("gradle-messaging" ,gradle-messaging)
       ("gradle-native" ,gradle-native)
       ("gradle-process-services" ,gradle-process-services)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-javax-inject" ,java-javax-inject)
       ("java-jcip-annotations" ,java-jcip-annotations)
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-reporting
  (package
    (inherit (gradle-subproject
               "reporting"
               '("gradle-core")
Julien Lepiller's avatar
Julien Lepiller committed
903
               '("groovy" "java-jatl" "java-commons-lang")))
Julien Lepiller's avatar
Julien Lepiller committed
904
905
906
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-base-services-groovy" ,gradle-base-services-groovy)
907
908
909
910
       ("gradle-core" ,gradle-core)
       ("gradle-core-api" ,gradle-core-api)
       ("gradle-logging" ,gradle-logging)
       ("gradle-model-core" ,gradle-model-core)
Julien Lepiller's avatar
Julien Lepiller committed
911
       ("groovy" ,groovy)
912
913
914
       ("java-commons-lang" ,java-commons-lang)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-jatl" ,java-jatl)
915
916
       ("java-javax-inject" ,java-javax-inject)
       ("java-jsr305" ,java-jsr305)))))
917
918
919
920
921
922
923

(define-public gradle-resources-http
  (package
    (inherit (gradle-subproject
               "resources-http"
               '("gradle-resources" "gradle-base-services" "gradle-core")
               ;; TODO: jcl-over-slf4j
924
               '("java-httpcomponents-httpclient" "java-httpcomponents-httpcore"
925
926
927
928
929
930
                 "java-commons-codec" "java-jcifs" "java-slf4j-api"
                 "java-guava-for-gradle" "java-commons-lang" "java-commons-io"
                 "java-nekohtml" "java-xerces" "java-jaxp")))
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-core" ,gradle-core)
Julien Lepiller's avatar
Julien Lepiller committed
931
       ("gradle-core-api" ,gradle-core-api)
932
933
934
935
936
937
       ("gradle-model-core" ,gradle-model-core)
       ("gradle-resources" ,gradle-resources)
       ("java-commons-codec" ,java-commons-codec)
       ("java-commons-io" ,java-commons-io)
       ("java-commons-lang" ,java-commons-lang)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
938
939
       ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient)
       ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore)
940
941
942
943
944
945
946
       ("java-jaxp" ,java-jaxp)
       ("java-jcifs" ,java-jcifs)
       ("java-jsr305" ,java-jsr305)
       ("java-nekohtml" ,java-nekohtml)
       ("java-slf4j-api" ,java-slf4j-api)
       ("java-xerces" ,java-xerces)))))

947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
(define-public gradle-version-control
  (let ((base (gradle-subproject
                "version-control"
                '("gradle-core" "gradle-core-api")
                ;TODO: jcl-over-slf4j-1.7.16.jar
                '("java-httpcomponents-httpclient" "java-httpcomponents-httpcore"
                  "java-commons-codec" "java-jgit" "java-jsch"
                  "java-slf4j-api"))))
    (package
      (inherit base)
      (inputs
       `(("gradle-base-services" ,gradle-base-services)
         ("gradle-core" ,gradle-core)
         ("gradle-core-api" ,gradle-core-api)
         ("gradle-logging" ,gradle-logging)
         ("gradle-persistent-cache" ,gradle-persistent-cache)
         ("java-commons-codec" ,java-commons-codec)
         ("java-guava-for-gradle" ,java-guava-for-gradle)
         ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient)
         ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore)
         ("java-jgit" ,java-jgit)
         ("java-jsch" ,java-jsch)
         ("java-jsr305" ,java-jsr305)
         ("java-slf4j-api" ,java-slf4j-api))))))

972
973
974
975
976
977
978
979
980
981
982
983
984
985
(define-public gradle-dependency-management
  (let ((base (gradle-subproject
                 "dependency-management"
                 '("gradle-installation-beacon" "gradle-core" "gradle-resources"
                   "gradle-version-control" "gradle-resources-http"
                   "gradle-runtime-api-info")
                 ;; TODO: maven-core aether-connector-wagon aether-util aether-spi
                 ;; aether-impl aether-api wagon-http-shared wagon-provider-api
                 ;; wagon-http wagon-file maven-aether-provider maven-plugin-api
                 ;; maven-repository-metadata maven-artifact maven-moel
                 ;; maven-model-builder maven-compat plexus-sec-dispacher
                 ;; plexus-cipher plexus-classworlds plexus-container-default
                 ;; plexus-component-annotations plexus-interpolation plexus-utils
                 ;; maven-settings maven-settings-builder xbean-reflect
Julien Lepiller's avatar
Julien Lepiller committed
986
                 '("java-asm-7" "java-commons-lang" "java-commons-io"
987
                   "java-apache-ivy" "java-slf4j-api" "java-gson"
988
                   "java-jcip-annotations" "java-bouncycastle"
989
990
991
992
993
994
995
996
997
998
999
1000
                   "java-jsch"))))
    (package
      (inherit base)
      (arguments
       (substitute-keyword-arguments (package-arguments base)
        ((#:phases phases)
         `(modify-phases ,phases
            (add-before 'build 'fix
              (lambda _
                (substitute* "subprojects/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/IvyXmlModuleDescriptorParser.java"
                  (("new NamespaceId\\(uri, localName\\)")
                   "new NamespaceId(uri, localName).toString()"))
For faster browsing, not all history is shown. View entire blame