Skip to content

Commit a9d2d6a

Browse files
committed
feat: init project
0 parents  commit a9d2d6a

11 files changed

Lines changed: 304 additions & 0 deletions

File tree

.classpath

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21">
4+
<attributes>
5+
<attribute name="maven.pomderived" value="true"/>
6+
</attributes>
7+
</classpathentry>
8+
<classpathentry including="**/*.java" kind="src" output="target/classes" path="src">
9+
<attributes>
10+
<attribute name="optional" value="true"/>
11+
<attribute name="maven.pomderived" value="true"/>
12+
</attributes>
13+
</classpathentry>
14+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
15+
<attributes>
16+
<attribute name="maven.pomderived" value="true"/>
17+
</attributes>
18+
</classpathentry>
19+
<classpathentry kind="output" path="target/classes"/>
20+
</classpath>

.github/workflows/build.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build & Release
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 21
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '21'
23+
distribution: 'temurin'
24+
cache: maven
25+
26+
- name: Build with Maven
27+
run: mvn -B clean package
28+
29+
- name: Upload plugin JAR
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: YTChat
33+
path: target/ytchat-*-jar-with-dependencies.jar
34+
35+
release:
36+
needs: build
37+
if: github.event_name == 'release'
38+
runs-on: ubuntu-latest
39+
permissions:
40+
contents: write
41+
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
45+
46+
- name: Set up JDK 21
47+
uses: actions/setup-java@v4
48+
with:
49+
java-version: '21'
50+
distribution: 'temurin'
51+
cache: maven
52+
53+
- name: Build with Maven
54+
run: mvn -B clean package
55+
56+
- name: Upload to GitHub Release
57+
uses: softprops/action-gh-release@v2
58+
with:
59+
files: target/ytchat-*-jar-with-dependencies.jar

.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>YTChat</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
21+
<nature>org.eclipse.jdt.core.javanature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
3+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
4+
org.eclipse.jdt.core.compiler.compliance=21
5+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
6+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
7+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
8+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
9+
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
10+
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
11+
org.eclipse.jdt.core.compiler.release=disabled
12+
org.eclipse.jdt.core.compiler.source=21
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1

