forked from TechsCode/TechDiscordBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (52 loc) · 1.8 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
group = "me.TechsCode"
compileJava.options.encoding = 'UTF-8'
assemble.dependsOn shadowJar
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://www.jitpack.io' }
maven { url 'https://m2.dv8tion.net/releases'}
maven { url 'https://repo.mattmalec.com/repository/releases'}
}
dependencies {
implementation ('net.dv8tion:JDA:4.3.0_331') { exclude module: 'opus-java' }
implementation 'com.google.guava:guava:31.1-jre'
implementation 'org.jsoup:jsoup:1.14.3'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'mysql:mysql-connector-java:8.0.29'
implementation "com.googlecode.json-simple:json-simple:1.1.1"
implementation 'net.sourceforge.htmlunit:htmlunit:2.62.0'
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'org.kohsuke:github-api:1.306'
implementation 'com.mattmalec:Pterodactyl4J:2.BETA_78'
}
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
}
}
shadowJar {
archiveFileName = 'TechDiscordBot.jar'
destinationDirectory = file("build")
}
jar {
exclude 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.MF'
manifest {
attributes 'Class-Path': configurations.runtime.files.collect { "lib/$it.name" }.join(' ')
attributes 'Main-Class': 'me.TechsCode.TechDiscordBot.TechDiscordBot'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
manifest {
attributes 'Class-Path': configurations.runtime.files.collect { "lib/$it.name" }.join(' ')
attributes 'Main-Class': 'me.TechsCode.TechDiscordBot.TechDiscordBot'
}
}