more gradle subprojects

Julien LepillerSun Jun 17 13:06:08+0200 2018

54d5ed6

more gradle subprojects

more/packages/gradle.scm

11221122
       ("gradle-dependency-management" ,gradle-dependency-management)
11231123
       ("gradle-launcher" ,gradle-launcher)
11241124
       ("gradle-logging" ,gradle-logging)
1125+
       ("gradle-messaging" ,gradle-messaging)
11251126
       ("gradle-model-core" ,gradle-model-core)
11261127
       ("groovy" ,groovy)
11271128
       ("java-guava-for-gradle" ,java-guava-for-gradle)
11281129
       ("java-javax-inject" ,java-javax-inject)
1130+
       ("java-jsr305" ,java-jsr305)
11291131
       ("java-slf4j-api" ,java-slf4j-api)))))
11301132
11311133
(define-public gradle-language-jvm

15341536
                             "-C" "build/classes" ".")
15351537
             #t)))))))))
15361538
1539+
(define-public gradle-announce
1540+
  (let ((base (gradle-subproject
1541+
                "announce"
1542+
                '("gradle-core")
1543+
                '("java-commons-codec" "java-commons-io" "java-slf4j-api"))))
1544+
    (package
1545+
      (inherit base)
1546+
      (inputs
1547+
       `(("gradle-base-services" ,gradle-base-services)
1548+
         ("gradle-core" ,gradle-core)
1549+
         ("gradle-core-api" ,gradle-core-api)
1550+
         ("gradle-logging" ,gradle-logging)
1551+
         ("gradle-model-core" ,gradle-model-core)
1552+
         ("gradle-process-services" ,gradle-process-services)
1553+
         ("java-commons-codec" ,java-commons-codec)
1554+
         ("java-commons-io" ,java-commons-io)
1555+
         ("java-slf4j-api" ,java-slf4j-api))))))
1556+
1557+
(define-public gradle-antlr
1558+
  (let ((base (gradle-subproject
1559+
                "antlr"
1560+
                '("gradle-core" "gradle-plugins" "gradle-workers")
1561+
                '("java-slf4j-api"))))
1562+
    (package
1563+
      (inherit base)
1564+
      (inputs
1565+
       `(("antlr2" ,antlr2)
1566+
         ("gradle-base-services" ,gradle-base-services)
1567+
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
1568+
         ("gradle-core" ,gradle-core)
1569+
         ("gradle-core-api" ,gradle-core-api)
1570+
         ("gradle-logging" ,gradle-logging)
1571+
         ("gradle-model-core" ,gradle-model-core)
1572+
         ("gradle-plugins" ,gradle-plugins)
1573+
         ("gradle-process-services" ,gradle-process-services)
1574+
         ("groovy" ,groovy)
1575+
         ("java-guava-for-gradle" ,java-guava-for-gradle)
1576+
         ("java-javax-inject" ,java-javax-inject)
1577+
         ("java-jsr305" ,java-jsr305)
1578+
         ("java-slf4j-api" ,java-slf4j-api))))))
1579+
1580+
(define-public gradle-build-cache-http
1581+
  (let ((base (gradle-subproject
1582+
                "build-cache-http"
1583+
                '("gradle-resources" "gradle-resources-http"
1584+
                  "gradle-base-services" "gradle-core")
1585+
                ; TODO: jcl-over-slf4j-1.7.16.jar
1586+
                '("java-httpcomponents-httpclient" "java-httpcomponents-httpcore"
1587+
                  "java-commons-codec" "java-slf4j-api" "java-commons-lang"))))
1588+
    (package
1589+
      (inherit base)
1590+
      (inputs
1591+
       `(("gradle-base-services" ,gradle-base-services)
1592+
         ("gradle-build-cache" ,gradle-build-cache)
1593+
         ("grade-core" ,gradle-core)
1594+
         ("grade-core-api" ,gradle-core-api)
1595+
         ("gradle-model-core" ,gradle-model-core)
1596+
         ("gradle-resources" ,gradle-resources)
1597+
         ("gradle-resources-http" ,gradle-resources-http)
1598+
         ("java-commons-codec" ,java-commons-codec)
1599+
         ("java-commons-lang" ,java-commons-lang)
1600+
         ("java-guava-for-gradle" ,java-guava-for-gradle)
1601+
         ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient)
1602+
         ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore)
1603+
         ("java-javax-inject" ,java-javax-inject)
1604+
         ("java-jsr305" ,java-jsr305)
1605+
         ("java-slf4j-api" ,java-slf4j-api))))))
1606+
1607+
(define-public gradle-ear
1608+
  (let ((base (gradle-subproject
1609+
                "ear"
1610+
                '("gradle-core" "gradle-plugins")
1611+
                '("java-javax-inject"))))
1612+
    (package
1613+
      (inherit base)
1614+
      (inputs
1615+
       `(("gradle-base-services" ,gradle-base-services)
1616+
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
1617+
         ("gradle-core" ,gradle-core)
1618+
         ("gradle-core-api" ,gradle-core-api)
1619+
         ("gradle-logging" ,gradle-logging)
1620+
         ("gradle-model-core" ,gradle-model-core)
1621+
         ("gradle-native" ,gradle-native)
1622+
         ("gradle-platform-jvm" ,gradle-platform-jvm)
1623+
         ("gradle-plugins" ,gradle-plugins)
1624+
         ("groovy" ,groovy)
1625+
         ("java-commons-io" ,java-commons-io)
1626+
         ("java-commons-lang" ,java-commons-lang)
1627+
         ("java-guava-for-gradle" ,java-guava-for-gradle)
1628+
         ("java-javax-inject" ,java-javax-inject)
1629+
         ("java-jsr305" ,java-jsr305))))))
1630+
1631+
(define-public gradle-build-comparison
1632+
  (let ((base (gradle-groovy-subproject
1633+
                "build-comparison"
1634+
                '("gradle-resources" "gradle-core" "gradle-tooling-api"
1635+
                  "gradle-reporting" "gradle-plugins" "gradle-ear")
1636+
                '("groovy" "java-guava-for-gradle" "java-slf4j-api"))))
1637+
    (package
1638+
      (inherit base)
1639+
      (arguments
1640+
       (substitute-keyword-arguments (package-arguments base)
1641+
         ((#:source-dir source-dir)
1642+
          `(string-append "subprojects/build-comparison/src/main/java:"
1643+
                          "subprojects/build-comparison/src/main/groovy"))))
1644+
      (inputs
1645+
       `(("gradle-base-services" ,gradle-base-services)
1646+
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
1647+
         ("gradle-core" ,gradle-core)
1648+
         ("gradle-core-api" ,gradle-core-api)
1649+
         ("gradle-ear" ,gradle-ear)
1650+
         ("gradle-logging" ,gradle-logging)
1651+
         ("gradle-model-core" ,gradle-model-core)
1652+
         ("gradle-platform-jvm" ,gradle-platform-jvm)
1653+
         ("gradle-plugins" ,gradle-plugins)
1654+
         ("gradle-reporting" ,gradle-reporting)
1655+
         ("gradle-resources" ,gradle-resources)
1656+
         ("gradle-tooling-api" ,gradle-tooling-api)
1657+
         ("groovy" ,groovy)
1658+
         ("java-commons-io" ,java-commons-io)
1659+
         ("java-commons-lang" ,java-commons-lang)
1660+
         ("java-guava-for-gradle" ,java-guava-for-gradle)
1661+
         ("java-javax-inject" ,java-javax-inject)
1662+
         ("java-slf4j-api" ,java-slf4j-api))))))
1663+
1664+
(define-public gradle-build-init
1665+
  (let ((base (gradle-groovy-subproject
1666+
                "build-init"
1667+
                '("gradle-core" "gradle-plugins" "gradle-wrapper")
1668+
                '("groovy" "java-junit" "java-hamcrest-all" "java-guava-for-gradle"
1669+
                  "java-plexus-classworlds" "java-plexus-container-default"
1670+
                  "java-plexus-interpolation" "java-plexus-utils"
1671+
                  "java-slf4j-api"
1672+
                  "maven-artifact" "maven-compat" "maven-core" "maven-model"
1673+
                  "maven-model-builder" "maven-repository-metadata" "maven-plugin-api"
1674+
                  "maven-resolver-api" "maven-resolver-impl" "maven-resolver-spi"
1675+
                  "maven-resolver-util"
1676+
                  "maven-settings" "maven-settings-builder"))))
1677+
    ; TODO:
1678+
    ; xbean-reflect jcl-over-slf4j log4j-over-slf4j
1679+
    ; plexus-component-annotations
1680+
    ; wagon-provider-api
1681+
    ; plexus-sec-dispatcher plexus-cipher
1682+
    ; maven-aether-provider
1683+
    (package
1684+
      (inherit base)
1685+
      (arguments
1686+
       (substitute-keyword-arguments (package-arguments base)
1687+
         ((#:source-dir source-dir)
1688+
          `(string-append "subprojects/build-init/src/main/java:"
1689+
                          "subprojects/build-init/src/main/groovy"))
1690+
         ((#:phases phases)
1691+
          `(modify-phases ,phases
1692+
             (add-before 'build 'fix-aether
1693+
               (lambda _
1694+
                 ;; We use maven-resolver, instead of aether-resolver, so fix it:
1695+
                 (substitute* (find-files "subprojects/build-init" ".*.java")
1696+
                   (("org.sonatype.aether") "org.eclipse.aether")
1697+
                   (("org.eclipse.aether.util.DefaultRepositorySystemSession")
1698+
                    "org.eclipse.aether.DefaultRepositorySystemSession"))
1699+
                 #t))))))
1700+
      (inputs
1701+
       `(("gradle-base-services" ,gradle-base-services)
1702+
         ("gradle-base-services-groovy" ,gradle-base-services-groovy)
1703+
         ("gradle-core" ,gradle-core)
1704+
         ("gradle-core-api" ,gradle-core-api)
1705+
         ("gradle-dependency-management" ,gradle-dependency-management)
1706+
         ("gradle-logging" ,gradle-logging)
1707+
         ("gradle-model-core" ,gradle-model-core)
1708+
         ("gradle-plugins" ,gradle-plugins)
1709+
         ("gradle-wrapper" ,gradle-wrapper)
1710+
         ("groovy" ,groovy)
1711+
         ("java-commons-lang" ,java-commons-lang)
1712+
         ("java-guava-for-gradle" ,java-guava-for-gradle)
1713+
         ("java-hamcrest-all" ,java-hamcrest-all)
1714+
         ("java-javax-inject" ,java-javax-inject)
1715+
         ("java-jsr305" ,java-jsr305)
1716+
         ("java-junit" ,java-junit)
1717+
         ("java-plexus-classworlds" ,java-plexus-classworlds)
1718+
         ("java-plexus-container-default" ,java-plexus-container-default)
1719+
         ("java-plexus-interpolation" ,java-plexus-interpolation)
1720+
         ("java-plexus-utils" ,java-plexus-utils)
1721+
         ("java-slf4j-api" ,java-slf4j-api)
1722+
         ("maven-artifact" ,maven-artifact)
1723+
         ("maven-compat" ,maven-compat)
1724+
         ("maven-core" ,maven-core)
1725+
         ("maven-model" ,maven-model)
1726+
         ("maven-model-builder" ,maven-model-builder)
1727+
         ("maven-repository-metadata" ,maven-repository-metadata)
1728+
         ("maven-plugin-api" ,maven-plugin-api)
1729+
         ("maven-resolver-api" ,maven-resolver-api)
1730+
         ("maven-resolver-impl" ,maven-resolver-impl)
1731+
         ("maven-resolver-spi" ,maven-resolver-spi)
1732+
         ("maven-resolver-util" ,maven-resolver-util)
1733+
         ("maven-settings" ,maven-settings)
1734+
         ("maven-settings-builder" ,maven-settings-builder))))))
1735+
15371736
;; This package doesn't work. I need to understand how api-mapping.txt and
15381737
;; default-imports.txt are generated. Currently they are generated by a custom
15391738
;; task defined in buildsrc that is run by gradle, but we don't have enough of

27762975
                             "gradle-language-jvm"
27772976
                             "gradle-language-java"
27782977
                             "gradle-language-groovy"
2978+
                             "gradle-ear"
27792979
                             "gradle-diagnostics"
27802980
                             "gradle-dependency-management"
2981+
                             "gradle-build-comparison"
2982+
                             "gradle-composite-builds"
2983+
                             "gradle-build-init"
2984+
                             "gradle-build-cache-http"
2985+
                             "gradle-antlr"
2986+
                             "gradle-announce"
27812987
                             "java-apache-ivy"
27822988
                             "java-bouncycastle"
27832989
                             "java-bsh"

27953001
                             "java-testng"
27963002
                             "java-junit"
27973003
                             "java-nekohtml"
2798-
                             "java-xerces"))
3004+
                             "java-plexus-classworlds"
3005+
                             "java-plexus-container-default"
3006+
                             "java-plexus-interpolation"
3007+
                             "java-plexus-utils"
3008+
                             "java-xerces"
3009+
                             "maven-artifact"
3010+
                             "maven-compat"
3011+
                             "maven-core"
3012+
                             "maven-model"
3013+
                             "maven-model-builder"
3014+
                             "maven-repository-metadata"
3015+
                             "maven-plugin-api"
3016+
                             "maven-resolver-api"
3017+
                             "maven-resolver-impl"
3018+
                             "maven-resolver-spi"
3019+
                             "maven-resolver-util"
3020+
                             "maven-settings"
3021+
                             "maven-settings-builder"))
27993022
                          ;; java-asm-6 and java-jansi are already present in groovy.
28003023
                          (dependencies 
28013024
                           '("gradle-wrapper"

29083131
       ("gradle-jvm-services"          ,gradle-jvm-services)
29093132
       ("gradle-internal-testing"      ,gradle-internal-testing)
29103133
       ("gradle-installation-beacon"   ,gradle-installation-beacon)
3134+
       ("gradle-ear"                   ,gradle-ear)
29113135
       ("gradle-docs"                  ,gradle-docs)
29123136
       ("gradle-diagnostics"           ,gradle-diagnostics)
29133137
       ("gradle-dependency-management" ,gradle-dependency-management)
29143138
       ("gradle-core-api"              ,gradle-core-api)
29153139
       ("gradle-core"                  ,gradle-core)
3140+
       ("gradle-composite-builds"      ,gradle-composite-builds)
29163141
       ("gradle-cli"                   ,gradle-cli)
29173142
       ("gradle-build-option"          ,gradle-build-option)
3143+
       ("gradle-build-init"            ,gradle-build-init)
3144+
       ("gradle-build-comparison"      ,gradle-build-comparison)
3145+
       ("gradle-build-cache-http"      ,gradle-build-cache-http)
29183146
       ("gradle-build-cache"           ,gradle-build-cache)
29193147
       ("gradle-base-services-groovy"  ,gradle-base-services-groovy)
29203148
       ("gradle-base-services"         ,gradle-base-services)
3149+
       ("gradle-antlr"                 ,gradle-antlr)
3150+
       ("gradle-announce"              ,gradle-announce)
29213151
       ("groovy" ,groovy)
29223152
       ("icedtea-8" ,icedtea-8)
29233153
       ("java-asm-6" ,java-asm-6)

29523182
       ("java-native-platform" ,java-native-platform)
29533183
       ("java-nekohtml" ,java-nekohtml)
29543184
       ("java-objenesis" ,java-objenesis)
3185+
       ("java-plexus-classworlds" ,java-plexus-classworlds)
3186+
       ("java-plexus-container-default" ,java-plexus-container-default)
3187+
       ("java-plexus-interpolation" ,java-plexus-interpolation)
3188+
       ("java-plexus-utils" ,java-plexus-utils)
29553189
       ("java-reflectasm" ,java-reflectasm)
29563190
       ("java-slf4j-api" ,java-slf4j-api)
29573191
       ("java-snakeyaml" ,java-snakeyaml)
29583192
       ("java-testng" ,java-testng)
29593193
       ("java-xerces" ,java-xerces)
3194+
       ("maven-artifact" ,maven-artifact)
3195+
       ("maven-compat" ,maven-compat)
3196+
       ("maven-core" ,maven-core)
3197+
       ("maven-model" ,maven-model)
3198+
       ("maven-model-builder" ,maven-model-builder)
3199+
       ("maven-repository-metadata" ,maven-repository-metadata)
3200+
       ("maven-plugin-api" ,maven-plugin-api)
3201+
       ("maven-resolver-api" ,maven-resolver-api)
3202+
       ("maven-resolver-impl" ,maven-resolver-impl)
3203+
       ("maven-resolver-spi" ,maven-resolver-spi)
3204+
       ("maven-resolver-util" ,maven-resolver-util)
3205+
       ("maven-settings" ,maven-settings)
3206+
       ("maven-settings-builder" ,maven-settings-builder)
29603207
       ("ant" ,ant)
29613208
       ("bash" ,bash)))
29623209
    (native-inputs '())))