Skip to content

Commit

Permalink
Migrate to gradle (lavalink-devs#25)
Browse files Browse the repository at this point in the history
* Migrate to gradle

* Trigger fat jar build

* WIP

* Replace shadow plugin with spring boot

* Ignore output
  • Loading branch information
schnapster authored and freyacodes committed Oct 31, 2017
1 parent d63de5a commit b7b13f6
Show file tree
Hide file tree
Showing 15 changed files with 383 additions and 512 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
/target/
/application.yml
*/dependency-reduced-pom.xml
.gradle/*
build/*
*.jar
1 change: 1 addition & 0 deletions LavalinkClient/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/logs/
/target/
/dependency-reduced-pom.xml
build/*
18 changes: 18 additions & 0 deletions LavalinkClient/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description = 'JDA based client for the Lavalink-Server'
version System.getenv('dev') == 'true' ? '-SNAPSHOT' : '1.2'
ext {
moduleName = 'Lavalink-Client'
}
dependencies {
compile group: 'com.sedmelluq', name: 'lavaplayer', version: '1.2.44'
compile group: 'org.java-websocket', name: 'Java-WebSocket', version: '1.3.4'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.json', name: 'json', version: '20170516'
compile group: 'net.dv8tion', name: 'JDA', version: '3.3.1_297'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.0.0-M4'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.0.0-M4'
testCompile group: 'org.junit.platform', name: 'junit-platform-launcher', version: '1.0.0-M4'
testCompile group: 'org.junit.platform', name: 'junit-platform-runner', version: '1.0.0-M4'
testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
testCompile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
}
156 changes: 0 additions & 156 deletions LavalinkClient/pom.xml

This file was deleted.

2 changes: 2 additions & 0 deletions LavalinkServer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
/application.yml
/target/
/debug_token
build/*
/out/
34 changes: 34 additions & 0 deletions LavalinkServer/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
plugins {
id 'application'
id 'org.springframework.boot' version '1.5.8.RELEASE'
}

description = 'Play audio to discord voice channels'
mainClassName = "lavalink.server.Launcher"
version '1.2'
ext {
moduleName = 'Lavalink-Server'
}

jar {
archiveName = "Lavalink.jar"
}
publishToMavenLocal.dependsOn 'bootRepackage'

dependencies {
compile group: 'com.sedmelluq', name: 'lavaplayer', version: '1.2.44'
compile group: 'com.github.DV8FromTheWorld', name: 'JDA-Audio', version: '7a3f9d40a32b74b6e85e0e0c8f9a051f004b5584'
compile group: 'org.java-websocket', name: 'Java-WebSocket', version: '1.3.4'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'io.sentry', name: 'sentry-logback', version: '1.5.3'
compile group: 'com.github.oshi', name: 'oshi-core', version: '3.4.3'
compile group: 'org.json', name: 'json', version: '20170516'
compile group: 'com.github.FredBoat', name: 'jda-nas', version: '1.0.5.1-JDA-Audio'
compile group: 'com.sedmelluq', name: 'lavaplayer-common', version: '1.0.5'
compile group: 'com.google.guava', name: 'guava', version: '22.0'
compile group: 'com.github.shredder121', name: 'jda-async-packetprovider', version: '1.0'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '1.5.4.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-autoconfigure', version: '1.5.4.RELEASE'
compile group: 'org.springframework', name: 'spring-web', version: '4.3.9.RELEASE'
}
Loading

0 comments on commit b7b13f6

Please sign in to comment.