Skip to content

Commit 8602aa4

Browse files
UbivashkaUbivashka
authored andcommitted
Initial commit
1 parent baff074 commit 8602aa4

File tree

7 files changed

+146
-0
lines changed

7 files changed

+146
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/target/
2+
3+
/.classpath
4+
5+
/.project
6+
7+
/.settings

pom.xml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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.ubivashka.telegram</groupId>
6+
<artifactId>JavaTelegramBotApiDependency</artifactId>
7+
<version>0.0.1</version>
8+
9+
<properties>
10+
<java.version>8</java.version>
11+
<!-- Dependencies -->
12+
<spigot.version>1.18.2-R0.1-SNAPSHOT</spigot.version>
13+
<bungeecord.version>1.18-R0.1-SNAPSHOT</bungeecord.version>
14+
<velocity.version>3.0.1</velocity.version>
15+
<java-telegram-bot-api.version>6.0.1</java-telegram-bot-api.version>
16+
17+
<!-- Maven plugins -->
18+
<maven.compiler.plugin.version>3.8.1</maven.compiler.plugin.version>
19+
</properties>
20+
21+
<repositories>
22+
<!-- Spigot repository -->
23+
<repository>
24+
<id>spigot-repo</id>
25+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
26+
</repository>
27+
<!-- Bungeecord repository -->
28+
<repository>
29+
<id>bungeecord-repo</id>
30+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
31+
</repository>
32+
<!-- Velocity repository -->
33+
<repository>
34+
<id>velocity</id>
35+
<url>https://nexus.velocitypowered.com/repository/maven-public/</url>
36+
</repository>
37+
</repositories>
38+
39+
<dependencies>
40+
<!-- Spigot -->
41+
<dependency>
42+
<groupId>org.spigotmc</groupId>
43+
<artifactId>spigot-api</artifactId>
44+
<version>${spigot.version}</version>
45+
<scope>provided</scope>
46+
</dependency>
47+
<!-- Bungeecord -->
48+
<dependency>
49+
<groupId>net.md-5</groupId>
50+
<artifactId>bungeecord-api</artifactId>
51+
<version>${bungeecord.version}</version>
52+
<type>jar</type>
53+
<scope>provided</scope>
54+
</dependency>
55+
<!-- Velocity -->
56+
<dependency>
57+
<groupId>com.velocitypowered</groupId>
58+
<artifactId>velocity-api</artifactId>
59+
<version>${velocity.version}</version>
60+
<scope>provided</scope>
61+
</dependency>
62+
<!-- Java telegram bot api -->
63+
<dependency>
64+
<groupId>com.github.pengrad</groupId>
65+
<artifactId>java-telegram-bot-api</artifactId>
66+
<version>${java-telegram-bot-api.version}</version>
67+
</dependency>
68+
</dependencies>
69+
70+
<build>
71+
<finalName>${project.name}</finalName>
72+
<resources>
73+
<resource>
74+
<directory>src/main/resources</directory>
75+
<filtering>true</filtering>
76+
</resource>
77+
</resources>
78+
<plugins>
79+
<!-- Maven compiler plugin -->
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-compiler-plugin</artifactId>
83+
<version>${maven.compiler.plugin.version}</version>
84+
<configuration>
85+
<source>${java.version}</source>
86+
<target>${java.version}</target>
87+
</configuration>
88+
</plugin>
89+
<!-- Maven assembly plugin -->
90+
<plugin>
91+
<artifactId>maven-assembly-plugin</artifactId>
92+
<configuration>
93+
<archive>
94+
<manifest>
95+
<mainClass>${project.mainclass}</mainClass>
96+
</manifest>
97+
</archive>
98+
<descriptorRefs>
99+
<descriptorRef>jar-with-dependencies</descriptorRef>
100+
</descriptorRefs>
101+
</configuration>
102+
<executions>
103+
<execution>
104+
<id>make-assembly</id>
105+
<phase>package</phase>
106+
<goals>
107+
<goal>single</goal>
108+
</goals>
109+
</execution>
110+
</executions>
111+
</plugin>
112+
</plugins>
113+
</build>
114+
</project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.ubivashka.telegram.bungee;
2+
3+
import org.bukkit.plugin.java.JavaPlugin;
4+
5+
public final class BukkitTelegramBotApi extends JavaPlugin {
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.ubivashka.telegram.bungee;
2+
3+
import net.md_5.bungee.api.plugin.Plugin;
4+
5+
public final class BungeeTelegramBotApi extends Plugin {
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.ubivashka.telegram.bungee;
2+
3+
import com.velocitypowered.api.plugin.Plugin;
4+
5+
@Plugin(id = "telegram-bot-api", name = "VelocityTelegramBotApi", version = "0.0.1")
6+
public final class VelocityTelegramBotApi {
7+
}

src/main/resources/bungee.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: JavaTelegramBotApi
2+
main: com.ubivashka.telegram.bungee.BungeeTelegramBotApi
3+
version: ${project.version}

src/main/resources/plugin.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: JavaTelegramBotApi
2+
main: com.ubivashka.telegram.bungee.BukkitTelegramBotApi
3+
version: ${project.version}

0 commit comments

Comments
 (0)