-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
56 lines (53 loc) · 1.68 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
//file:noinspection GroovyUnusedAssignment
//file:noinspection GroovyUnusedAssignment
plugins {
id'application'
id'com.github.johnrengelman.shadow' version '7.1.2'
//noinspection GroovyAssignabilityCheck
id 'java'
}
mainClassName = 'com.severalcircles.flames.Flames'
version '8-SNAPSHOT'
def jdaVersion = '5.0.0-beta.21'
sourceCompatibility = targetCompatibility = 1.8
group 'com.severalcircles.flames'
mainClassName = "com.severalcircles.flames.Flames"
//jar {
// manifest {
// attributes "Main-Class": "$mainClassName"
// }
// from {
// configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
// }
//}
repositories {
mavenCentral()
maven { // on kotlin dsl use `maven("https://m2.dv8tion.net/releases")` instead
url "https://m2.dv8tion.net/releases"
}
}
task createProperties(dependsOn: processResources) {
doLast {
new File("$buildDir/resources/main/version.properties").withWriter { w ->
Properties p = new Properties()
p['version'] = project.version.toString()
p.store w, null
}
}
}
classes {
dependsOn createProperties
}
test {
useJUnitPlatform()
}
dependencies {
implementation("net.dv8tion:JDA:$jdaVersion")
implementation platform('com.google.cloud:libraries-bom:26.34.0')
implementation 'com.google.cloud:google-cloud-dialogflow'
implementation 'com.google.cloud:google-cloud-language:2.1.4'
implementation 'com.google.cloud:google-cloud-aiplatform:3.35.0'
implementation 'com.google.cloud:google-cloud-vertexai'
implementation 'com.bugsnag:bugsnag:3.6.2'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
}