Skip to content

Commit 0189e19

Browse files
committed
Add in project licensing
1 parent f9b07de commit 0189e19

File tree

8 files changed

+449
-6
lines changed

8 files changed

+449
-6
lines changed

HEADER.txt

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
This file is part of ${projectName}.
2+
3+
Copyright (c) ${orgInceptionYear} ${orgName} <${orgUrl}/>
4+
${projectName} is licensed under the ZephyrUnleashed License Version 1.
5+
6+
${projectName} is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU Lesser General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
In addition, 180 days after any changes are published, you can use the
12+
software, incorporating those changes, under the terms of the MIT license,
13+
as described in the ZephyrUnleashed License Version 1.
14+
15+
${projectName} is distributed in the hope that it will be useful,
16+
but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
GNU Lesser General Public License for more details.
19+
20+
You should have received a copy of the GNU Lesser General Public License,
21+
the MIT license and the ZephyrUnleashed License Version 1 along with this program.
22+
If not, see <http://www.gnu.org/licenses/> for the GNU Lesser General Public
23+
License.

LICENSE.txt

+217
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
1+
The dual license described in this file is called the ZephyrUnleashed License
2+
Version 1.
3+
4+
-----------------------------------------------------------------------
5+
6+
The software is licensed under the LGPL version 3.0.
7+
8+
In addition, the software as it existed no less than 180 days previously,
9+
is licensed under the MIT license. For clarity, files in a state that
10+
includes changes published less than 180 days previously, are NOT licensed
11+
under the MIT license. However, files in a state that only includes changes
12+
published more than 180 days previously, are licensed under the MIT license.
13+
14+
The files, originating from the Glowstone and Lightstone projects, were
15+
licensed by their respective authors under the MIT license. However,
16+
any subsequent changes made as part of this project are licensed in
17+
accordance with this license.
18+
19+
The LGPL version 3.0 license and the MIT license, including copyright
20+
notice relating to the GlowStone and LightStone projects, are provided
21+
below.
22+
23+
-----------------------------------------------------------------------
24+
25+
GNU LESSER GENERAL PUBLIC LICENSE
26+
Version 3, 29 June 2007
27+
28+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
29+
Everyone is permitted to copy and distribute verbatim copies
30+
of this license document, but changing it is not allowed.
31+
32+
33+
This version of the GNU Lesser General Public License incorporates
34+
the terms and conditions of version 3 of the GNU General Public
35+
License, supplemented by the additional permissions listed below.
36+
37+
0. Additional Definitions.
38+
39+
As used herein, "this License" refers to version 3 of the GNU Lesser
40+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
41+
General Public License.
42+
43+
"The Library" refers to a covered work governed by this License,
44+
other than an Application or a Combined Work as defined below.
45+
46+
An "Application" is any work that makes use of an interface provided
47+
by the Library, but which is not otherwise based on the Library.
48+
Defining a subclass of a class defined by the Library is deemed a mode
49+
of using an interface provided by the Library.
50+
51+
A "Combined Work" is a work produced by combining or linking an
52+
Application with the Library. The particular version of the Library
53+
with which the Combined Work was made is also called the "Linked
54+
Version".
55+
56+
The "Minimal Corresponding Source" for a Combined Work means the
57+
Corresponding Source for the Combined Work, excluding any source code
58+
for portions of the Combined Work that, considered in isolation, are
59+
based on the Application, and not on the Linked Version.
60+
61+
The "Corresponding Application Code" for a Combined Work means the
62+
object code and/or source code for the Application, including any data
63+
and utility programs needed for reproducing the Combined Work from the
64+
Application, but excluding the System Libraries of the Combined Work.
65+
66+
1. Exception to Section 3 of the GNU GPL.
67+
68+
You may convey a covered work under sections 3 and 4 of this License
69+
without being bound by section 3 of the GNU GPL.
70+
71+
2. Conveying Modified Versions.
72+
73+
If you modify a copy of the Library, and, in your modifications, a
74+
facility refers to a function or data to be supplied by an Application
75+
that uses the facility (other than as an argument passed when the
76+
facility is invoked), then you may convey a copy of the modified
77+
version:
78+
79+
a) under this License, provided that you make a good faith effort to
80+
ensure that, in the event an Application does not supply the
81+
function or data, the facility still operates, and performs
82+
whatever part of its purpose remains meaningful, or
83+
84+
b) under the GNU GPL, with none of the additional permissions of
85+
this License applicable to that copy.
86+
87+
3. Object Code Incorporating Material from Library Header Files.
88+
89+
The object code form of an Application may incorporate material from
90+
a header file that is part of the Library. You may convey such object
91+
code under terms of your choice, provided that, if the incorporated
92+
material is not limited to numerical parameters, data structure
93+
layouts and accessors, or small macros, inline functions and templates
94+
(ten or fewer lines in length), you do both of the following:
95+
96+
a) Give prominent notice with each copy of the object code that the
97+
Library is used in it and that the Library and its use are
98+
covered by this License.
99+
100+
b) Accompany the object code with a copy of the GNU GPL and this license
101+
document.
102+
103+
4. Combined Works.
104+
105+
You may convey a Combined Work under terms of your choice that,
106+
taken together, effectively do not restrict modification of the
107+
portions of the Library contained in the Combined Work and reverse
108+
engineering for debugging such modifications, if you also do each of
109+
the following:
110+
111+
a) Give prominent notice with each copy of the Combined Work that
112+
the Library is used in it and that the Library and its use are
113+
covered by this License.
114+
115+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
116+
document.
117+
118+
c) For a Combined Work that displays copyright notices during
119+
execution, include the copyright notice for the Library among
120+
these notices, as well as a reference directing the user to the
121+
copies of the GNU GPL and this license document.
122+
123+
d) Do one of the following:
124+
125+
0) Convey the Minimal Corresponding Source under the terms of this
126+
License, and the Corresponding Application Code in a form
127+
suitable for, and under terms that permit, the user to
128+
recombine or relink the Application with a modified version of
129+
the Linked Version to produce a modified Combined Work, in the
130+
manner specified by section 6 of the GNU GPL for conveying
131+
Corresponding Source.
132+
133+
1) Use a suitable shared library mechanism for linking with the
134+
Library. A suitable mechanism is one that (a) uses at run time
135+
a copy of the Library already present on the user's computer
136+
system, and (b) will operate properly with a modified version
137+
of the Library that is interface-compatible with the Linked
138+
Version.
139+
140+
e) Provide Installation Information, but only if you would otherwise
141+
be required to provide such information under section 6 of the
142+
GNU GPL, and only to the extent that such information is
143+
necessary to install and execute a modified version of the
144+
Combined Work produced by recombining or relinking the
145+
Application with a modified version of the Linked Version. (If
146+
you use option 4d0, the Installation Information must accompany
147+
the Minimal Corresponding Source and Corresponding Application
148+
Code. If you use option 4d1, you must provide the Installation
149+
Information in the manner specified by section 6 of the GNU GPL
150+
for conveying Corresponding Source.)
151+
152+
5. Combined Libraries.
153+
154+
You may place library facilities that are a work based on the
155+
Library side by side in a single library together with other library
156+
facilities that are not Applications and are not covered by this
157+
License, and convey such a combined library under terms of your
158+
choice, if you do both of the following:
159+
160+
a) Accompany the combined library with a copy of the same work based
161+
on the Library, uncombined with any other library facilities,
162+
conveyed under the terms of this License.
163+
164+
b) Give prominent notice with the combined library that part of it
165+
is a work based on the Library, and explaining where to find the
166+
accompanying uncombined form of the same work.
167+
168+
6. Revised Versions of the GNU Lesser General Public License.
169+
170+
The Free Software Foundation may publish revised and/or new versions
171+
of the GNU Lesser General Public License from time to time. Such new
172+
versions will be similar in spirit to the present version, but may
173+
differ in detail to address new problems or concerns.
174+
175+
Each version is given a distinguishing version number. If the
176+
Library as you received it specifies that a certain numbered version
177+
of the GNU Lesser General Public License "or any later version"
178+
applies to it, you have the option of following the terms and
179+
conditions either of that published version or of any later version
180+
published by the Free Software Foundation. If the Library as you
181+
received it does not specify a version number of the GNU Lesser
182+
General Public License, you may choose any version of the GNU Lesser
183+
General Public License ever published by the Free Software Foundation.
184+
185+
If the Library as you received it specifies that a proxy can decide
186+
whether future versions of the GNU Lesser General Public License shall
187+
apply, that proxy's public statement of acceptance of any version is
188+
permanent authorization for you to choose that version for the
189+
Library.
190+
191+
-----------------------------------------------------------------------
192+
193+
For information purposes, the license file from the Glowstone project
194+
follows. This is the license referred to as the MIT license in the
195+
first paragraph.
196+
197+
Glowstone Copyright (C) 2011 Tad Hardesty.
198+
Lightstone Copyright (C) 2010-2011 Graham Edgecombe.
199+
ZephyrUnleashed Copyright (C) 2011 ZephyrUnleashed.
200+
201+
Permission is hereby granted, free of charge, to any person obtaining a copy
202+
of this software and associated documentation files (the "Software"), to deal
203+
in the Software without restriction, including without limitation the rights
204+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
205+
copies of the Software, and to permit persons to whom the Software is
206+
furnished to do so, subject to the following conditions:
207+
208+
The above copyright notice and this permission notice shall be included in
209+
all copies or substantial portions of the Software.
210+
211+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
212+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
213+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
214+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
215+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
216+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
217+
THE SOFTWARE.

