Skip to content

Instantly share code, notes, and snippets.

@TheFlash787
Created August 27, 2018 18:29
Show Gist options
  • Save TheFlash787/9cecc4964f5840f016162757197db56e to your computer and use it in GitHub Desktop.
Save TheFlash787/9cecc4964f5840f016162757197db56e to your computer and use it in GitHub Desktop.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}
plugins {
id 'org.spongepowered.plugin' version '0.8.1'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
group 'net.modrealms'
version '2.0-SNAPSHOT'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://jitpack.io'
}
maven { url = "https://plugins.gradle.org/m2/" }
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
compile 'org.spongepowered:spongeapi:7.1.0-SNAPSHOT'
compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.6'
compile 'mysql:mysql-connector-java:8.0.11'
//classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
compile 'com.googlecode.json-simple:json-simple:1.1.1'
implementation 'com.github.codeHusky:HuskyUI-Plugin:v0.6.0-PRE2-HOTFIX2'
compile 'net.dv8tion:JDA:3.7.1_385'
compile 'com.jagrosh:jda-utilities-command:2.0'
compile("me.lucko.luckperms:luckperms-api:4.2")
compile 'org.projectlombok:lombok:1.16.12'
compile 'org.mongodb:mongo-java-driver:3.5.0'
compile 'org.mongodb.morphia:morphia:1.3.2'
}
shadowJar {
relocate ("org.apache.commons.collections-4", "shaded.org.apache.commons.collections-4") {
exclude "org/apache/logging/**"
}
baseName = project.name
classifier = null
version = project.version
}
artifacts {
archives shadowJar
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment