From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id VVFLNhPBd2Bg3gAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 06:29:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id m0fGLRPBd2C5TQAA1q6Kng (envelope-from ) for ; Thu, 15 Apr 2021 04:29:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7561620702 for ; Thu, 15 Apr 2021 06:29:07 +0200 (CEST) Received: from localhost ([::1]:53322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWtco-0000ZH-I7 for larch@yhetil.org; Thu, 15 Apr 2021 00:29:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWtck-0000Yy-L0 for guix-patches@gnu.org; Thu, 15 Apr 2021 00:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWtck-0001kd-DJ for guix-patches@gnu.org; Thu, 15 Apr 2021 00:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWtck-0007iA-AN for guix-patches@gnu.org; Thu, 15 Apr 2021 00:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47789] [PATCH 1/6] gnu: Add java-gson-2.8.6. Resent-From: Mike Gerwitz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 15 Apr 2021 04:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47789 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47789@debbugs.gnu.org Received: via spool by 47789-submit@debbugs.gnu.org id=B47789.161846093129573 (code B ref 47789); Thu, 15 Apr 2021 04:29:02 +0000 Received: (at 47789) by debbugs.gnu.org; 15 Apr 2021 04:28:51 +0000 Received: from localhost ([127.0.0.1]:36212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWtcZ-0007gs-6f for submit@debbugs.gnu.org; Thu, 15 Apr 2021 00:28:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWtcW-0007gb-M4 for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 00:28:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57378) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWtcR-0001UQ-Dw for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 00:28:43 -0400 Received: from localhost ([::1]:48853 helo=mikegerwitz-pc) by fencepost.gnu.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lWtcQ-00063m-4g for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 00:28:42 -0400 From: Mike Gerwitz In-Reply-To: Date: Thu, 15 Apr 2021 00:25:10 -0400 References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) X-From-Line: 0bb3e905602bcba367d14ad4ff20ef3caa54f72b Mon Sep 17 00:00:00 2001 Message-Id: <0bb3e905602bcba367d14ad4ff20ef3caa54f72b.1618460450.git.mtg@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618460947; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=ZpFKPGgd8qcQGPkHR/73JQzr+DtLxeeQ5K39jbr2TaA=; b=qHQ1iHV0rFkNvyuKuRb55LCah3vEK0jeflsRAtjmUX9tSltc3Levw8jkMKTVKnZ6QU69IN PYpQB6x8mqNcACSy6UmGYVPKN/vj+DH1KDA2iRNatgEbspOgb8oK9xWTgN4P8vdRSgfxpm /qN2lLtEoMEkYu/a3hlOIjpCizUarfAMYFC8tGklMqWH/7WMeSp15ZYoJMXwfACdUZzJ82 cSxeOTbrSRaI+Tx3fxoX+N8zLhZGxg8TQ/7pVbyJGV0sq033CmEPNPhPVAdY0eQ98vrHUC FGVm6yZg2tfBE3ptvEQ0hXKCx3SdWh3kjwpgmwBjbJt2DEKnFDfGyWx4sWufeA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618460947; a=rsa-sha256; cv=none; b=amisXJvMwH4yPuaw9utzxwM/cYSE8n2mVQr7TeLzkksP1I0rJOFtQCF/ZruJIN+JAOPbh5 vYJsbcUHRf/MDRN7EqecwqPeUnNfcAeMLtzDJ1W2+u3Nhgak0aXZAKt4IT+q9gNADzw4Yn 4UWjiRcE1dIjgCoPHerUEp4g+Jnb8UaR9E/mgtWGdywl9FVVii1QBgMT9S7vLFGMYYyDAk JXdlN0sDMrQ/9MXsiMZ7/cmMZGy7/CZSGcUa9IT7yTv6G26VI/KjIgGujhura6gxcJ6do5 1eI2hIJxCN8ASxPcR96Dr13i5e8kxBV1xBNAWxAaF9gOlswvn8cY9TCFED1/yA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 7561620702 X-Spam-Score: -2.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: StzG4pq0nRcH --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. =2D-- gnu/packages/java.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 207f136513..fe75404e9c 100644 =2D-- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -15,6 +15,7 @@ ;;; Copyright =C2=A9 2020 Raghav Gururajan ;;; Copyright =C2=A9 2020 Maxim Cournoyer ;;; Copyright =C2=A9 2021 Vincent Legoll +;;; Copyright =C2=A9 2021 Mike Gerwitz ;;; ;;; This file is part of GNU Guix. ;;; @@ -11724,6 +11725,48 @@ string to an equivalent Java object. Gson can wor= k with arbitrary Java objects including pre-existing objects that you do not have source-code of.") (license license:asl2.0))) =20 +;; This requires a different Java version than 2.8.2 above +(define-public java-gson-2.8.6 + (package + (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")))) + (build-system ant-build-system) + (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/GsonBui= ldConfig.java" + "java/com/google/gson/internal/GsonBuildConfig.j= ava") + (substitute* "java/com/google/gson/internal/GsonBuildConfig= .java" + (("\\$\\{project.version\\}") ,version))) + #t))))) + (native-inputs + `(("java-junit" ,java-junit) + ("java-hamcrest-core" ,java-hamcrest-core))) + (home-page "https://github.com/google/gson") + (synopsis "Java serialization/deserialization library from/to JSON") + (description "Gson is a Java library that can be used to convert Java +Objects into their JSON representation. It can also be used to convert a = JSON +string to an equivalent Java object. Gson can work with arbitrary Java ob= jects +including pre-existing objects that you do not have source-code of.") + (license license:asl2.0))) + (define-public java-hawtjni (package (name "java-hawtjni") =2D-=20 Mike Gerwitz Activist For User Freedom | GNU Maintainer & Volunteer GPG: D6E9 B930 028A 6C38 F43B 2388 FEF6 3574 5E6F 6D05 https://mikegerwitz.com --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEtyLNo03iHAANpWtgjJF7f13FG6IFAmB3wCgACgkQjJF7f13F G6KmKA/+OS2SnWXIdcRLvPzy0C2fJxdCVRN76GJy5i3g9OU0ZrEBOtdGGBdnt9wL jSkuOb+9dnGz198B+g6bZAJ0/w+0SvaSUF7m1iD0scOc52KbWQ1MFxtZYUICJ5K9 ow+Hfi9+ldMujgXNFaAzxKhyEbHiGVBlucDLGiXmvRMAUTICSkCGIC6AyEloM2Bh 82M5K+/fMFR9oX1tkYn9H9rsvoq1TVxGaAvYzcss+aj/VttvmQPPfW9fd/ubyAZc TtOioybWTz65/5RouZSTsUcOyE5A/A0s78f408XJ6KlJvndmR8JUgnecbneHLteJ Bea0Sntn62MV3YxxCyBYR33Q00l+WyFhT97NADFJg4f/Ig7JGdxOz3/tflHh3XQI nzf9L/4Ci6y608oXYS5C562RMgzLwg9SWZaj++KBWkV5sXNUkP0DTZyYzt1o6hMY DS0EG/Z8G6iCh9bKum71EE7D5BdVqcZJPjTd8cZjYG454DstiTF6LqGSamAcHfeo AjQyLVkSrJFNi+kFxmaMOJo5QsHnsMLFs09RCiC/x/UEq70WEbsrwP3wazsg5NtN 72Jvyo6EjHzRbMpPJMkkqqtUFiuPM6HK9k2StHeqT68PFr0YMC6oy0VM9ZsD+Gyh jkA6D7I4UTxiw9DiFUq5HaGLziXsaqeN9fH7PglCNjgf557tOJs= =1Mmw -----END PGP SIGNATURE----- --=-=-=--