pom.xml

+84-6
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,96 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>co.zmc</groupId>
5-
<artifactId>SolarCraft</artifactId>
5+
<artifactId>solarcraft</artifactId>
66
<version>0.0.1-SNAPSHOT</version>
77
<name>SolarCraft</name>
8+
<inceptionYear>2013</inceptionYear>
9+
<url>https://github.com/ZephyrMC-Dev/SolarCraft</url>
10+
11+
<parent>
12+
<groupId>net.md-5</groupId>
13+
<artifactId>ForgeMod</artifactId>
14+
<version>1.6.2-9.10.0-SNAPSHOT</version>
15+
</parent>
16+
17+
<organization>
18+
<name>ZephyrUnleashed LLC</name>
19+
<url>http://www.zephyrunleashed.com</url>
20+
</organization>
21+
22+
<licenses>
23+
<license>
24+
<name>ZephyrUnleashed License Version 1</name>
25+
<url>http://zephyrunleashed.com/licensev1</url>
26+
<distribution>repo</distribution>
27+
<comments>GNU Lesser General Public License Version 3, but with a provision that files are released under the MIT license 180 days after they are published</comments>
28+
</license>
29+
</licenses>
30+
831
<repositories>
932
<repository>
1033
<id>repo-zmc</id>
1134
<url>http://repo.zephyr-mc.com/content/groups/public</url>
1235
</repository>
1336
</repositories>
14-
<parent>
15-
<groupId>net.md-5</groupId>
16-
<artifactId>ForgeMod</artifactId>
17-
<version>1.6.2-9.10.0-SNAPSHOT</version>
18-
</parent>
37+
38+
<build>
39+
<defaultGoal>clean package</defaultGoal>
40+
<sourceDirectory>${project.basedir}/src</sourceDirectory>
41+
<finalName>${project.name}</finalName>
42+
<resources>
43+
<resource>
44+
<filtering>false</filtering>
45+
<directory>${project.basedir}</directory>
46+
<targetPath>.</targetPath>
47+
<includes>
48+
<include>LICENSE.txt</include>
49+
</includes>
50+
</resource>
51+
</resources>
52+
<plugins>
53+
<plugin>
54+
<groupId>com.mycila.maven-license-plugin</groupId>
55+
<artifactId>maven-license-plugin</artifactId>
56+
<version>1.10.b1</version>
57+
<executions>
58+
<execution>
59+
<configuration>
60+
<properties>
61+
<projectName>${project.name}</projectName>
62+
<orgUrl>${project.organization.url}</orgUrl>
63+
<orgInceptionYear>${project.inceptionYear}</orgInceptionYear>
64+
<orgName>${project.organization.name}</orgName>
65+
</properties>
66+
<quiet>true</quiet>
67+
<encoding>UTF-8</encoding>
68+
<strictCheck>true</strictCheck>
69+
<header>${project.basedir}/HEADER.txt</header>
70+
<mapping>
71+
<java>SLASHSTAR_STYLE</java>
72+
</mapping>
73+
<keywords>
74+
<keyword>${project.name}</keyword>
75+
<keyword>license</keyword>
76+
</keywords>
77+
<includes>
78+
<include>src/main/java/co/zmc/**</include>
79+
</includes>
80+
<excludes>
81+
<exclude>**/README.md</exclude>
82+
<exclude>**/TODO.md</exclude>
83+
<exclude>**/LICENSE.txt</exclude>
84+
<exclude>src/test/resources/**</exclude>
85+
<exclude>src/main/resources/**</exclude>
86+
</excludes>
87+
</configuration>
88+
<goals>
89+
<goal>format</goal>
90+
</goals>
91+
<phase>clean</phase>
92+
</execution>
93+
</executions>
94+
</plugin>
95+
</plugins>
96+
</build>
1997
</project>

src/main/java/co/zmc/solarcraft/Globals.java

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
/*
2+
* This file is part of SolarCraft.
3+
*
4+
* Copyright (c) 2013 ZephyrUnleashed LLC <http://www.zephyrunleashed.com/>
5+
* SolarCraft is licensed under the ZephyrUnleashed License Version 1.
6+
*
7+
* SolarCraft is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* In addition, 180 days after any changes are published, you can use the
13+
* software, incorporating those changes, under the terms of the MIT license,
14+
* as described in the ZephyrUnleashed License Version 1.
15+
*
16+
* SolarCraft is distributed in the hope that it will be useful,
17+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19+
* GNU Lesser General Public License for more details.
20+
*
21+
* You should have received a copy of the GNU Lesser General Public License,
22+
* the MIT license and the ZephyrUnleashed License Version 1 along with this program.
23+
* If not, see <http://www.gnu.org/licenses/> for the GNU Lesser General Public
24+
* License.
25+
*/
126
package co.zmc.solarcraft;
227

328
public class Globals {

0 commit comments

Comments
 (0)