-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
73 lines (59 loc) · 1.6 KB
/
build.gradle
File metadata and controls
73 lines (59 loc) · 1.6 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
plugins {
id 'java'
id 'application'
id 'com.gradleup.shadow' version '9.2.2'
id 'io.freefair.lombok' version '6.6.3'
id 'com.diffplug.spotless' version '8.0.0'
}
group = 'yt.graven'
version = '1.0-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
maven {
url = 'https://jitpack.io/'
}
}
dependencies {
implementation "net.dv8tion:JDA:5.0.0-beta.5"
implementation 'me.carleslc.Simple-YAML:Simple-Yaml:1.7.2'
implementation 'com.google.guava:guava:31.1-jre'
implementation 'org.springframework:spring-context:5.3.20'
implementation 'javax.inject:javax.inject:1'
implementation 'javax.annotation:javax.annotation-api:1.3.2'
implementation 'ch.qos.logback:logback-classic:1.2.11'
implementation 'club.minnced:discord-webhooks:0.8.0'
implementation 'com.google.code.gson:gson:2.9.0'
}
test {
useJUnitPlatform()
}
application {
mainClass = 'yt.graven.gravensupport.Main'
applicationDefaultJvmArgs = ["--add-opens", "java.base/java.net=ALL-UNNAMED"]
}
compileJava {
options.encoding = "UTF-8"
options.compilerArgs += "--enable-preview"
}
jar {
manifest {
attributes('Main-Class': 'yt.graven.gravensupport.Main')
}
}
[tasks.withType(Test), tasks.withType(JavaExec)].flatten().forEach {
it.jvmArgs += "--enable-preview"
}
spotless {
java {
palantirJavaFormat('2.28.0')
importOrder()
removeUnusedImports()
formatAnnotations()
trimTrailingWhitespace()
toggleOffOn()
}
}