-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (52 loc) · 1.62 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group 'com.birtek.cashew'
version '2.26.3.1'
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.44.1.0'
implementation group: 'org.postgresql', name: 'postgresql', version: '42.7.1'
implementation group: 'net.dv8tion', name: 'JDA', version: '5.0.0-beta.3'
implementation group: 'net.objecthunter', name: 'exp4j', version: '0.4.8'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.4.14'
implementation group: 'org.json', name: 'json', version: '20230227'
implementation group: 'org.jsoup', name: 'jsoup', version: '1.17.1'
// technically not cashew but I have to fit two bots in one
implementation 'org.telegram:telegrambots:6.3.0'
implementation 'org.nocrala.tools.texttablefmt:text-table-formatter:1.2.4'
}
application {
mainClass = 'com.birtek.cashew.Cashew'
}
sourceSets {
main {
java {
srcDirs = ['src']
}
}
}
task stage(dependsOn: ['build', 'shadowJar', 'clean'])
build.mustRunAfter clean
jar {
manifest {
attributes 'Class-Path': 'build/libs/Cashew-2.26.3.1-all.jar', 'Main-Class': 'com.birtek.cashew.Cashew'
}
}
wrapper {
gradleVersion = '7.0'
}
shadowJar {
archiveFileName = "Cashew-2.26.3.1-all.jar"
}
//
//task runCashew(dependsOn: configurations.compileClasspath, type: JavaExec) {
// group = "app"
// classpath = sourceSets.test.runtimeClasspath
// main('com.birtek.cashew.Cashew')
//}