-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
49 lines (41 loc) · 1.41 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
java
}
repositories {
maven { url = uri("https://repo.maven.apache.org/maven2/") }
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") }
}
dependencies {
implementation("mysql:mysql-connector-java:8.0.33")
implementation("org.mariadb.jdbc:mariadb-java-client:3.5.1")
compileOnly("org.jetbrains", "annotations", "26.0.1")
implementation("org.xerial", "sqlite-jdbc", "3.47.1.0")
implementation("org.postgresql", "postgresql", "42.7.4")
implementation("com.zaxxer", "HikariCP", "6.2.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
compileOnly("org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT")
}
group = "de.chojo"
version = "1.0"
description = "basicsqlplugin"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.named<ShadowJar>("shadowJar") {
relocate("com.mysql", "de.chojo.simplecoins.mysql")
relocate("com.google", "de.chojo.simplecoins.google")
relocate("org.mariadb", "de.chojo.simplecoins.mariadb")
// Don't use minimize. This will remove classes from your database driver which you will need.
minimize {
exclude(dependency("mysql:.*:.*"))
}
mergeServiceFiles()
}
tasks.test {
useJUnitPlatform()
maxHeapSize = "1G"
}