[bug#75038,03/14] gnu: Add java-commons-io-2.18.

Message ID 5892e22f7270c3b3a6ca4e958fce694904306dc4.1734907747.git.h.goebel@crazy-compilers.com
State New
Headers
Series [bug#75038,01/14] gnu: Add apache-parent-pom-33. |

Commit Message

Hartmut Goebel Dec. 22, 2024, 10:51 p.m. UTC
  * gnu/packages/java.scm (java-commons-io--latest): New variable.
---
 gnu/packages/java.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
  

Patch

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 118f055970..ed895d8dbf 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5956,6 +5956,31 @@  (define-public java-commons-io
 file filters and endian classes.")
     (license license:asl2.0)))
 
+(define-public java-commons-io--latest
+  (package
+    (inherit java-commons-io)
+    (version "2.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://apache/commons/io/source/"
+                           "commons-io-" version "-src.tar.gz"))
+       (sha256
+        (base32
+         "0cr9ryhdbk4gz6bbcdqdd28d80dik8csv2fx7h6mx7yfxgbjsrf4"))))
+    (outputs '("out"))
+    (arguments
+     `(#:tests? #f  ;; tests require too many not yet packaged packages
+       #:source-dir "src/main/java"
+       #:jar-name "commons-io.jar"
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'install (install-from-pom "pom.xml")))))
+    (native-inputs
+     (list))
+    (propagated-inputs
+     (list apache-commons-parent-pom-78))))
+
 (define-public java-commons-exec-1.1
   (package
     (name "java-commons-exec")