pom.xml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.peeranat.ytchat</groupId>
6+
<artifactId>ytchat</artifactId>
7+
<version>1.0.0-SNAPSHOT</version>
8+
<name>YTChat</name>
9+
<repositories>
10+
<repository>
11+
<id>papermc</id>
12+
<url>https://papermc.io/repo/repository/maven-public/</url>
13+
</repository>
14+
<repository>
15+
<id>spigot-repo</id>
16+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
17+
</repository>
18+
<repository>
19+
<id>kusaanko-maven</id>
20+
<url>https://raw.githubusercontent.com/kusaanko/maven/main/</url>
21+
<releases>
22+
<enabled>true</enabled>
23+
</releases>
24+
</repository>
25+
</repositories>
26+
<dependencies>
27+
<dependency>
28+
<groupId>io.papermc.paper</groupId>
29+
<artifactId>paper-api</artifactId>
30+
<version>1.21.11-R0.1-SNAPSHOT</version>
31+
<scope>provided</scope>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.spigotmc</groupId>
35+
<artifactId>spigot</artifactId>
36+
<version>1.21.11-R0.2-SNAPSHOT</version>
37+
<scope>provided</scope>
38+
</dependency>
39+
<dependency>
40+
<groupId>com.github.kusaanko</groupId>
41+
<artifactId>YouTubeLiveChat</artifactId>
42+
<version>2.0</version>
43+
<scope>compile</scope>
44+
</dependency>
45+
</dependencies>
46+
<build>
47+
<sourceDirectory>src</sourceDirectory>
48+
<plugins>
49+
<plugin>
50+
<groupId>org.apache.maven.plugins</groupId>
51+
<artifactId>maven-compiler-plugin</artifactId>
52+
<version>3.13.0</version>
53+
<configuration>
54+
<source>21</source>
55+
<target>21</target>
56+
<compilerArgument>-proc:none</compilerArgument>
57+
</configuration>
58+
</plugin>
59+
<plugin>
60+
<artifactId>maven-assembly-plugin</artifactId>
61+
<configuration>
62+
<descriptorRefs>
63+
<descriptorRef>jar-with-dependencies</descriptorRef>
64+
</descriptorRefs>
65+
</configuration>
66+
<executions>
67+
<execution>
68+
<id>make-assembly</id>
69+
<phase>package</phase>
70+
<goals>
71+
<goal>single</goal>
72+
</goals>
73+
</execution>
74+
</executions>
75+
</plugin>
76+
</plugins>
77+
</build>
78+
</project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.peeranat.ytchat;
2+
3+
import org.bukkit.plugin.java.JavaPlugin;
4+
5+
public class YTChatMain extends JavaPlugin {
6+
7+
@Override
8+
public void onEnable() {
9+
// TODO Auto-generated method stub
10+
super.onEnable();
11+
}
12+
13+
@Override
14+
public void onDisable() {
15+
// TODO Auto-generated method stub
16+
super.onDisable();
17+
}
18+
19+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Manifest-Version: 1.0
2+
Build-Jdk-Spec: 21
3+
Created-By: Maven Integration for Eclipse
4+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#Generated by Maven Integration for Eclipse
2+
#Sun Apr 12 11:27:29 ICT 2026
3+
artifactId=ytchat
4+
groupId=com.peeranat.ytchat
5+
m2e.projectLocation=D\:\\sk-workspace\\YTChat
6+
m2e.projectName=YTChat
7+
version=1.0.0-SNAPSHOT
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.peeranat.ytchat</groupId>
6+
<artifactId>ytchat</artifactId>
7+
<version>1.0.0-SNAPSHOT</version>
8+
<name>YTChat</name>
9+
<repositories>
10+
<repository>
11+
<id>papermc</id>
12+
<url>https://papermc.io/repo/repository/maven-public/</url>
13+
</repository>
14+
<repository>
15+
<id>spigot-repo</id>
16+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
17+
</repository>
18+
<repository>
19+
<id>kusaanko-maven</id>
20+
<url>https://raw.githubusercontent.com/kusaanko/maven/main/</url>
21+
<releases>
22+
<enabled>true</enabled>
23+
</releases>
24+
</repository>
25+
</repositories>
26+
<dependencies>
27+
<dependency>
28+
<groupId>io.papermc.paper</groupId>
29+
<artifactId>paper-api</artifactId>
30+
<version>1.21.11-R0.1-SNAPSHOT</version>
31+
<scope>provided</scope>
32+
</dependency>
33+
<dependency>
34+
<groupId>org.spigotmc</groupId>
35+
<artifactId>spigot</artifactId>
36+
<version>1.21.11-R0.2-SNAPSHOT</version>
37+
<scope>provided</scope>
38+
</dependency>
39+
<dependency>
40+
<groupId>com.github.kusaanko</groupId>
41+
<artifactId>YouTubeLiveChat</artifactId>
42+
<version>2.0</version>
43+
<scope>compile</scope>
44+
</dependency>
45+
</dependencies>
46+
<build>
47+
<sourceDirectory>src</sourceDirectory>
48+
<plugins>
49+
<plugin>
50+
<groupId>org.apache.maven.plugins</groupId>
51+
<artifactId>maven-compiler-plugin</artifactId>
52+
<version>3.13.0</version>
53+
<configuration>
54+
<source>21</source>
55+
<target>21</target>
56+
<compilerArgument>-proc:none</compilerArgument>
57+
</configuration>
58+
</plugin>
59+
<plugin>
60+
<artifactId>maven-assembly-plugin</artifactId>
61+
<configuration>
62+
<descriptorRefs>
63+
<descriptorRef>jar-with-dependencies</descriptorRef>
64+
</descriptorRefs>
65+
</configuration>
66+
<executions>
67+
<execution>
68+
<id>make-assembly</id>
69+
<phase>package</phase>
70+
<goals>
71+
<goal>single</goal>
72+
</goals>
73+
</execution>
74+
</executions>
75+
</plugin>
76+
</plugins>
77+
</build>
78+
</project>

0 commit comments

Comments
 (0)