progress on hazelcast

Julien LepillerWed Sep 12 23:57:35+0200 2018

0e3ac21

progress on hazelcast

more/packages/java.scm

17041704
       ;#:test-target "test"
17051705
       #:phases
17061706
       (modify-phases %standard-phases
1707+
         (add-before 'build 'copy-ressources
1708+
           (lambda _
1709+
             (copy-recursively "src/main/resources" "build/classes")
1710+
             #t))
17071711
         (add-before 'build 'remove-unpackaged-dependencies
17081712
	   ;; TODO: package these dependencies
17091713
	   (lambda _

18121816
       (modify-phases %standard-phases
18131817
         (add-before 'build 'copy-resources
18141818
           (lambda _
1815-
             (copy-recursively "hazelcast-core-generator/src/main/resources"
1819+
             (copy-recursively "hazelcast-code-generator/src/main/resources"
18161820
                               "build/classes")
18171821
             #t)))))
18181822
    (inputs

18541858
       #:tests? #f
18551859
       #:phases
18561860
       (modify-phases %standard-phases
1861+
         (add-before 'build 'use-annotation-processor
1862+
           (lambda _
1863+
             (substitute* "build.xml"
1864+
               (("classpath=\"@refidclasspath\" />")
1865+
                "classpath=\"@refidclasspath\">
1866+
     <compilerarg line=\"-processor com.hazelcast.client.protocol.generator.CodecCodeGenerator\"/>
1867+
     <compilerarg line=\"-s hazelcast/src/main/java\"/>
1868+
</javac>")
1869+
               (("<javac") "<javac source=\"1.6\""))
1870+
             #t))
1871+
         (add-before 'build 'fix-renamed-dependencies
1872+
           (lambda _
1873+
             (substitute* '("hazelcast-client/src/main/java/com/hazelcast/client/spi/impl/AwsAddressProvider.java"
1874+
                            "hazelcast-client/src/main/java/com/hazelcast/client/spi/impl/discovery/HazelcastCloudDiscovery.java")
1875+
               (("com.hazelcast.com.eclipsesource.json") "com.eclipsesource.json"))
1876+
             (substitute* "hazelcast-client/src/main/java/com/hazelcast/client/spi/impl/AwsAddressProvider.java"
1877+
               (("com.hazelcast.aws.AWSClient") "aws.AWSClient"))
1878+
             #t))
18571879
         (add-before 'build 'unpack-client-protocol
18581880
           (lambda* (#:key inputs #:allow-other-keys)
18591881
             (display (assoc-ref inputs "java-hazelcast-client-protocol-source"))

18651887
             (for-each delete-file (find-files "." "package-info.java"))
18661888
             #t)))))
18671889
    (inputs
1868-
     `(("java-findbugs" ,java-findbugs)
1890+
     `(("java-commons-logging-minimal" ,java-commons-logging-minimal)
1891+
       ("java-apache-freemarker" ,java-apache-freemarker)
1892+
       ("java-hazelcast-code-generator" ,java-hazelcast-code-generator)
1893+
       ("java-hazelcast-client-protocol-source" ,java-hazelcast-client-protocol-source)
18691894
       ("java-jsr107" ,java-jsr107)
18701895
       ("java-jsr305" ,java-jsr305)
1896+
       ("java-log4j-1.2-api" ,java-log4j-1.2-api)
1897+
       ("java-log4j-api" ,java-log4j-api)
18711898
       ("java-minimal-json" ,java-minimal-json)
1872-
       ("java-hazelcast-client-protocol-source" ,java-hazelcast-client-protocol-source)))
1899+
       ("java-osgi-core" ,java-osgi-core)
1900+
       ("java-slf4j-api" ,java-slf4j-api)
1901+
       ("java-spotbugs-annotations" ,java-spotbugs-annotations)))
18731902
    (home-page "https://hazelcast.org")
18741903
    (synopsis "")
18751904
    (description "")