This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
140 lines (111 loc) · 3.74 KB
/
build.gradle.kts
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
plugins {
java
application
id("org.jetbrains.kotlin.jvm") version "1.6.0"
}
group = "cz.tefek"
version = "350.11.1"
java {
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
}
tasks.withType<Wrapper> {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = "7.2"
}
sourceSets {
java {
main {
java.srcDirs(
"src/main/java",
"src/uss/java",
"src/framework/java",
"src/framework-discord/java",
"src/data/java",
"src/gamelogic/java",
"src/util/java")
resources.srcDirs(
"src/main/resources",
"src/uss/resources",
"src/framework/resources",
"src/framework-discord/resources",
"src/data/resources",
"src/gamelogic/resources",
"src/util/resources")
}
create("commands") {
java.srcDirs(
"assets/commands/administrative/java",
"assets/commands/competitive/java",
"assets/commands/economy/java",
"assets/commands/fun/java",
"assets/commands/gambling/java",
"assets/commands/general/java",
"assets/commands/income/java",
"assets/commands/items/java",
"assets/commands/superuser/java")
val mainSet = sourceSets.main.get()
compileClasspath += mainSet.compileClasspath + mainSet.output
}
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
name = "m2dv8tion"
url = uri("https://m2.dv8tion.net/releases")
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/493msi/plutoengine/")
credentials {
username = "493msi"
password = System.getenv("GITHUB_PACKAGES_KEY")
}
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Copy> {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
application {
mainClass.set("com.botdiril.BotMain")
applicationDistribution.into("assets") {
from("assets")
exclude("enhancementProposals/")
}
}
tasks.getByName<Tar>("distTar") {
val baseName = archiveBaseName.get()
archiveFileName.set("$baseName.tar")
println("Archive file name: $baseName")
}
tasks.getByName<Zip>("distZip") {
// Feel free to comment
// In Docker, we only care about the .tar file
enabled = false
}
dependencies {
implementation("org.jetbrains", "annotations", "20.1.0")
implementation("com.mchange", "c3p0", "0.9.5.5")
implementation("mysql", "mysql-connector-java", "8.0.22")
implementation("org.yaml", "snakeyaml", "1.28")
implementation("com.fasterxml.jackson.core", "jackson-databind", "2.12.3")
implementation("com.fasterxml.jackson.dataformat", "jackson-dataformat-yaml", "2.12.3")
implementation("org.slf4j", "slf4j-api", "1.8.0-beta4")
implementation("org.slf4j", "slf4j-simple", "1.8.0-beta4")
implementation("org.apache.logging.log4j", "log4j-core", "2.16.0")
implementation("org.apache.logging.log4j", "log4j-api", "2.16.0")
implementation("org.apache.logging.log4j", "log4j-slf4j-impl", "2.16.0")
implementation("org.apache.commons", "commons-lang3", "3.11")
implementation("org.apache.commons", "commons-text", "1.9")
implementation("org.apache.commons", "commons-math3", "3.6.1")
implementation("commons-io", "commons-io", "2.8.0")
implementation("net.dv8tion", "JDA", "4.4.0_351") {
exclude(module = "opus-java")
}
implementation("cz.tefek", "plutolib", "20.2.0.0-alpha.2")
}