Skip to content

Commit b27b767

Browse files
committed
Release ZomboidDoc v3.0.0
Resolves: #56
2 parents 8b3346f + 2203345 commit b27b767

File tree

105 files changed

+526
-468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+526
-468
lines changed

.idea/runConfigurations/Annotate_Lua.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Compile_Lua.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Read [Commands](#commands) and [Examples](#examples) section for more informatio
6969
Here is an overview list of available commands:
7070

7171
- `help` - print command usage info for all available commands.
72-
- `version` - print Project Zomboid game installation version.
72+
- `version` - print application and game version information.
7373
- `annotate` - annotate vanilla Lua files with EmmyLua.
7474
- `compile` - compile Lua library from modding API.
7575

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ apply from: 'setup.gradle'
2424
apply from: 'spotless.gradle'
2525
apply from: 'distribution.gradle'
2626

27-
group 'io.yooksi'
28-
version '2.2.0'
27+
group 'io.cocolabs'
28+
version file('version.txt').readLines().get(0)
2929

3030
wrapper {
3131
distributionType = Wrapper.DistributionType.ALL
3232
}
3333

3434
application {
35-
mainClassName = 'io.yooksi.pz.zdoc.Main'
35+
mainClassName = 'io.cocolabs.pz.zdoc.Main'
3636
}
3737

3838
java {

buildSrc/src/main/java/ZUnixStartScriptGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.io.InputStream;
2020
import java.io.Writer;
2121
import java.nio.charset.Charset;
22+
import java.nio.charset.StandardCharsets;
2223
import java.util.Map;
2324
import java.util.Objects;
2425
import java.util.regex.Matcher;
@@ -36,7 +37,7 @@
3637
@NonNullApi
3738
public class ZUnixStartScriptGenerator implements ScriptGenerator {
3839

39-
private static final Charset CHARSET = Charset.defaultCharset();
40+
private static final Charset CHARSET = StandardCharsets.UTF_8;
4041
private static final ClassLoader CL = ZUnixStartScriptGenerator.class.getClassLoader();
4142

4243
private static final String[] CLASSPATH_ADDENDUM = new String[]{

buildSrc/src/main/java/ZWindowsStartScriptGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.io.InputStream;
2020
import java.io.Writer;
2121
import java.nio.charset.Charset;
22+
import java.nio.charset.StandardCharsets;
2223
import java.util.Map;
2324
import java.util.Objects;
2425
import java.util.regex.Matcher;
@@ -36,7 +37,7 @@
3637
@NonNullApi
3738
public class ZWindowsStartScriptGenerator implements ScriptGenerator {
3839

39-
private static final Charset CHARSET = Charset.defaultCharset();
40+
private static final Charset CHARSET = StandardCharsets.UTF_8;
4041
private static final ClassLoader CL = ZWindowsStartScriptGenerator.class.getClassLoader();
4142

4243
private static final String[] CLASSPATH_ADDENDUM = new String[]{

distribution.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ tasks.register("generateChangelog", Exec.class) {
5858

5959
distributions.main.contents {
6060
it.from ('README.md', 'LICENSE.txt', 'CHANGELOG.md')
61+
// version.txt is used by version command
62+
it.from(projectDir) {
63+
it.include 'version.txt'
64+
}
6165
it.exclude {
6266
File file = it.file
6367
String filename = file.getName()

src/intTest/java/io/yooksi/pz/zdoc/IntegrationTest.java renamed to src/intTest/java/io/cocolabs/pz/zdoc/IntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* ZomboidDoc - Lua library compiler for Project Zomboid
3-
* Copyright (C) 2021 Matthew Cain
3+
* Copyright (C) 2020-2021 Matthew Cain
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515
* You should have received a copy of the GNU General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
18-
package io.yooksi.pz.zdoc;
18+
package io.cocolabs.pz.zdoc;
1919

2020
import java.io.File;
2121
import java.io.IOException;

src/intTest/java/io/yooksi/pz/zdoc/MainTest.java renamed to src/intTest/java/io/cocolabs/pz/zdoc/MainTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* ZomboidDoc - Lua library compiler for Project Zomboid
3-
* Copyright (C) 2021 Matthew Cain
3+
* Copyright (C) 2020-2021 Matthew Cain
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -15,13 +15,13 @@
1515
* You should have received a copy of the GNU General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
18-
package io.yooksi.pz.zdoc;
18+
package io.cocolabs.pz.zdoc;
1919

2020
import java.util.List;
2121

2222
import org.jetbrains.annotations.TestOnly;
2323

24-
import io.yooksi.pz.zdoc.cmd.Command;
24+
import io.cocolabs.pz.zdoc.cmd.Command;
2525

2626
class MainTest extends TestWorkspace implements IntegrationTest {
2727

src/intTest/java/io/yooksi/pz/zdoc/compile/JavaCompilerIntTest.java renamed to src/intTest/java/io/cocolabs/pz/zdoc/compile/JavaCompilerIntTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* ZomboidDoc - Lua library compiler for Project Zomboid
3-
* Copyright (C) 2021 Matthew Cain
3+
* Copyright (C) 2020-2021 Matthew Cain
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@
1515
* You should have received a copy of the GNU General Public License
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
18-
package io.yooksi.pz.zdoc.compile;
18+
package io.cocolabs.pz.zdoc.compile;
1919

2020
import java.io.File;
2121
import java.io.IOException;
@@ -30,7 +30,7 @@
3030
import org.junit.jupiter.api.Test;
3131
import org.opentest4j.AssertionFailedError;
3232

33-
import io.yooksi.pz.zdoc.IntegrationTest;
33+
import io.cocolabs.pz.zdoc.IntegrationTest;
3434

3535
class JavaCompilerIntTest implements IntegrationTest {
3636

0 commit comments

Comments
 (0)