[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/18: gnu: Add java-gson-2.8.6.
From: |
guix-commits |
Subject: |
13/18: gnu: Add java-gson-2.8.6. |
Date: |
Wed, 5 May 2021 11:00:24 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 45915d331a30d1d2a256b917fd3eb9a9eec17f10
Author: Mike Gerwitz <mtg@gnu.org>
AuthorDate: Thu Apr 15 21:23:42 2021 -0400
gnu: Add java-gson-2.8.6.
This introduces a new package rather than upgrading the exist java-gson
package because it is built using OpenJDK11; I didn't want to have to
propagate that JDK dependency to the other packages that use it.
OpenJDK 11 was chosen becuase this dependency was introduced for
tla2tools.
* gnu/packages/java.scm (java-gson-2.8.6): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/java.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index cdfaae1..c3048a8 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -15,6 +15,7 @@
;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Vincent Legoll <vincent.legoll@gmail.com>
+;;; Copyright © 2021 Mike Gerwitz <mtg@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -11762,6 +11763,37 @@ string to an equivalent Java object. Gson can work
with arbitrary Java objects
including pre-existing objects that you do not have source-code of.")
(license license:asl2.0)))
+;; This requires a different Java version than 2.8.2 above
+(define-public java-gson-2.8.6
+ (package
+ (inherit java-gson)
+ (name "java-gson")
+ (version "2.8.6")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/google/gson")
+ (commit (string-append "gson-parent-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0kk5p3vichdb0ph1lzknrcpbklgnmq455mngmjpxvvj29p3rgpk3"))))
+ (arguments
+ `(#:jar-name "gson.jar"
+ #:jdk ,openjdk11
+ #:source-dir "gson/src/main/java"
+ #:test-dir "gson/src/test"
+ #:phases
+ (modify-phases %standard-phases
+ ;; avoid Maven dependency
+ (add-before 'build 'fill-template
+ (lambda _
+ (with-directory-excursion "gson/src/main"
+ (copy-file
"java-templates/com/google/gson/internal/GsonBuildConfig.java"
+ "java/com/google/gson/internal/GsonBuildConfig.java")
+ (substitute*
"java/com/google/gson/internal/GsonBuildConfig.java"
+ (("\\$\\{project.version\\}") ,version))))))))))
+
(define-public java-hawtjni
(package
(name "java-hawtjni")
- branch master updated (da7f89c -> f30e8f2), guix-commits, 2021/05/05
- 02/18: gnu: lepton-eda: Switch to Guile 3.0., guix-commits, 2021/05/05
- 07/18: gnu: Add libcerf., guix-commits, 2021/05/05
- 11/18: gnu: racket: Racket inherits racket-minimal, not vice versa., guix-commits, 2021/05/05
- 13/18: gnu: Add java-gson-2.8.6.,
guix-commits <=
- 12/18: gnu: racket: Add aditional mirrors., guix-commits, 2021/05/05
- 17/18: gnu: Add java-jline-reader., guix-commits, 2021/05/05
- 06/18: gnu: Add castget., guix-commits, 2021/05/05
- 01/18: swh: Adjust for compatibility with Guile 2.2's (web client)., guix-commits, 2021/05/05
- 09/18: gnu: racket: Move to (gnu packages racket)., guix-commits, 2021/05/05
- 18/18: gnu: Add tla2tools., guix-commits, 2021/05/05
- 14/18: gnu: Add java-eclipse-xtext-xbase-lib., guix-commits, 2021/05/05
- 16/18: gnu: Add java-jline-terminal., guix-commits, 2021/05/05
- 03/18: cvs-download: Fix module exports, guix-commits, 2021/05/05
- 04/18: gnu: xboard: Set default engine to gnuchess., guix-commits, 2021/05/05