Skip to content

Commit 46d802f

Browse files
committed
test server
1 parent c936941 commit 46d802f

File tree

7 files changed

+156
-113
lines changed

7 files changed

+156
-113
lines changed

.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# https://editorconfig.org
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.java]
11+
indent_size = 4
12+
13+
[*.{json, toml, xml, yml}]
14+
indent_size = 2
15+
16+
[*.md]
17+
max_line_length = 424242
18+
trim_trailing_whitespace = false

.gitignore

+28-113
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,28 @@
1-
# User-specific stuff
2-
.idea/
3-
4-
*.iml
5-
*.ipr
6-
*.iws
7-
8-
# IntelliJ
9-
out/
10-
11-
# Compiled class file
12-
*.class
13-
14-
# Log file
15-
*.log
16-
17-
# BlueJ files
18-
*.ctxt
19-
20-
# Package Files #
21-
*.jar
22-
*.war
23-
*.nar
24-
*.ear
25-
*.zip
26-
*.tar.gz
27-
*.rar
28-
29-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
30-
hs_err_pid*
31-
32-
*~
33-
34-
# temporary files which can be created if a process still has a handle open of a deleted file
35-
.fuse_hidden*
36-
37-
# KDE directory preferences
38-
.directory
39-
40-
# Linux trash folder which might appear on any partition or disk
41-
.Trash-*
42-
43-
# .nfs files are created when an open file is removed but is still being accessed
44-
.nfs*
45-
46-
# General
47-
.DS_Store
48-
.AppleDouble
49-
.LSOverride
50-
51-
# Icon must end with two \r
52-
Icon
53-
54-
# Thumbnails
55-
._*
56-
57-
# Files that might appear in the root of a volume
58-
.DocumentRevisions-V100
59-
.fseventsd
60-
.Spotlight-V100
61-
.TemporaryItems
62-
.Trashes
63-
.VolumeIcon.icns
64-
.com.apple.timemachine.donotpresent
65-
66-
# Directories potentially created on remote AFP share
67-
.AppleDB
68-
.AppleDesktop
69-
Network Trash Folder
70-
Temporary Items
71-
.apdisk
72-
73-
# Windows thumbnail cache files
74-
Thumbs.db
75-
Thumbs.db:encryptable
76-
ehthumbs.db
77-
ehthumbs_vista.db
78-
79-
# Dump file
80-
*.stackdump
81-
82-
# Folder config file
83-
[Dd]esktop.ini
84-
85-
# Recycle Bin used on file shares
86-
$RECYCLE.BIN/
87-
88-
# Windows Installer files
89-
*.cab
90-
*.msi
91-
*.msix
92-
*.msm
93-
*.msp
94-
95-
# Windows shortcuts
96-
*.lnk
97-
98-
target/
99-
100-
pom.xml.tag
101-
pom.xml.releaseBackup
102-
pom.xml.versionsBackup
103-
pom.xml.next
104-
105-
release.properties
106-
dependency-reduced-pom.xml
107-
buildNumber.properties
108-
.mvn/timing.properties
109-
.mvn/wrapper/maven-wrapper.jar
110-
.flattened-pom.xml
111-
112-
# Common working directory
113-
run/
1+
# ignore all files
2+
*
3+
# but include directories
4+
!*/
5+
6+
# git
7+
!/**/.gitkeep
8+
!/.gitignore
9+
!/.gitmodules
10+
11+
# java
12+
!/src/**
13+
14+
# maven
15+
!/**/pom.xml
16+
17+
# submodules
18+
!/convenience
19+
20+
# runtime dependencies
21+
!/plugin-dependencies/**
22+
23+
# misc
24+
!/.github/**
25+
!/.run/**
26+
!/*.md
27+
!/.editorconfig
28+
!/LICENSE

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "convenience"]
2+
path = convenience
3+
url = https://github.com/nothub/convenience.git

convenience

Submodule convenience added at 7a4ca0f
770 KB
Binary file not shown.
4.46 MB
Binary file not shown.

pom.xml

+106
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,112 @@
5656
</resources>
5757
</build>
5858

59+
<profiles>
60+
<profile>
61+
<id>run-test-server</id>
62+
<properties>
63+
<build.profile.id>run-test-server</build.profile.id>
64+
<skip.integration.tests>false</skip.integration.tests>
65+
<skip.unit.tests>false</skip.unit.tests>
66+
</properties>
67+
<build>
68+
<defaultGoal>verify</defaultGoal>
69+
<plugins>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-clean-plugin</artifactId>
73+
<version>3.1.0</version>
74+
<configuration>
75+
<filesets>
76+
<fileset>
77+
<directory>server</directory>
78+
<followSymlinks>false</followSymlinks>
79+
</fileset>
80+
</filesets>
81+
</configuration>
82+
</plugin>
83+
<plugin>
84+
<groupId>org.codehaus.mojo</groupId>
85+
<artifactId>exec-maven-plugin</artifactId>
86+
<version>3.0.0</version>
87+
<executions>
88+
<execution>
89+
<id>mc-server-setup</id>
90+
<phase>pre-integration-test</phase>
91+
<goals>
92+
<goal>exec</goal>
93+
</goals>
94+
<configuration>
95+
<executable>convenience/server-setup.py</executable>
96+
<arguments>
97+
<argument>--fork</argument>
98+
<argument>paper</argument>
99+
<argument>--mc-version</argument>
100+
<argument>${minecraft.version}</argument>
101+
<argument>--server-dir</argument>
102+
<argument>server</argument>
103+
<argument>--link-name</argument>
104+
<argument>server.jar</argument>
105+
<argument>--copy-plugins</argument>
106+
<argument>target/${project.artifactId}-*.jar</argument>
107+
<argument>plugin-dependencies/PlaceholderAPI-*.jar</argument>
108+
<argument>plugin-dependencies/ProtocolLib-*.jar</argument>
109+
</arguments>
110+
<environmentVariables>
111+
<!-- dont publish this file ever without commenting the MC_EULA var, its not legal to automate -->
112+
<MC_EULA>true</MC_EULA>
113+
</environmentVariables>
114+
</configuration>
115+
</execution>
116+
<execution>
117+
<id>mc-server-run</id>
118+
<phase>integration-test</phase>
119+
<goals>
120+
<goal>exec</goal>
121+
</goals>
122+
<configuration>
123+
<workingDirectory>server</workingDirectory>
124+
<executable>java</executable>
125+
<arguments>
126+
<argument>-Xms2G</argument>
127+
<argument>-Xmx2G</argument>
128+
<argument>-XX:+UseG1GC</argument>
129+
<argument>-XX:+ParallelRefProcEnabled</argument>
130+
<argument>-XX:MaxGCPauseMillis=200</argument>
131+
<argument>-XX:+UnlockExperimentalVMOptions</argument>
132+
<argument>-XX:+DisableExplicitGC</argument>
133+
<argument>-XX:+AlwaysPreTouch</argument>
134+
<argument>-XX:G1HeapWastePercent=5</argument>
135+
<argument>-XX:G1MixedGCCountTarget=4</argument>
136+
<argument>-XX:G1MixedGCLiveThresholdPercent=90</argument>
137+
<argument>-XX:G1RSetUpdatingPauseTimePercent=5</argument>
138+
<argument>-XX:SurvivorRatio=32</argument>
139+
<argument>-XX:+PerfDisableSharedMem</argument>
140+
<argument>-XX:MaxTenuringThreshold=1</argument>
141+
<argument>-XX:G1NewSizePercent=30</argument>
142+
<argument>-XX:G1MaxNewSizePercent=40</argument>
143+
<argument>-XX:G1HeapRegionSize=8M</argument>
144+
<argument>-XX:G1ReservePercent=20</argument>
145+
<argument>-XX:InitiatingHeapOccupancyPercent=15</argument>
146+
<argument>-Dusing.aikars.flags=https://mcflags.emc.gs</argument>
147+
<argument>-Daikars.new.flags=true</argument>
148+
<argument>-jar</argument>
149+
<argument>server.jar</argument>
150+
<argument>nogui</argument>
151+
</arguments>
152+
</configuration>
153+
</execution>
154+
</executions>
155+
<configuration>
156+
<environmentVariables>
157+
<LANG>en_US</LANG>
158+
</environmentVariables>
159+
</configuration>
160+
</plugin>
161+
</plugins>
162+
</build>
163+
</profile>
164+
</profiles>
59165

60166
<repositories>
61167
<repository>

0 commit comments

Comments
 (0)