guix: java-utils: Look for actual jar files.

* guix/build/java-utils.scm (install-from-pom): Fix `find-files` to look
only for jar files.
This commit is contained in:
Julien Lepiller 2021-06-01 00:44:21 +02:00
parent cc09453862
commit 7f902d368d
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82

@ -125,7 +125,7 @@ the phase fails."
version ".jar"))))
;; Otherwise, we try to find any jar file.
(jars (if (null? jars)
(find-files "." ".*.jar")
(find-files "." "\\.jar$")
jars))
(jar-name (string-append repository artifact "-" version ".jar"))
(pom-name (string-append repository artifact "-" version ".pom")))