-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
56 lines (48 loc) · 1.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
plugins {
java
application
id("com.github.johnrengelman.shadow") version "6.1.0"
id("com.diffplug.spotless") version "5.8.1"
id("com.adarshr.test-logger") version "2.1.1"
}
repositories {
mavenLocal()
mavenCentral()
maven("https://jitpack.io")
}
// To update dependencies: rm gradle.lockfile && ./gradlew dependencies --write-locks
dependencyLocking {
lockAllConfigurations()
lockMode.set(LockMode.STRICT)
}
dependencies {
implementation("com.eclipsesource.minimal-json:minimal-json:latest.release")
implementation("com.github.boscojared.disparse:disparse-smalld:master-SNAPSHOT")
implementation("com.github.princesslana:jsonf:latest.release")
implementation("com.github.princesslana:smalld:latest.release")
implementation("com.google.code.gson:gson:latest.release")
implementation("com.google.guava:guava:latest.release")
implementation("io.github.cdimascio:dotenv-java:latest.release")
implementation("org.apache.commons:commons-lang3:latest.release")
implementation("org.apache.logging.log4j:log4j-api:latest.release")
runtimeOnly("org.apache.logging.log4j:log4j-core:latest.release")
runtimeOnly("org.apache.logging.log4j:log4j-slf4j18-impl:latest.release")
testImplementation("org.junit.jupiter:junit-jupiter-api:latest.release")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:latest.release")
testImplementation("org.assertj:assertj-core:latest.release")
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
application {
mainClassName = "com.github.princesslana.slothbot.App"
}
val test by tasks.getting(Test::class) {
useJUnitPlatform()
}
spotless {
java {
googleJavaFormat("1.9")
}
}