-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
54 lines (42 loc) · 1.6 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
plugins {
id("java-library")
id("com.github.johnrengelman.shadow") version "7.1.0"
id("checkstyle")
}
allprojects {
apply(plugin = "java-library")
apply(plugin = "com.github.johnrengelman.shadow")
apply(plugin = "checkstyle")
repositories {
mavenCentral()
maven { url = uri("https://storehouse.okaeri.eu/repository/maven-public/") }
maven { url = uri("https://repo.panda-lang.org/releases") }
maven { url = uri("https://nexus.velocitypowered.com/repository/maven-public/")}
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots")}
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")}
}
dependencies {
implementation("com.zaxxer:HikariCP:6.2.1")
implementation("com.j256.ormlite:ormlite-jdbc:6.1")
implementation("eu.okaeri:okaeri-configs-yaml-snakeyaml:5.0.5")
implementation("eu.okaeri:okaeri-configs-serdes-commons:5.0.5")
testImplementation(platform("org.junit:junit-bom:5.10.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("com.google.guava:guava-testlib:33.1.0-jre")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
checkstyle {
toolVersion = "10.21.0"
configFile = file("${rootDir}/checkstyle.xml")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<JavaCompile> {
options.compilerArgs = listOf("-Xlint:deprecation", "-parameters")
options.encoding = "UTF-8"
options.release = 17
}
}