gradle.scm 139 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
;;;
;;; 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 java)
29
  #:use-module (gnu packages maven)
Julien Lepiller's avatar
Julien Lepiller committed
30
31
  #:use-module (gnu packages web)
  #:use-module (gnu packages xml)
Julien Lepiller's avatar
Julien Lepiller committed
32
  #:use-module (more packages groovy)
33
34
  #:use-module (more packages java)
  #:use-module (more packages maven))
35

Julien Lepiller's avatar
Julien Lepiller committed
36
37
;; Gradle requires guava@17.
;; TODO: patch gradle to support at least guava@20 and send it upstream.
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
(define-public java-guava-for-gradle
  (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"
       #:source-dir "guava/src/"
       #:tests? #f)))); Not in a "java" subdirectory

(define (gradle-subproject subproject projects runtime)
Julien Lepiller's avatar
Julien Lepiller committed
55
56
57
58
59
60
61
62
  "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
@code{projects} and @code{runtime} parameters."
Julien Lepiller's avatar
Julien Lepiller committed
63
64
65
  (package
    (name (string-append "gradle-" subproject))
    (version "4.4.0")
66
67
    (source (origin
              (method url-fetch)
Julien Lepiller's avatar
Julien Lepiller committed
68
              (uri (string-append "https://github.com/gradle/gradle/archive/v"
69
70
71
72
                                  version ".tar.gz"))
              (file-name (string-append "gradle-" version ".tar.gz"))
              (sha256
               (base32
73
74
75
76
                "026232dy578nl8gzj1nfc9r25p8alcwdbwb9b8s3bw4krxmy6saz"))
              (patches
                (search-patches
                  "gradle-match-files-witouht-version-number.patch"))))
77
78
    (build-system ant-build-system)
    (arguments
Julien Lepiller's avatar
Julien Lepiller committed
79
80
     ;; The jar-name must be this exactly: gradle will not find its jar files
     ;; if they are named differently.
81
     `(#:jar-name (string-append "gradle-" ,subproject "-4.4.jar")
82
83
84
       #:source-dir (string-append "subprojects/" ,subproject "/src/main/java")
       #:jdk ,icedtea-8
       #:tests? #f;; Ignore tests for now
85
86
87
88
89
       #: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
90
91
             ;; Add implementation information to the MANIFEST.MF file.  We can
             ;; substitute this in the manifest phase.
92
93
94
95
96
97
98
99
100
101
             (substitute* "build.xml"
               (("message=\"")
                (string-append "message=\"Implementation-Title: Gradle"
                               "${line.separator}"
                               "Implementation-Version: 4.4"
                               "${line.separator}")))
             #t))
         (add-before 'build 'add-properties
           (lambda* (#:key inputs #:allow-other-keys)
             (mkdir-p "build/classes")
Julien Lepiller's avatar
Julien Lepiller committed
102
103
104
105
106
107
108
109
110
111
             ;; 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.
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
             (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
128
129
             ;; If the subproject has a resources directory, copy it to the jar
             ;; file.
130
131
             (let ((resources (string-append "subprojects/" ,subproject
                                             "/src/main/resources")))
Julien Lepiller's avatar
Julien Lepiller committed
132
133
               (if (file-exists? resources)
                 (copy-recursively resources "build/classes"))))))))
134
135
136
137
138
139
140
    (inputs '())
    (native-inputs '())
    (home-page "")
    (synopsis "Build system")
    (description "Build system")
    (license license:asl2.0)))

141
(define (gradle-groovy-subproject subproject projects runtime)
Julien Lepiller's avatar
Julien Lepiller committed
142
143
  "This procedure is similar to @code{gradle-groovy-subproject}, but it
builds a module containing groovy source code."
144
  (let ((base (gradle-subproject subproject projects runtime)))
145
146
147
    (package
      (inherit base)
      (arguments
148
149
150
151
152
153
154
155
       (substitute-keyword-arguments (package-arguments base)
         ((#:source-dir source-dir)
          `(string-append "subprojects/" ,subproject "/src/main/groovy"))
         ((#:phases phases)
          `(modify-phases ,phases
             (add-before 'build 'use-groovy
               (lambda _
                 (substitute* "build.xml"
Julien Lepiller's avatar
Julien Lepiller committed
156
                   ;; Change the compiler to groovyc
157
                   (("javac") "groovyc")
Julien Lepiller's avatar
Julien Lepiller committed
158
                   ;; Make it fork
159
160
                   (("includeantruntime=\"false\"")
                    "includeantruntime=\"false\" fork=\"yes\"")
Julien Lepiller's avatar
Julien Lepiller committed
161
                   ;; groovyc doesn't understand the --classpath argument (bug?)
162
163
164
165
166
                   (("classpath=\"@refidclasspath\"")
                    "classpathref=\"classpath\"")
                   ;; To enable joint compilation
                   (("classpathref=\"classpath\" />")
                    "classpathref=\"classpath\"><javac source=\"1.5\" target=\"1.5\" /></groovyc>")
Julien Lepiller's avatar
Julien Lepiller committed
167
168
                   ;; Actually create a definition of the groovyc task.
                   ;; FIXME: Can't we use groovy-ant for that?
169
170
171
                   (("<project basedir=\".\">")
                    "<project basedir=\".\"><taskdef name=\"groovyc\"
classname=\"org.codehaus.groovy.ant.Groovyc\" />"))))))))
172
      (native-inputs
Julien Lepiller's avatar
Julien Lepiller committed
173
174
       `(("groovy" ,groovy)
         ,@(package-inputs groovy))))))
175

Julien Lepiller's avatar
Julien Lepiller committed
176
;; This gradle plugin is not a subproject, but it is required by buildsrc.
177
178
179
180
181
182
183
184
185
186
187
188
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
(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)
       ("groovy-bootstrap" ,groovy-bootstrap)
       ("groovy-templates" ,groovy-templates)
       ("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
215
216
217
218
;; 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.
219
220
221
222
223
224
225
226
227
228
229
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
257
258
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
305
306
307
(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")
               (("groovyjarjarantlr") "antlr"))))
         (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)
       ("groovy-xml" ,groovy-xml)
       ("java-commons-lang" ,java-commons-lang)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-japicmp" ,java-japicmp)
       ("java-javaparser" ,java-javaparser)
       ("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)))))

308
309
(define-public gradle-internal-testing
  (package
310
    (inherit (gradle-groovy-subproject "internal-testing" '() '()))
311
    (inputs
Julien Lepiller's avatar
Julien Lepiller committed
312
313
314
315
316
     `(("gradle-native" ,gradle-native)
       ("gradle-base-services" ,gradle-base-services)
       ("groovy-xml" ,groovy-xml)
       ("java-commons-io" ,java-commons-io)
       ("java-commons-lang" ,java-commons-lang)
317
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
318
319
320
321
322
323
       ("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)
324
       ("java-slf4j-api" ,java-slf4j-api)
Julien Lepiller's avatar
Julien Lepiller committed
325
       ("java-spockframework-core" ,java-spockframework-core)))))
326
327
328

;; Cycle with internal-testing
(define-public gradle-base-services
329
330
331
332
  (let ((base (gradle-subproject
                "base-services" '()
                '("java-guava-for-gradle" "java-slf4j-api" "java-commons-lang"
                  "java-commons-io" "java-jsr305" "java-jcip-annotations"))))
333
334
    (package
      (inherit base)
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
      (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 _
                     (format #t "baseVersion=4.4
commitId=cf7821a6f79f8e2a598df21780e3ff7ce8db2b82
buildTimestamp=19710101000000+0000
buildTimestampIso=1971-01-01 00\\:00\\:00 UTC
versionNumber=4.4
isSnapshot=false")))
                 #t))))))
351
      (inputs
352
       `(("java-guava-for-gradle" ,java-guava-for-gradle)
353
354
355
356
357
         ("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)))
358
359
360
      (native-inputs
       `(("java-junit" ,java-junit)
         ("java-hamcrest-core" ,java-hamcrest-core))))))
361
362
363

(define-public gradle-base-services-groovy
  (package
364
365
    (inherit (gradle-subproject "base-services-groovy" '("gradle-base-services")
                                '("groovy-bootstrap")))
366
367
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
Julien Lepiller's avatar
Julien Lepiller committed
368
       ("groovy-bootstrap" ,groovy-bootstrap)
369
370
       ("java-asm-6" ,java-asm-6)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
371
372
373
374
       ("java-jsr305" ,java-jsr305)))))

(define-public gradle-build-option
  (package
375
    (inherit (gradle-subproject "build-option" '("gradle-cli") '()))
Julien Lepiller's avatar
Julien Lepiller committed
376
377
378
379
    (inputs
     `(("gradle-cli" ,gradle-cli)
       ("java-commons-lang" ,java-commons-lang)
       ("java-jsr305" ,java-jsr305)))))
380
381
382

(define-public gradle-cli
  (package
383
    (inherit (gradle-subproject "cli" '() '()))))
384
385
386

(define-public gradle-native
  (package
387
388
389
390
    (inherit (gradle-subproject "native" '("gradle-base-services")
                                '("java-native-platform" "java-commons-io"
                                  "java-slf4j-api" "java-jansi"
                                  "java-guava-for-gradle")))
391
392
393
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("java-commons-io" ,java-commons-io)
394
       ("java-guava-for-gradle" ,java-guava-for-gradle)
395
396
397
398
399
400
       ("java-jansi" ,java-jansi)
       ("java-jsr305" ,java-jsr305)
       ("java-native-platform" ,java-native-platform)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-messaging
401
402
403
  (let ((base  (gradle-subproject "messaging" '("gradle-base-services")
                                  '("java-slf4j-api" "java-kryo" "java-objenesis"
                                    "java-minlog" "java-reflectasm" "java-asm-6"))))
404
405
406
    (package
      (inherit base)
      (arguments
407
408
409
410
411
412
413
414
415
416
        (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.
                  (substitute* "subprojects/messaging/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedEncoder.java"
                    (("public int getWritePosition")
                     "public long getWritePosition"))
                  #t))))))
417
418
      (inputs
       `(("gradle-base-services" ,gradle-base-services)
Julien Lepiller's avatar
Julien Lepiller committed
419
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
420
         ("java-asm-6" ,java-asm-6)
Julien Lepiller's avatar
Julien Lepiller committed
421
         ("java-commons-lang" ,java-commons-lang)
422
         ("java-guava-for-gradle" ,java-guava-for-gradle)
423
424
         ("java-jsr305" ,java-jsr305)
         ("java-kryo" ,java-kryo)
425
426
427
         ("java-minlog" ,java-minlog)
         ("java-objenesis" ,java-objenesis)
         ("java-reflectasm" ,java-reflectasm)
428
429
         ("java-slf4j-api" ,java-slf4j-api))))))

Julien Lepiller's avatar
Julien Lepiller committed
430
431
(define-public gradle-persistent-cache
  (package
432
433
434
435
436
    (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
437
438
439
440
441
442
443
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-messaging" ,gradle-messaging)
       ("gradle-native" ,gradle-native)
       ("java-commons-collections" ,java-commons-collections)
       ("java-commons-io" ,java-commons-io)
       ("java-commons-lang" ,java-commons-lang)
444
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
445
446
447
448
449
       ("java-jcip-annotations" ,java-jcip-annotations)
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-logging
450
  (package
451
452
453
454
455
456
457
458
    (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"
                 "java-guava-for-gradle" "java-jansi" "java-jansi-native"
                 "java-jcip-annotations")))
459
460
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
Julien Lepiller's avatar
Julien Lepiller committed
461
       ("gradle-build-option" ,gradle-build-option)
462
463
464
       ("gradle-cli" ,gradle-cli)
       ("gradle-messaging" ,gradle-messaging)
       ("gradle-native" ,gradle-native)
Julien Lepiller's avatar
Julien Lepiller committed
465
       ("java-commons-lang" ,java-commons-lang)
466
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
467
468
469
470
471
472
473
474
475
       ("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)))))

(define-public gradle-model-core
  (package
476
477
478
479
480
    (inherit (gradle-subproject
               "model-core"
               '("gradle-base-services-groovy" "gradle-base-services")
               '("groovy-bootstrap" "java-slf4j-api" "java-guava-for-gradle"
                 "java-jcip-annotations" "java-commons-lang" "java-asm-6")))
Julien Lepiller's avatar
Julien Lepiller committed
481
482
483
484
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-base-services-groovy" ,gradle-base-services-groovy)
       ("groovy-bootstrap" ,groovy-bootstrap)
485
       ("java-asm-6" ,java-asm-6)
Julien Lepiller's avatar
Julien Lepiller committed
486
       ("java-commons-lang" ,java-commons-lang)
487
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
488
489
490
491
492
493
       ("java-jcip-annotations" ,java-jcip-annotations)
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-resources
  (package
494
495
496
497
498
    (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
499
500
501
502
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-model-core" ,gradle-model-core)
       ("gradle-native" ,gradle-native)
503
       ("java-commons-io" ,java-commons-io)
504
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
505
506
507
508
       ("java-jsr305" ,java-jsr305)))))

(define-public gradle-build-cache
  (package
509
510
511
512
513
    (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
514
515
516
517
518
519
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-logging" ,gradle-logging)
       ("gradle-persistent-cache" ,gradle-persistent-cache)
       ("gradle-resources" ,gradle-resources)
       ("java-commons-io" ,java-commons-io)
520
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
521
522
523
524
525
526
       ("java-javax-inject" ,java-javax-inject)
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-process-services
  (package
527
528
529
530
    (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
531
532
533
534
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-messaging" ,gradle-messaging)
       ("gradle-native" ,gradle-native)
535
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
536
537
538
539
540
541
       ("java-jsr305" ,java-jsr305)
       ("java-native-platform" ,java-native-platform)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-core-api
  (package
542
543
544
545
546
547
548
549
    (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
550
551
552
553
554
555
556
557
558
559
560
    (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-model-core" ,gradle-model-core)
       ("gradle-persistent-cache" ,gradle-persistent-cache)
       ("gradle-process-services" ,gradle-process-services)
       ("gradle-resources" ,gradle-resources)
       ("groovy-ant" ,groovy-ant)
       ("groovy-bootstrap" ,groovy-bootstrap)
561
       ("java-commons-io" ,java-commons-io)
562
       ("java-commons-lang" ,java-commons-lang)
563
564
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-jcip-annotations" ,java-jcip-annotations)
Julien Lepiller's avatar
Julien Lepiller committed
565
566
567
568
569
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-model-groovy
  (package
570
571
572
573
574
    (inherit (gradle-subproject
               "model-groovy"
               '("gradle-base-services-groovy" "gradle-base-services"
                 "gradle-model-core")
               '("groovy-bootstrap" "java-jcip-annotations" "java-guava-for-gradle")))
Julien Lepiller's avatar
Julien Lepiller committed
575
576
577
578
579
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-base-services-groovy" ,gradle-base-services-groovy)
       ("gradle-model-core" ,gradle-model-core)
       ("groovy-bootstrap" ,groovy-bootstrap)
580
581
       ("java-asm-6" ,java-asm-6)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
Julien Lepiller's avatar
Julien Lepiller committed
582
583
584
585
586
       ("java-jcip-annotations" ,java-jcip-annotations)
       ("java-jsr305" ,java-jsr305)))))

(define-public gradle-jvm-services
  (package
587
588
589
590
    (inherit (gradle-subproject
               "jvm-services"
               '("gradle-base-services" "gradle-process-services")
               '()))
Julien Lepiller's avatar
Julien Lepiller committed
591
592
593
594
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-process-services" ,gradle-process-services)))))

595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
(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")
                '("groovy-ant" "groovy-bootstrap" "groovy-json" "groovy-templates"
                  "groovy-xml" "ant" "java-guava-for-gradle"
                  "java-javax-inject" "java-asm-6" "java-slf4j-api"
                  "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)
         ("groovy-ant" ,groovy-ant)
         ("groovy-bootstrap" ,groovy-bootstrap)
         ("groovy-json" ,groovy-json)
         ("groovy-templates" ,groovy-templates)
         ("groovy-xml" ,groovy-xml)
         ("java-asm-6" ,java-asm-6)
         ("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
681
  (package
682
683
684
685
    (inherit (gradle-subproject "wrapper" '("gradle-cli") '()))
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-cli" ,gradle-cli)))))
Julien Lepiller's avatar
Julien Lepiller committed
686

687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
(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"
                '("gradle-base-services" "gradle-core-api" "gradle-core")
                '("java-asm-6" "java-commons-io" "java-slf4j-api"))))
    (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)
         ("groovy-bootstrap" ,groovy-bootstrap)
         ("java-asm-6" ,java-asm-6)
         ("java-commons-io" ,java-commons-io)
         ("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 _
                   (substitute* "build.xml"
                     (("message=\"")
                      (string-append "message=\"Class-Path: "
                                     "gradle-base-services-4.4.jar "
                                     "gradle-core-api-4.4.jar "
                                     "gradle-core-4.4.jar"
                                     "${line.separator}")))
                   #t))))))))))

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

(define-public gradle-workers
Julien Lepiller's avatar
Julien Lepiller committed
754
  (package
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
    (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")
               '("groovy-bootstrap" "java-jatl" "java-commons-lang")))
Julien Lepiller's avatar
Julien Lepiller committed
776
777
778
    (inputs
     `(("gradle-base-services" ,gradle-base-services)
       ("gradle-base-services-groovy" ,gradle-base-services-groovy)
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
       ("gradle-core" ,gradle-core)
       ("gradle-core-api" ,gradle-core-api)
       ("gradle-logging" ,gradle-logging)
       ("gradle-model-core" ,gradle-model-core)
       ("groovy-bootstrap" ,groovy-bootstrap)
       ("java-commons-lang" ,java-commons-lang)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-jatl" ,java-jatl)
       ("java-javax-inject" ,java-javax-inject)))))

(define-public gradle-resources-http
  (package
    (inherit (gradle-subproject
               "resources-http"
               '("gradle-resources" "gradle-base-services" "gradle-core")
               ;; TODO: jcl-over-slf4j
               '("java-httpcomponents-client" "java-httpcomponents-core"
                 "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
802
       ("gradle-core-api" ,gradle-core-api)
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
       ("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)
       ("java-httpcomponents-client" ,java-httpcomponents-client)
       ("java-httpcomponents-core" ,java-httpcomponents-core)
       ("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)))))

(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
                 '("java-asm-6" "java-commons-lang" "java-commons-io"
                   "java-apache-ivy" "java-slf4j-api" "java-gson"
                   "java-jcip-annotations" "java-bouncycastle-bcprov"
                   "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()"))
                (substitute* "subprojects/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/DefaultBinaryStore.java"
                  (("offset = encoder") "offset = (int)encoder"))
                #t))))))
      (inputs
       `(("gradle-base-services" ,gradle-base-services)
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
         ("gradle-build-cache" ,gradle-build-cache)
         ("gradle-core" ,gradle-core)
         ("gradle-core-api" ,gradle-core-api)
         ("gradle-logging" ,gradle-logging)
         ("gradle-messaging" ,gradle-messaging)
         ("gradle-model-core" ,gradle-model-core)
         ("gradle-native" ,gradle-native)
         ("gradle-persistent-cache" ,gradle-persistent-cache)
         ("gradle-resources" ,gradle-resources)
         ("gradle-resources-http" ,gradle-resources-http)
         ("groovy-bootstrap" ,groovy-bootstrap)
         ("java-apache-ivy" ,java-apache-ivy)
         ("java-asm-6" ,java-asm-6)
Julien Lepiller's avatar
Julien Lepiller committed
866
         ("java-bouncycastle" ,java-bouncycastle)
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
         ("java-commons-io" ,java-commons-io)
         ("java-commons-lang" ,java-commons-lang)
         ("java-gson" ,java-gson)
         ("java-guava-for-gradle" ,java-guava-for-gradle)
         ("java-javax-inject" ,java-javax-inject)
         ("java-jcip-annotations" ,java-jcip-annotations)
         ("java-jsch" ,java-jsch)
         ("java-jsr305" ,java-jsr305)
         ("java-slf4j-api" ,java-slf4j-api)
         ("maven-settings" ,maven-settings)
         ("maven-settings-builder" ,maven-settings-builder))))))

(define-public gradle-platform-base
  (package
    (inherit (gradle-subproject
               "platform-base"
               '("gradle-core" "gradle-dependency-management" "gradle-workers")
               '("java-commons-collections" "groovy-bootstrap")))
    (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-model-core" ,gradle-model-core)
       ("gradle-workers" ,gradle-workers)
       ("groovy-bootstrap" ,groovy-bootstrap)
       ("java-commons-collections" ,java-commons-collections)
       ("java-commons-lang" ,java-commons-lang)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-jsr305" ,java-jsr305)))))

(define-public gradle-testing-base
  (let ((base (gradle-subproject
                "testing-base"
                '("gradle-core" "gradle-reporting" "gradle-platform-base")
                '("java-kryo" "java-objenesis" "java-minlog" "java-reflectasm"
                  "java-asm-6"))))
    (package
      (inherit base)
      (arguments
       (substitute-keyword-arguments (package-arguments base)
        ((#:phases phases)
         `(modify-phases ,phases
            (add-before 'build 'fix
              (lambda _
                (substitute* "subprojects/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/TestOutputStore.java"
                  (("int total = output")
                   "int total = (int)output"))
                #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-logging" ,gradle-logging)
         ("gradle-messaging" ,gradle-messaging)
         ("gradle-model-core" ,gradle-model-core)
         ("gradle-platform-base" ,gradle-platform-base)
         ("gradle-process-services" ,gradle-process-services)
         ("gradle-reporting" ,gradle-reporting)
         ("groovy-bootstrap" ,groovy-bootstrap)
         ("java-asm-6" ,java-asm-6)
Julien Lepiller's avatar
Julien Lepiller committed
930
         ("java-bouncycastle" ,java-bouncycastle)
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
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
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
         ("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-jsr305" ,java-jsr305)
         ("java-kryo" ,java-kryo)
         ("java-minlog" ,java-minlog)
         ("java-objenesis" ,java-objenesis)
         ("java-reflectasm" ,java-reflectasm)
         ("java-slf4j-api" ,java-slf4j-api))))))

(define-public gradle-diagnostics
  (package
    (inherit (gradle-subproject
               "diagnostics"
               '("gradle-dependency-management" "gradle-base-services-groovy"
                 "gradle-core" "gradle-reporting" "gradle-platform-base")
               '("groovy-bootstrap" "groovy-json" "java-guava-for-gradle" "java-jatl"
                 "java-commons-lang" "java-commons-collections")))
    (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-model-core" ,gradle-model-core)
       ("gradle-platform-base" ,gradle-platform-base)
       ("gradle-reporting" ,gradle-reporting)
       ("groovy-bootstrap" ,groovy-bootstrap)
       ("groovy-json" ,groovy-json)
       ("java-commons-collections" ,java-commons-collections)
       ("java-commons-lang" ,java-commons-lang)
       ("java-guava-for-gradle" ,java-guava-for-gradle)
       ("java-jatl" ,java-jatl)
       ("java-javax-inject" ,java-javax-inject)
       ("java-jsr305" ,java-jsr305)
       ("java-slf4j-api" ,java-slf4j-api)))))

(define-public gradle-platform-jvm
  (package
    (inherit (gradle-subproject
               "platform-jvm"
               '("gradle-platform-base" "gradle-core" "gradle-diagnostics")
               '()))
    (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-diagnostics" ,gradle-diagnostics)
       ("gradle-logging" ,gradle-logging)
       ("gradle-model-core" ,gradle-model-core)
       ("gradle-native" ,gradle-native)
       ("gradle-platform-base" ,gradle-platform-base)
       ("gradle-process-services" ,gradle-process-services)
       ("groovy-bootstrap" ,groovy-bootstrap)
       ("java-asm-6" ,java-asm-6)
       ("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-jsr305" ,java-jsr305)))))

(define-public gradle-testing-jvm
  (package
    (inherit (gradle-subproject
               "testing-jvm"
               '("gradle-core" "gradle-platform-jvm" "gradle-language-java"
For faster browsing, not all history is shown. View entire blame