OSDN Git Service

Update README about CLI license
[dictzip-java/dictzip-java.git] / README.md
1 # dictzip-java
2 DictZip, GZip random access compression format(.dz), access library for Java
3
4 [_![Download](https://api.bintray.com/packages/dictzip/maven/dictzip-lib/images/download.svg) ](https://bintray.com/dictzip/maven/dictzip-lib/_latestVersion)
5
6 ## Usage
7
8 Extract archive in directory. If you want to use just library, `dictzip-lib.jar`
9 is an only file for you.
10 CLI is also made for example of API usage and will be a good reference.
11 Also there is a javadoc of DictZip at https://miurahr.github.io/dictzip-java
12
13 ### from maven/gradle
14
15 dictzip library is registered at JCenter repository. You can download
16 from JCenter specifying as follows:
17
18 ```
19 org.dict.zip:dictzip-lib:0.8.2
20 ```
21
22 ## Build
23
24 DictZip for java uses Gradle for build system. You can build library and CLI
25 by typing command:
26
27 ```
28 $ gradle build
29 ```
30
31 You will find archive files at
32
33 ```
34 dictzip-cli/build/distributions/dictzip-<version>.tgz
35 dictzip-cli/build/distributions/dictzip-<version>.zip
36 ```
37
38 ## Contribution
39
40 As usual of other projects hosted on GitHub, DictZip for java also welcome
41 forking source and send modification as a Pull Request.
42 It is recommended to post an issue before sending a patch.
43
44
45 ## Dependencies
46
47 DictZip library does not depend on any project without Java standard libraries.
48
49 DictZip CLI utility depends on some libraries.
50 It depends on JFrog bintray JCenter repository.
51
52 ### Runtime depenency
53
54 - java-getopts library(GPLv2+)
55
56 ### Test dependency
57
58 - TestNG framework(Apache2)
59 - Northside IO library(Apache2)
60
61
62 ## Copyrights and License
63
64 DictZip library for Java and command line utility.
65
66 Copyright (C) 2001-2004 Ho Ngoc Duc
67
68 Copyright (C) 2016 Hiroshi Miura
69
70 Some part of this program are come from a part of jdictd 1.5 on java.
71
72 DictZip command line utility is distributed under the terms of GNU General
73 Public License Version 2 or (at your option) any later version.
74
75 DictZip library is distributed under the terms of the GNU General Public License
76 Version 2 or (at your option) any later version with the following clarification
77 and special exception as same as GNU classpath.
78
79 Linking this library statically or dynamically with other modules is making
80 a combined work based on this library. Thus, the terms and conditions of
81 the GNU General Public License cover the whole combination.
82
83 As a special exception, the copyright holders of this library give you permission
84 to link this library with independent modules to produce an executable, regardless
85 of the license terms of these independent modules, and to copy and distribute
86 the resulting executable under terms of your choice, provided that you also meet,
87 for each linked independent module, the terms and conditions of the license of
88 that module. An independent module is a module which is not derived from or based on
89 this library. If you modify this library, you may extend this exception to
90 your version of the library, but you are not obligated to do so. If you do not wish
91 to do so, delete this exception statement from your version.
92
93 As such, it can be used to run, create and distribute a large class of applications
94 and applets. When this library is used unmodified as the core class library
95 for a virtual machine, compiler for the java languge, or for a program written
96 in the java programming language it does not affect the licensing for distributing
97 those programs directly.