BSD Ports

devel/gson 2.14.0 FreeBSD

Java library to convert Java Objects into JSON and back

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Port added
Last update
Commit
7db0ddb848
License
APACHE20
Categories
devel, java
Package size
273.4 KiB, 316.4 KiB installed

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 objects including pre-existing objects that you do not have source-code of.

There are a few open-source projects that can convert Java objects to JSON. However, most of them require that you place Java annotations in your classes; something that you can not do if you do not have access to the source-code. Most also do not fully support the use of Java Generics. Gson considers both of these as very important design goals.

Install

Binary package:

pkg install gson

From the ports tree:

cd /usr/ports/devel/gson/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	gson>0:devel/gson

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.14.02.14.0--2.14.0
FreeBSD:14:quarterly2.14.02.14.0n/a-2.14.0
FreeBSD:15:latest2.14.02.14.0n/a--
FreeBSD:15:quarterly2.14.02.14.0n/an/an/a
FreeBSD:16:latest2.14.02.14.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Run dependencies 53

Configuration

No options to configure.

USES
java:run
Service scripts
none

Files

distinfo 2
FileSizeSHA256
gson-2.14.0.jar3136042cbd119bf1961c28788310963dc80ba65f58cdeec1dd139c8bdb1240faa2c36f
LICENSE3344273d03da960cf6049e1e81a3bc1a88c8a619ce97437793f6db0b21c47ff10eafec
Master sites 1
  • https://repo1.maven.org/maven2/com/google/code/gson/gson/${PORTVERSION}/

Commit history 1

DateCommitCreditsLog message
7db0ddb848 Thierry Thomas devel/gson: new port, Java library to convert Java Objects into JSON
This is a basic port, just to install a dependency used by Scilab. It uses a pre-built jar provided by Maven.