From a12742b498d927d057ce0a5d44b332c430f0ca09 Mon Sep 17 00:00:00 2001 From: Frederikam Date: Sun, 16 Jul 2017 18:08:49 +0200 Subject: [PATCH] Added client module --- .gitignore | 1 + LavalinkClient/.gitignore | 1 + LavalinkClient/pom.xml | 58 +++++++++++++ .../main/java/lavalink/client/Lavalink.java | 10 +++ .../src/test}/resources/logback.xml | 0 LavalinkServer/pom.xml | 6 -- LavalinkServer/target/classes/logback.xml | 87 ------------------- pom.xml | 7 ++ 8 files changed, 77 insertions(+), 93 deletions(-) create mode 100644 LavalinkClient/.gitignore create mode 100644 LavalinkClient/pom.xml create mode 100644 LavalinkClient/src/main/java/lavalink/client/Lavalink.java rename {LavalinkServer/src/main => LavalinkClient/src/test}/resources/logback.xml (100%) delete mode 100644 LavalinkServer/target/classes/logback.xml diff --git a/.gitignore b/.gitignore index 85e7c1dfc..c749986c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /.idea/ +*.iml diff --git a/LavalinkClient/.gitignore b/LavalinkClient/.gitignore new file mode 100644 index 000000000..bff2d7629 --- /dev/null +++ b/LavalinkClient/.gitignore @@ -0,0 +1 @@ +*.iml diff --git a/LavalinkClient/pom.xml b/LavalinkClient/pom.xml new file mode 100644 index 000000000..4c843daf1 --- /dev/null +++ b/LavalinkClient/pom.xml @@ -0,0 +1,58 @@ + + + + Lavalink-Parent + lavalink + 1.0 + + 4.0.0 + + Lavalink-Client + 1.0 + + + + + com.sedmelluq + lavaplayer + 1.2.39 + + + org.java-websocket + Java-WebSocket + 1.3.4 + + + + org.slf4j + slf4j-api + 1.7.25 + + + org.json + json + 20170516 + + + net.dv8tion + JDA + 3.2.0_226 + + + + + + jcenter + jcenter-bintray + http://jcenter.bintray.com + + + jitpack.io + https://jitpack.io + + + + + diff --git a/LavalinkClient/src/main/java/lavalink/client/Lavalink.java b/LavalinkClient/src/main/java/lavalink/client/Lavalink.java new file mode 100644 index 000000000..c1dae762a --- /dev/null +++ b/LavalinkClient/src/main/java/lavalink/client/Lavalink.java @@ -0,0 +1,10 @@ +package lavalink.client; + +public class Lavalink { + + private final String host; + + public Lavalink(String host) { + this.host = host; + } +} diff --git a/LavalinkServer/src/main/resources/logback.xml b/LavalinkClient/src/test/resources/logback.xml similarity index 100% rename from LavalinkServer/src/main/resources/logback.xml rename to LavalinkClient/src/test/resources/logback.xml diff --git a/LavalinkServer/pom.xml b/LavalinkServer/pom.xml index 76ad7c1fd..d27a4e67f 100644 --- a/LavalinkServer/pom.xml +++ b/LavalinkServer/pom.xml @@ -9,12 +9,6 @@ pom 1.0 - - UTF-8 - 1.8 - 1.8 - - diff --git a/LavalinkServer/target/classes/logback.xml b/LavalinkServer/target/classes/logback.xml deleted file mode 100644 index 88e4bf00d..000000000 --- a/LavalinkServer/target/classes/logback.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - INFO - - logs/fredboat.log - - logs/fredboat.%d{yyyyMMdd}.log - 30 - - - [%date{HH:mm:ss}] [ %-5level] [%logger{0}] %msg%n - - - - - logs/debug.log - - DEBUG - - - logs/debug.%d{yyyyMMdd}.log.gz - 5 - - - [%d] [ %-5level] [%thread] %logger{35}: %msg%n - - - - - logs/error.log - - ERROR - - - logs/error.%d{yyyyMMdd}.log - 30 - - - [%date{HH:mm:ss}] [%thread] [%logger{0}] %msg%n - - - - - - INFO - - - [%date{HH:mm:ss}] [ %-5level] [%logger{0}] %msg%n - - - - - - - - - - - - - diff --git a/pom.xml b/pom.xml index 2204a6e27..78151cd1b 100644 --- a/pom.xml +++ b/pom.xml @@ -10,6 +10,13 @@ 1.0 LavalinkServer + LavalinkClient + + UTF-8 + 1.8 + 1.8 + +