Skip to content

Instantly share code, notes, and snippets.

@orekyuu
Created March 9, 2015 15:06
Show Gist options
  • Save orekyuu/e5ca4e366fb85a675386 to your computer and use it in GitHub Desktop.
Save orekyuu/e5ca4e366fb85a675386 to your computer and use it in GitHub Desktop.
apply plugin: 'java'
apply plugin: 'idea'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
sourceCompatibility = 1.8
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', includes: ['*.jar'])
compile "mysql:mysql-connector-java:5.1.34"
compile 'com.google.code.gson:gson:2.2.4'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
jar {
configurations.compile.each { File file ->
if (!file.getName().contains("spigot") && !file.getName().contains('bukkit'))
from zipTree(file)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment