Skip to content

Commit 7d1e3d3

Browse files
committed
初期コミット
0 parents  commit 7d1e3d3

14 files changed

+873
-0
lines changed

.gitignore

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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/

.run/BuildCopy.run.xml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="BuildCopy" type="ShConfigurationType">
3+
<option name="SCRIPT_TEXT" value="" />
4+
<option name="INDEPENDENT_SCRIPT_PATH" value="false" />
5+
<option name="SCRIPT_PATH" value="$PROJECT_DIR$/.run/build.ps1" />
6+
<option name="SCRIPT_OPTIONS" value="" />
7+
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
8+
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
9+
<option name="INDEPENDENT_INTERPRETER_PATH" value="false" />
10+
<option name="INTERPRETER_PATH" value="C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe" />
11+
<option name="INTERPRETER_OPTIONS" value="-ExecutionPolicy Bypass -File" />
12+
<option name="EXECUTE_IN_TERMINAL" value="true" />
13+
<option name="EXECUTE_SCRIPT_FILE" value="true" />
14+
<envs />
15+
<method v="2">
16+
<option name="Maven.BeforeRunTask" enabled="true" file="$PROJECT_DIR$/pom.xml" goal="install" />
17+
</method>
18+
</configuration>
19+
</component>

.run/Dev.run.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Dev" type="JarApplication">
3+
<option name="JAR_PATH" value="$PROJECT_DIR$/run/paper.jar" />
4+
<option name="PROGRAM_PARAMETERS" value="nogui" />
5+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$\run" />
6+
<option name="ALTERNATIVE_JRE_PATH" />
7+
<method v="2" />
8+
</configuration>
9+
</component>

.run/DevBuild.run.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="DevBuild" type="JarApplication">
3+
<option name="JAR_PATH" value="$PROJECT_DIR$/run/paper.jar" />
4+
<option name="PROGRAM_PARAMETERS" value="nogui" />
5+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$\run" />
6+
<option name="ALTERNATIVE_JRE_PATH" />
7+
<method v="2">
8+
<option name="RunConfigurationTask" enabled="true" run_configuration_name="BuildCopy" run_configuration_type="ShConfigurationType" />
9+
</method>
10+
</configuration>
11+
</component>

.run/build.ps1

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# pluginsディレクトリに最新のプラグインをコピーするスクリプト
2+
3+
Write-Host "-> Start Copying..."
4+
5+
# 現在のディレクトリを設定 (プロジェクトルート = .runの一つ上のディレクトリ)
6+
Set-Location $(Split-Path $PSScriptRoot -Parent)
7+
8+
# プラグインのディレクトリを作成
9+
New-Item -ItemType Directory -Force -Path "run\plugins" | Out-Null
10+
11+
# Mavenの出力ディレクトリからアイテムを取得する
12+
Get-ChildItem -Path target\*.jar -Exclude original-*.jar |
13+
# -sources.jarや-shaded.jarなど(-小文字)の末尾のないjarのみをコピーする
14+
Where-Object { $_.Name -cNotMatch '-[a-z]+\.jar' } |
15+
# 編集日でソートする
16+
Sort-Object LastWriteTime -Descending |
17+
# プラグイン名をオブジェクトに追加
18+
Select-Object -Property *, @{
19+
Name = 'PluginName'
20+
Expression = {
21+
# 名前以外の情報(バージョン情報など)を除去する
22+
$pos = $_.Name.IndexOf("-")
23+
$_.Name.Substring(0, $pos)
24+
}
25+
} |
26+
# プラグイン名でグループ化
27+
Group-Object -Property PluginName |
28+
# 最新のプラグインのみを取得する
29+
ForEach-Object { $_.Group | Select-Object -First 1 } |
30+
# ファイルをコピーする
31+
ForEach-Object {
32+
Copy-Item $_.FullName -Destination run\plugins\$($_.PluginName).jar -Force
33+
Write-Host "~ target\$($_.Name) -> run\plugins\$($_.PluginName).jar"
34+
}
35+
36+
Write-Host "-> Done!"

