forked from Fzzy2j/StreamAnnounceBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (55 loc) · 1.96 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id 'com.gradleup.shadow' version '8.3.0'
id 'org.jetbrains.kotlin.jvm' version '2.0.10'
}
group 'me.fzzy.streamannounce'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
google()
maven { url 'https://jitpack.io' }
}
// download eng.traineddata
tasks.register('tessdata') {
project.mkdir("run/tessdata")
def f = new File('run/tessdata/eng.traineddata')
if (!f.exists()) {
new URI('https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata').toURL().withInputStream { i -> f.withOutputStream { it << i } }
}
}
shadowJar {
manifest {
attributes 'Main-Class': 'me.fzzy.announcebot.MainKt'
attributes 'Implementation-Version': version
}
destinationDirectory = file("run")
archiveFileName = "StreamAnnounce.jar"
}
tasks.shadowJar.dependsOn(tessdata)
dependencies {
implementation 'com.google.api-client:google-api-client:2.6.0'
implementation 'com.google.oauth-client:google-oauth-client-jetty:1.36.0'
implementation 'com.google.apis:google-api-services-calendar:v3-rev411-1.25.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.0.10"
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.16'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.5.7'
implementation 'net.dv8tion:JDA:5.0.2'
implementation "com.github.MinnDevelopment:jda-reactor:1.5.0"
implementation 'com.google.code.gson:gson:2.11.0'
implementation group: 'org.json', name: 'json', version: '20240303'
implementation 'com.github.scribejava:scribejava-apis:8.3.3'
implementation group: 'net.sourceforge.tess4j', name: 'tess4j', version: '5.12.0'
implementation("com.github.s5bug:Speedrun4J:a15010becb")
}
compileKotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
compileTestKotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}