forked from devcordde/DevcordBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
113 lines (93 loc) · 3.54 KB
/
build.gradle.kts
File metadata and controls
113 lines (93 loc) · 3.54 KB
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
108
109
110
111
112
113
/*
* Copyright 2020 Daniel Scherf & Michael Rittmeister & Julian König
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id("com.github.johnrengelman.shadow") version "5.2.0"
application
kotlin("jvm") version "1.4.0"
}
group = "com.github.devcord.devcordbot"
version = "2.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven("https://kotlin.bintray.com/kotlinx")
maven("https://jitpack.io")
}
dependencies {
// Kotlin
implementation(kotlin("reflect"))
// Scripting Support (For bot owner eval)
runtimeOnly(kotlin("scripting-jsr223"))
// Coroutines
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-jdk8", "1.3.4")
// Logging
implementation("io.github.microutils", "kotlin-logging", "1.7.8")
implementation("org.slf4j", "slf4j-api", "2.0.0alpha1")
implementation("ch.qos.logback", "logback-classic", "1.3.0-alpha5")
implementation("io.sentry", "sentry", "1.7.30")
implementation("io.sentry", "sentry-logback", "1.7.30")
// Database
implementation("org.jetbrains.exposed", "exposed-core", "0.21.1")
implementation("org.jetbrains.exposed", "exposed-dao", "0.21.1")
implementation("org.jetbrains.exposed", "exposed-jdbc", "0.21.1")
implementation("org.jetbrains.exposed", "exposed-java-time", "0.21.1")
implementation("org.postgresql", "postgresql", "42.2.10")
implementation("com.zaxxer", "HikariCP", "3.4.2")
// Discord
implementation("net.dv8tion", "JDA", "4.2.0_198") {
exclude(module = "opus-java")
}
// Util
implementation("io.github.cdimascio", "java-dotenv", "5.1.4")
implementation("com.squareup.okhttp3", "okhttp", "4.4.0")
implementation("org.jetbrains.kotlinx", "kotlinx-cli", "0.2.1")
implementation("com.codewaves.codehighlight", "codehighlight", "1.0.2")
implementation("com.github.DRSchlaubi", "javadox", "bd741be")
implementation("com.vladsch.flexmark", "flexmark-html2md-converter", "0.60.2")
implementation("com.google.apis", "google-api-services-customsearch", "v1-rev20200408-1.30.9")
implementation("com.google.cloud", "google-cloud-vision", "1.99.3")
// Testing
testImplementation("org.mockito", "mockito-core", "3.3.3")
testImplementation("com.nhaarman.mockitokotlin2", "mockito-kotlin", "2.2.0")
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.6.0")
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", "5.6.0")
}
application {
mainClassName = "com.github.devcordde.devcordbot.LauncherKt"
}
tasks {
shadowJar {
transform(com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer::class.java)
}
compileKotlin {
kotlinOptions.jvmTarget = "12"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "12"
}
jar {
archiveClassifier.value = "original"
}
test {
useJUnitPlatform()
}
}
/**
* Represents the mutable value of a [Property].
*/
var <T> Property<T>.value: T?
get() = orNull
set(value) = set(value)