Skip to content

Instantly share code, notes, and snippets.

@Aang23
Created August 5, 2018 15:42
Show Gist options
  • Save Aang23/cb81cd1bd7d767d4d1f5d6317e71665d to your computer and use it in GitHub Desktop.
Save Aang23/cb81cd1bd7d767d4d1f5d6317e71665d to your computer and use it in GitHub Desktop.
Build.gradle
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/4.3/userguide/java_library_plugin.html
*/
// Apply the java-library plugin to add support for Java Library
apply plugin: 'java-library'
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.google.code.gson:gson:2.8.5'
compile group: 'com.esotericsoftware', name: 'kryonet', version: '2.22.0-RC1'
compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
testCompile group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.1'
compile group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '5.0.2.201807311906-r'
}
jar {
manifest {
attributes "Main-Class": "main.Launcher"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment