-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
96 lines (71 loc) · 2.26 KB
/
build.gradle
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
plugins {
id 'java'
// ShadowJar
id "com.github.johnrengelman.shadow" version "7.1.1"
// Kotlin JVM
id "org.jetbrains.kotlin.jvm" version "1.6.10"
// No argument constructor
id "org.jetbrains.kotlin.plugin.noarg" version "1.6.10"
}
noArg {
annotation("jakarta.persistence.Entity")
}
group 'personal.opensrcerer'
version '0.0.1'
sourceCompatibility = 17
targetCompatibility = 17
repositories {
mavenCentral() // for transitive dependencies
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
}
shadowJar {
manifest.attributes('Multi-Release': 'true')
manifest.attributes('Main-Class' : 'personal.opensrcerer.SupersonicApplication')
}
compileKotlin {
kotlinOptions.jvmTarget = targetCompatibility
}
dependencies {
// SLF4J
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.0'
// JUnit
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
// JDA
implementation("net.dv8tion:JDA:4.4.0_352")
// Jackson XML
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.1'
// OkHttp4
implementation('com.squareup.okhttp3:okhttp:4.9.3')
// Reactor
testImplementation 'io.projectreactor:reactor-test:3.4.14'
implementation 'io.projectreactor:reactor-core:3.4.14'
// Annotations
compileOnly 'org.jetbrains:annotations:22.0.0'
// LavaPlayer
implementation 'com.sedmelluq:lavaplayer:1.3.78'
// Apache-Commons
implementation 'org.apache.commons:commons-lang3:3.12.0'
// Reflections
implementation 'org.reflections:reflections:0.10.2'
// H2
implementation 'com.h2database:h2:2.0.204'
// Hibernate
implementation 'org.hibernate.orm:hibernate-core:6.0.0.Beta3'
// Postgres Driver
implementation 'org.postgresql:postgresql:42.3.1'
}
ext {
javaMainClass = "personal.opensrcerer.SupersonicApplication"
}
test {
useJUnitPlatform()
}
task runsupersonic(type: Exec, dependsOn: [compileKotlin, compileJava, processResources, classes]) {
group = "Execution"
description = "Run the supersonic bot"
commandLine "java", "-classpath", sourceSets.main.runtimeClasspath.getAsPath(), javaMainClass
}