-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
102 lines (89 loc) · 2.75 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
102 lines (89 loc) · 2.75 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
plugins {
java
idea
application
id("com.gradleup.shadow") version "9.4.1"
id("org.jetbrains.gradle.plugin.idea-ext") version "1.4.1"
id("org.flywaydb.flyway") version "12.5.0"
}
group = "zone.moddev.patchy"
application {
applicationName = "Patchy"
version = "1.0.0"
mainClass = "zone.moddev.patchy.Patchy"
executableDir = "run"
}
tasks.shadowJar {
archiveBaseName.set("patchy")
manifest {
attributes["Implementation-Version"] = project.version
}
}
repositories {
mavenCentral()
maven {
name = "jda-chewtils"
url = uri("https://m2.chew.pro/snapshots")
}
maven {
name = "Jitpack"
url = uri("https://jitpack.io")
}
}
val jdaVersion = "6.3.1"
val jetbrainsAnnotations = "26.1.0"
val jacksonDatabindVersion = "3.1.1"
val jacksonAnnotationsVersion = "2.21"
val dotenvVersion = "3.2.0"
val logbackVersion = "1.5.32"
val slf4jVersion = "2.0.17"
val gsonVersion = "2.13.2"
val jdbi3CoreVersion = "3.52.0"
val jdbi3SqlObjectVersion = "3.52.0"
val sqliteVersion = "3.51.3.0"
val hikariVersion = "7.0.2"
val fastUtilVersion = "8.5.18"
val guavaVersion = "33.6.0-jre"
val flywayVersion = "12.4.0"
val flexverVersion = "1.1.1"
dependencies {
implementation("net.dv8tion:JDA:${jdaVersion}")
implementation("org.jetbrains:annotations:${jetbrainsAnnotations}")
implementation("tools.jackson.core:jackson-databind:${jacksonDatabindVersion}")
implementation("com.fasterxml.jackson.core:jackson-annotations:${jacksonAnnotationsVersion}")
implementation("io.github.cdimascio:dotenv-java:${dotenvVersion}")
implementation("ch.qos.logback:logback-classic:${logbackVersion}")
implementation("org.slf4j:slf4j-api:${slf4jVersion}")
implementation("com.google.code.gson:gson:${gsonVersion}")
implementation("org.jdbi:jdbi3-core:${jdbi3CoreVersion}")
implementation("org.jdbi:jdbi3-sqlobject:${jdbi3SqlObjectVersion}")
implementation("org.xerial:sqlite-jdbc:${sqliteVersion}")
implementation("com.zaxxer:HikariCP:${hikariVersion}")
implementation("it.unimi.dsi:fastutil:${fastUtilVersion}")
implementation("com.google.guava:guava:${guavaVersion}")
implementation("org.flywaydb:flyway-core:${flywayVersion}")
implementation("com.unascribed:flexver-java:${flexverVersion}")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(25))
}
}
flyway {
url = "jdbc:sqlite:${project.projectDir}/run/data.db"
cleanDisabled = false
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
jar {
manifest {
attributes["Main-Class"] = "zone.moddev.patchy.Patchy"
attributes["Implementation-Version"] = project.version
}
}
build {
dependsOn(shadowJar)
}
}