-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
107 lines (77 loc) · 2.88 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
plugins {
id 'com.github.johnrengelman.shadow' version '4.0.3'
}
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven {
url 'https://jitpack.io'
}
mavenCentral()
}
dependencies {
implementation 'org.javacord:javacord:3.3.0'
compileOnly('org.projectlombok:lombok:1.18.4')
annotationProcessor 'org.projectlombok:lombok:1.18.4'
compile(
'com.github.Mazawrath.sdcf4j:sdcf4j-core:v1.2.0',
'com.github.Mazawrath.sdcf4j:sdcf4j-javacord:v1.2.0',
'org.apache.logging.log4j:log4j-api:2.11.1',
'org.apache.logging.log4j:log4j-core:2.11.1',
'commons-io:commons-io:2.6',
'com.rethinkdb:rethinkdb-driver:2.3.3',
'com.yahoofinance-api:YahooFinanceAPI:3.14.0',
'com.vdurmont:emoji-java:4.0.0',
'org.apache.commons:commons-lang3:3.8',
'org.slf4j:slf4j-api:1.7.25',
'org.slf4j:slf4j-simple:1.7.25',
'org.eclipse.jetty:jetty-server:9.4.6.v20170531',
'org.eclipse.jetty:jetty-servlet:9.4.6.v20170531',
'org.glassfish.jersey.core:jersey-server:2.27',
'org.glassfish.jersey.containers:jersey-container-servlet-core:2.27',
'org.glassfish.jersey.containers:jersey-container-jetty-http:2.27',
'org.glassfish.jersey.media:jersey-media-json-jackson:2.27',
'org.glassfish.jersey.inject:jersey-hk2:2.27',
'javax.xml.bind:jaxb-api:2.3.0',
'javax.activation:activation:1.1',
'org.toile-libre.libe:curl:0.0.23',
'com.github.origma:Google-PerspectiveAPI-Java-Client:0.0.5',
'com.google.api-client:google-api-client:1.24.1',
'com.google.cloud:google-cloud-vision:1.55.0',
'com.google.cloud:google-cloud-storage:1.55.0',
'io.sentry:sentry:1.7.16',
'io.sentry:sentry-log4j2:1.7.16',
'com.github.Samuel-Maddock:StrawPoll-Java-API:1.0.4'
)
compile files('ext/marvin/framework/marvin_1.5.5.jar')
runtime(
'org.glassfish.jersey.media:jersey-media-json-jackson:2.27'
)
testCompile(
'junit:junit:4.12'
)
}
shadowJar {
manifest {
attributes 'Main-Class': 'com.mazawrath.beanbot.Main'
}
transform(Log4j2PluginsCacheFileTransformer)
archiveName = "${projectName}-${version}.${extension}"
}
build.dependsOn {
shadowJar
}
task run(dependsOn: shadowJar) {
doLast {
if (project.hasProperty('token')) {
javaexec {
main = '-jar'
args jar.archivePath, project.property('token')
}
} else {
throw new GradleException('Missing property token')
}
}
}