.run/install.run.xml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="install" type="MavenRunConfiguration" factoryName="Maven">
3+
<MavenSettings>
4+
<option name="myGeneralSettings" />
5+
<option name="myRunnerSettings" />
6+
<option name="myRunnerParameters">
7+
<MavenRunnerParameters>
8+
<option name="profiles">
9+
<set />
10+
</option>
11+
<option name="goals">
12+
<list>
13+
<option value="install" />
14+
</list>
15+
</option>
16+
<option name="pomFileName" />
17+
<option name="profilesMap">
18+
<map />
19+
</option>
20+
<option name="resolveToWorkspace" value="false" />
21+
<option name="workingDirPath" value="$PROJECT_DIR$" />
22+
</MavenRunnerParameters>
23+
</option>
24+
</MavenSettings>
25+
<method v="2" />
26+
</configuration>
27+
</component>

pom.xml

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>net.kunmc.lab</groupId>
8+
<artifactId>SchemUploader</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<packaging>jar</packaging>
11+
12+
<name>SchemUploader</name>
13+
14+
<properties>
15+
<java.version>1.8</java.version>
16+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17+
</properties>
18+
19+
<build>
20+
<plugins>
21+
<plugin>
22+
<groupId>org.apache.maven.plugins</groupId>
23+
<artifactId>maven-compiler-plugin</artifactId>
24+
<version>3.8.1</version>
25+
<configuration>
26+
<source>${java.version}</source>
27+
<target>${java.version}</target>
28+
</configuration>
29+
</plugin>
30+
<plugin>
31+
<groupId>org.apache.maven.plugins</groupId>
32+
<artifactId>maven-shade-plugin</artifactId>
33+
<version>3.2.4</version>
34+
<executions>
35+
<execution>
36+
<phase>package</phase>
37+
<goals>
38+
<goal>shade</goal>
39+
</goals>
40+
<configuration>
41+
<createDependencyReducedPom>false</createDependencyReducedPom>
42+
</configuration>
43+
</execution>
44+
</executions>
45+
</plugin>
46+
</plugins>
47+
<resources>
48+
<resource>
49+
<directory>src/main/resources</directory>
50+
<filtering>true</filtering>
51+
</resource>
52+
</resources>
53+
</build>
54+
55+
<repositories>
56+
<repository>
57+
<id>papermc-repo</id>
58+
<url>https://repo.papermc.io/repository/maven-public/</url>
59+
</repository>
60+
<repository>
61+
<id>sonatype</id>
62+
<url>https://oss.sonatype.org/content/groups/public/</url>
63+
</repository>
64+
<repository>
65+
<id>jitpack.io</id>
66+
<url>https://jitpack.io</url>
67+
</repository>
68+
</repositories>
69+
70+
<dependencies>
71+
<dependency>
72+
<groupId>com.destroystokyo.paper</groupId>
73+
<artifactId>paper-api</artifactId>
74+
<version>1.16.5-R0.1-SNAPSHOT</version>
75+
<scope>provided</scope>
76+
</dependency>
77+
<dependency>
78+
<groupId>com.github.TeamKun.CommandLib</groupId>
79+
<artifactId>bukkit</artifactId>
80+
<version>0.12.4</version>
81+
</dependency>
82+
<dependency>
83+
<groupId>com.squareup.okhttp</groupId>
84+
<artifactId>okhttp</artifactId>
85+
<version>2.7.5</version>
86+
</dependency>
87+
<dependency>
88+
<groupId>com.google.code.gson</groupId>
89+
<artifactId>gson</artifactId>
90+
<version>2.8.0</version>
91+
<scope>provided</scope>
92+
</dependency>
93+
</dependencies>
94+
</project>

0 commit comments

Comments
 (0)