Skip to content

Instantly share code, notes, and snippets.

@DrEngi
Created June 16, 2019 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DrEngi/7e327f19e85f134f9c18da550782172d to your computer and use it in GitHub Desktop.
Save DrEngi/7e327f19e85f134f9c18da550782172d to your computer and use it in GitHub Desktop.
New build.gradle. Build by using ./gradlew shadowjar
plugins {
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'java'
}
group 'com.okayd'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile 'net.dv8tion:JDA:3.8.3_463'
compile 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
jar {
manifest {
attributes(
'Main-Class': 'Main'
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment