-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
51 lines (44 loc) · 1.29 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version "7.0.0"
}
group 'me.dustin'
version '2.6.0'
apply plugin: 'com.github.johnrengelman.shadow'
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs = ['java/src']
}
resources {
srcDirs = ['java/resources']
}
}
}
dependencies {
def dep = { id ->
implementation id
shadow id
} as Object
// https://mvnrepository.com/artifact/commons-logging/commons-logging
dep group: 'commons-logging', name: 'commons-logging', version: '1.2'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
dep group: 'com.google.code.gson', name: 'gson', version: '2.9.0'
// https://mvnrepository.com/artifact/com.google.guava/guava
dep group: 'com.google.guava', name: 'guava', version: '31.1-jre'
// https://mvnrepository.com/artifact/io.netty/netty-all
dep group: 'io.netty', name: 'netty-all', version: '4.1.75.Final'
}
shadowJar {
archiveName("ChatBot.jar");
configurations = [project.configurations.shadow]
}
jar {
archiveName("ChatBot-NoLibs.jar");
manifest.attributes("Main-Class": "me.dustin.chatbot.ChatBot")
}
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16